1. Startseite
  2. Wissensdatenbank
  3. WooCommerce Großhandelsbestellformular
  4. Anzeigestil
  5. Shop-URL auf Großhandelsbestellung für Großhandelskunden auf der Warenkorbseite ändern
  1. Startseite
  2. Wissensdatenbank
  3. WooCommerce Großhandelsbestellformular
  4. Shop-URL auf Großhandelsbestellung für Großhandelskunden auf der Warenkorbseite ändern

Shop-URL auf Großhandelsbestellung für Großhandelskunden auf der Warenkorbseite ändern

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)

War dieser Artikel hilfreich?

Verwandte Artikel

Benötigen Sie Unterstützung?

Können Sie die Antwort, die Sie suchen, nicht finden?
Support kontaktieren
Kauf abschließen