1. Home
  2. Knowledge Base
  3. WooCommerce Wholesale Order Form
  4. Display Style
  5. How To Change Shop URL To Wholesale Ordering For Wholesale Customers On Cart Page
  1. Home
  2. Knowledge Base
  3. WooCommerce Wholesale Order Form
  4. How To Change Shop URL To Wholesale Ordering For Wholesale Customers On Cart Page

How To Change Shop URL To Wholesale Ordering For Wholesale Customers On Cart Page

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.

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)

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support