Please add the following snippet to your child theme’s functions.php or through the code snippets plugin. Please don’t forget to update the $URL to match the wholesale ordering page on your website.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | add_filter( 'woocommerce_return_to_shop_redirect' , 'change_return_shop_url' ); function change_return_shop_url( $URL ) { global $wc_wholesale_prices_premium ; $user_wholesale_role = $wc_wholesale_prices_premium ->wwpp_wholesale_roles->getUserWholesaleRole(); if (! empty ( $user_wholesale_role )){ //update the URL to the link of your wholesale ordering $URL = 'https://wholesalesuiteplugin.com' ; } return $URL ; } |
If you need help setting it up please reach out to us via our support form Support Request Form – WooCommerce Wholesale Suite (wholesalesuiteplugin.com)