• Resolved eppu

    (@eppu)


    Hi,

    I was just wondering how could I make “Thank You” popup appear after registering with WooCommerce plugin.

    I have redirect code set up to redirect to “Home page” and I would like to have a “Thank you” popup appear after the redirect.

    Here is the redirect code

    
    // After registration redirect to home page
    function custom_registration_redirect() {
    	return home_url('/');
    }
    add_action('woocommerce_registration_redirect', 'custom_registration_redirect', 2);
    

    Thank you for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • @eppu

    It seems like this could be a good candidate for Advanced Targeting Conditions, but I’ll have to have the Lead Dev @danieliser take a look as soon as he is available.

    Thanks for your patience.

    Thread Starter eppu

    (@eppu)

    Thanks for your time and effort it is much appreciated.

    Plugin Author Daniel Iser

    (@danieliser)

    @eppu – This would be really easy with our new (beta) version of Advanced Targeting Conditions.

    You could then set your redirect to be home_url('/') . '#thank-you', then set up your conditions to check for that in the url.

    Otherwise you can do it with some custom JS to detect that hash and trigger the correct popup using $(‘#pum-123’).popmake(‘open’), where 123 is the ID of your popup.

    Hope that helps.

    Thread Starter eppu

    (@eppu)

    Thank you.

    I will try this out next week.

    Closing this ticket due to inactivity. If you’re still having an issue, create a new thread, link this one, and we will continue troubleshooting.

    Please take a moment to rate and review our plugin and/or support.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to Popup after WooCommerce Registration’ is closed to new replies.