1. Home
  2. Knowledge Base
  3. WooCommerce Wholesale Prices Premium
  4. Tax
  5. How To Keep Retail Prices Showing Including Tax When Wholesale Price Is Set To Show Excluding Tax

How To Keep Retail Prices Showing Including Tax When Wholesale Price Is Set To Show Excluding Tax

When a wholesale customer visits the product page, the default view is that they see the regular price crossed out with the wholesale price.

Our WooCommerce Wholesale Prices Premium has a feature to allow your wholesale customers to view a separate tax display to your shop, cart, and checkout pages.

For example, you can set Including Tax to regular price and set Excluding Tax to your wholesale prices. However, if you set excluding tax to your wholesale customers, they will also see the crossed out regular price with excluding tax.

So if you want to keep the regular price with including tax, you just need to use this custom snippet and put it to your theme/child theme’s functions.php.

global $wc_wholesale_prices_premium; 

remove_filter( 'option_woocommerce_tax_display_shop' , array( $wc_wholesale_prices_premium->wwpp_tax, 'wholesale_tax_display_shop' ) ); 

remove_filter( 'option_woocommerce_tax_display_cart' , array( $wc_wholesale_prices_premium->wwpp_tax, 'wholesale_tax_display_cart' ) );

Now, when wholesale customers check your wholesale products, the crossed out regular price will display including tax while your wholesale price shows ex tax.

Was this article helpful?

Related Articles

Need Support?

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