• Resolved giangel84

    (@giangel84)


    Hi, I love your plugin.
    Is it possible to customize the login form during checkout page?

    Action/Filter hooks let me append some code but the original input field and the login button still on the page.

    I have a custom shortcode which contain a custom login form, so I want entirely substitute the original with mine.

    Just tried to override the checkout/form-login.php template with no success.

    • This topic was modified 6 years, 8 months ago by giangel84.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Diana Burduja

    (@diana_burduja)

    Hi,

    overwriting the checkout/form-login.php will not help. You can try to overwrite the global/form-login.php template. There you’ll find the form’s HTML.

    Note that by overwriting the global/form-login.php, you’ll modify all the login forms on your website. If you want to modify only the checkout login form, then you need to overwrite the woocommerce_login_form() function from the /woocommerce/includes/wc-template-functions.php file.

    To overwrite the woocommerce_login_form() function, simply add a function with the same name in the theme’s functions.php file, as follows:

    function woocommerce_login_form( $args = array() ) {
      echo '<form> your form </form>';
    }

    Can we add signup beside login form??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customize Login’ is closed to new replies.