Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jonayed Hosen (woo-hc)

    (@jonayedhosen)

    Hi @frankbiganski ,

    I understand you’re trying to redirect users to a specific page when they click the Lost Password option. If custom code is causing issues on your site, using a plugin can give you more flexibility and control over redirections without needing to adjust code manually.

    One great option to help you achieve this is the third-party Redirection plugin. It’s a tool that allows you to set up and manage redirects for various scenarios, including lost password requests.

    Here’s how you can use it:

    • Install and activate the Redirection plugin from your WordPress dashboard.
    • Navigate to Tools > Redirection to set up your redirect rules.
    • Configure a rule that redirects the lost password URL to your desired page.

    If you’re unsure about setting this up, the plugin also offers documentation and support to guide you through the process. Full documentation can be found at https://redirection.me

    Let us know if this helps you.

    Thread Starter Frank B.

    (@frankbiganski)

    Unfortunately it does not work for me under my circumstances. I first tried redirecting from url.com/my-account/ and that didn’t do anything. Then I noticed WC placed “lost-password” after my-account but adding that to the redirect cause the link to immediately loop back to itself.

    The previous gentleman who replied to my question in a previous thread said “I can hook into the WooCommerce password reset flow and change the redirection URL. WooCommerce has a filter for customizing the redirect after a password reset, which makes this relatively straightforward.”

    Below was the code he provided but I’m not sure what he meant by “Replace this with your actual LearnPress profile URL structure.” If I want WC my-account to redirect to thedronecoach.com/lp-profile , how would I implement that into the code below?

    add_filter( ‘woocommerce_login_redirect’, ‘custom_learnpress_password_reset_redirect’, 10, 2 );
    function custom_learnpress_password_reset_redirect( $redirect, $user ) {
    // Check if LearnPress is activated
    if ( class_exists( ‘LearnPress’ ) ) {
    // Replace this with your actual LearnPress profile URL structure
    $learnpress_profile_url = site_url() . ‘/lp-profile/
    return $learnpress_profile_url;
    }
    return $redirect;
    }

    • This reply was modified 1 week ago by Frank B..
    Plugin Support Jonayed Hosen (woo-hc)

    (@jonayedhosen)

    Hi @frankbiganski ,

    I understand that you’re trying to customize the WooCommerce password reset redirection to work with a LearnPress profile page.

    This type of request is a bit outside the support scope we provide here, as it involves custom code and integrations with another plugin (LearnPress). However, However, you can review our?support policy, and we have a variety of resources that might help point you in the right direction!

    For hands-on guidance, we recommend exploring our WooCommerce Developer Portal, which offers detailed documentation and resources to help you build and refine custom solutions. This is a great place to find information about hooks and filters, like the one you’re using.

    If you’re looking for professional support, Codeable.io or one of our WooExperts can connect you with vetted developers who specialize in WooCommerce customizations. They can assist with tailoring the code to meet your specific requirements.

    Additionally, you might want to share your query in one of the following channels, where experienced developers and the WooCommerce community can assist with customization questions:

    I hope this helps point you in the right direction!

    Thread Starter Frank B.

    (@frankbiganski)

    Thank you so much for your clarification and reference links. This will help out tremendously!

    Best,

    Frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.