• Resolved nflh

    (@nflh)


    Hi,

    When someone fills in the affiliate registration form I want to redirect to a custom page (when affiliate is confirmed). How can I do this? I’ve already checked the codes, but I think I need some help with this.

    Thank you!

    • This topic was modified 6 years ago by nflh.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well! 🙂

    Please, try to add this custom code in the functions.php of your active theme:

    if( defined( 'YITH_WCAF' ) && ! function_exists( 'yith_wcaf_change_become_an_affiliate_redirection' ) ){
    	function yith_wcaf_change_become_an_affiliate_redirection( $url ){
    		return 'YOUR CUSTOM URL HERE';
    	}
    
    	add_filter( 'yith_wcaf_become_an_affiliate_redirection', 'yith_wcaf_change_become_an_affiliate_redirection' );
    }

    You will need to add your custom URL to the function.

    Have a great day!

    Thread Starter nflh

    (@nflh)

    Hi,

    Thank you for your reply, but this doesn’t work. It goes straight to the (same) confirmed page (/?nm=confirmed) with the text ”You have already affiliated with us. Thank you!” Affiliates will be confirmed/accept automaticly. I want them to automatically go to the Affiliates Dashboard after they sign up. I hope you can help me with this.

    Thanks!

    Thread Starter nflh

    (@nflh)

    Do you have an other suggestion? I am really struggling with this.

    Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    I hope you’re doing well 🙂

    I’m going to close this topic because we replied to the same problem in the following topic

    Have a good day.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Redirect to custom url’ is closed to new replies.