Comments 3wiredphteam started the conversationNovember 27, 2022 at 10:48amHi, Just wanted to ask on how can i change the Registration link, Instead of routing it to My Account(default), i wanted to route it somewhere else(like a registration page), Please see attached image as reference. Thanks and more power..Attached files: 2022-11-27_184353.png 2,218WebWizards repliedNovember 28, 2022 at 9:39amHi there,You can do that with the following PHP code snippet: add_filter('salesking_registration_page_link', function($link){ $agent_id = get_user_meta(get_current_user_id(), 'salesking_agentid', true); $link = get_permalink( 12345 ); $link.= '?regid='.$agent_id; return $link; }, 10, 1); In the above snippet, you can replace 12345 with the ID of your custom registration page (to get a page ID see https://webstick.blog/get-page-id-wordpress )A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/Kind regards,Stefan Sign in to reply ...
Hi,
Just wanted to ask on how can i change the Registration link, Instead of routing it to My Account(default), i wanted to route it somewhere else(like a registration page), Please see attached image as reference.
Thanks and more power..
Attached files: 2022-11-27_184353.png
Hi there,
You can do that with the following PHP code snippet:
In the above snippet, you can replace 12345 with the ID of your custom registration page (to get a page ID see https://webstick.blog/get-page-id-wordpress )
A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/
Kind regards,
Stefan