• Resolved gotyeah

    (@gotyeah)


    Hey guys,

    I’m using Woocommerce for the first time and I have one problem (only one :D) when I’m log out and I click on “Lost password”, it sends me on the wordpress page :
    “mywebsite/wp-login.php?action=lostpassword” instead of :
    “mywebsite//mon-compte/lost-password/”

    the page exist, I can acces to it if I write the URL, but not with the button lost password.

    I change the line by editing the plugin :

    
    <p class="woocommerce-LostPassword lost_password">
        <a href="https://mywebsite.com/my-account/lost-password/"><?php esc_html_e( 'Lost your password?', 'woocommerce' ); ?></a>
    </p>
    

    And that’s work, but that’s not how I want to do it, it’s too much “bug friendly” to me.

    I hope my english isn’t to bad, thx for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gotyeah

    (@gotyeah)

    OK, so I add in mytheme/woocommerce/myaccount/ the file form-login.php.

    It’s the template of the login form, it’s cleaner than just change the plugin himself, but I still don’t think it’s the right way to do it, if someone have an idea.

    Hi @gotyeah,

    There is a filter to change the Lost password, and it is found here. Feel free to place it in the theme’s functions.php file and unset the changes in the form-login.php file to see if that works ??

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @gotyeah

    I hope Mike’s reply pointed you to a solution.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘redirect to lost-password didn’t work’ is closed to new replies.