Email trigger was not properly configured

This topic has 2 replies, 2 voices, and was last updated 1 days, 16 hours ago ago by Luca Rossi

  • Avatar: Benas
    Benas
    Participant
    December 30, 2024 at 18:04

    After contacting woocommerce and investigating code, I can say that this problem was coming from your side inside email-trigger.php because you had hardcoded in value: $register_data[‘password’] = network_site_url( “wp-login.php?action=rp&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ );

    PROBLEM:
    https://www.8theme.com/topic/on-user-creation-he-is-redirected-to-wrong-password-creation-form/#post-429112

    1 Answer
    Avatar: Justin
    Luca Rossi
    Support staff
    January 3, 2025 at 08:21

    Dear @Benas,

    We hope this message finds you well.

    We would like to inform you that the network_site_url function is used to ensure the URL works seamlessly on both single-site and multi-site WordPress installations.

    To modify the reset password link, please follow the steps below:

    1. Navigate to the following file:
    /wp-content/plugins/et-core-plugin/packages/woocommerce-email-template-customizer/includes/email-trigger.php

    2. Locate line 294 and make the following change:

    Replace:

      
       $register_data['password'] = network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' );  
    

    With:

      
       $register_data['password'] = wc_get_account_endpoint_url( 'lost-password' ) . "?action=rp&key=$key&login=" . rawurlencode( $user->user_login );  
    

    We hope this resolves your query. Should you have any further questions or require additional assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.