Lost password Endpoint & shortcode not working
-
Steps :
– Enable registration on the “Checkout” page
– Enable registration on the “My Account” page
– “My Account Endpoints” : Lost Password -> lost-user-passwordI override the ‘form-login.php’ and i create a new page template. The Lost password do not appear with the code below :
<p class="lost_password"> <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a> </p>
So, i replace with this :
<a href="<?php echo esc_url( add_query_arg(array('key' => $reset_key, 'login' => rawurlencode($user_login)), wc_get_endpoint_url( 'lost-user-password', '', wc_get_page_permalink( 'lostuserpassword' ))));?>"> <?php _e( 'Click here to reset your password', 'woocommerce' ); ?> </a>
When i click in the “Click here to reset your password” then redirect me in the login page with the url of :
'https://localhost/theme/login/lost-user-password/?login'
The problem is that redirect me in the login page and not in the lost user password. I try to redirect in the other page like ‘shop’ and works.
How can solve this?
Thanks.
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Lost password Endpoint & shortcode not working’ is closed to new replies.