Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor podpirate

    (@podpirate)

    WooCommerce is lacking an appropriate hook on the lost password form, so this can’t be done yet with the regular woocommerce template.

    The only solution for now woul?d be to can override the woocommerce template file and to add the hook yourself.

    1. From the woocommerce plugin directory copy templates/myaccount/form-lost-password.php to woocommerce/myaccount/ in your theme directory. (This is the way to override the standard WC template files)
    2. Add a line saying

    <?php do_action( 'lostpassword_form' ); ?>

    to the new form-lost-password.php. (That’s the hook in question) Best placed right above the submit button part, which starts <p class="form-row">...

    To resolve that issue one and for all, I made a second attempt to get that hook into woocommerce core: https://github.com/woothemes/woocommerce/pull/7786. Hopefully they are going accept it this time…

    Thread Starter sasquatchms

    (@sasquatchms)

    You are a beast! A fast reply within 20 mins, with solutions! I sincerely thank you.

    Thread Starter sasquatchms

    (@sasquatchms)

    Hello again, how does this line in the 1.1.3 update relate to my initial question? Thanks!

    1.1.3

    WooCommerce: Add action listener to woocommerce_lostpassword_form (probably functional in WC 2.3.8).

    Plugin Contributor podpirate

    (@podpirate)

    Yes. They merged my PR, so with the next WC update the fix above won’t be necessary any more.

    Thread Starter sasquatchms

    (@sasquatchms)

    Awesome, nice work! Thanks!

    Thread Starter sasquatchms

    (@sasquatchms)

    I finally got around to updating the the latest WC version, and looks like they still haven’t added the appropriate hook.

    Just wanted to let you know. Thanks!

    Plugin Contributor podpirate

    (@podpirate)

    Yes I see. The hook is present in the github repository but didn’t make it into code hosted on WP org. I’ll give up on this…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Captcha not showing on lost password page?’ is closed to new replies.