Public Ticket #3052098

Show B2C price to B2B users

Closed
Comments
3 Tickets 3
igormages started the conversation 4 years ago on May 26, 2022 at 3:39pm

Hello,

I enabled the "Show B2C price to B2B users" option. But there is a way to show the B2C price inc.vat and the B2B price ex.VAT ? (this is the way we show prices in France)


Thanks,

2,762
KingsPlugins replied 4 years ago on May 27, 2022 at 11:14am

Hi there,

You can add the following PHP code snippet to your site:

add_filter('b2bking_both_prices_retail_adjust_tax', function($val){
    return false;
}, 10, 1);

This will help make the B2C price appear as inc. VAT.

A PHP snippet can be added to functions.php, or by following our guide here: https://b2bkingplugin.com/docs/how-to-add-a-snippet-php-or-js/

For this to work as you described, you would also need a tax exemption rule that removes tax for B2B users. If you don't already have that set up, please follow the instructions here: https://b2bkingplugin.com/docs/how-to-display-prices-excluding-tax-for-b2b-users-and-including-tax-for-b2c-users/

Kind regards,

Stefan

Sign In