Comments 2Nigel started the conversationAugust 13, 2021 at 6:37amI have tried using the snippetĀ add_action('woocommerce_login_redirect', function($url){ $url = get_home_url(); // for shop url use $url = get_permalink( wc_get_page_id( 'shop' ) ) return $url; } But I get an error message:The code snippet you are trying to save produced a fatal error on line 6: syntax error, unexpected end of file, expecting ')'Can you assist? 2,217WebWizards repliedAugust 13, 2021 at 1:25pmHi Nigel,Thank you for purchasing the plugin!That snippet does have an error in it. The correct snippet would be: add_action('woocommerce_login_redirect', function($url){ $url = get_home_url(); return $url; }); The above will redirect users to the HOMEPAGE after they login. Is that what you are trying to achieve?Kind regards,Stefan 2Nigel repliedAugust 13, 2021 at 11:39pmThank you so much, Stefan Works perfectly now.Great support. And I am really happy with the Plugin. Far superior to the previous one I was using. Nigel1 Like Sign in to reply ...
I have tried using the snippetĀ
But I get an error message:
The code snippet you are trying to save produced a fatal error on line 6:
syntax error, unexpected end of file, expecting ')'
Can you assist?
Hi Nigel,
Thank you for purchasing the plugin!
That snippet does have an error in it. The correct snippet would be:
The above will redirect users to the HOMEPAGE after they login. Is that what you are trying to achieve?
Kind regards,
Stefan
Thank you so much, Stefan
Works perfectly now.
Great support. And I am really happy with the Plugin. Far superior to the previous one I was using.
Nigel