Originally Posted by
ilmarchez
Not really in VAT matters but some lines of code to specify in the product listing, product information and shopping cart how to tell ZC to show prices excluding VAT to wholesale users and including VAT to regular users would be great...
Hope so...
Thanks
Ok, it appears the issue is ilmarchez would like the configuration_value of DISPLAY_PRICE_WITH_TAX to be true unless the customer is wholesale so that on checkout they are both showing taxes. Here is the fix I have for you:
in the includes/functions/functions_taxes.php
Change:
PHP Code:
function zen_add_tax($price, $tax) {
global $currencies;
if ( (DISPLAY_PRICE_WITH_TAX == 'true') && ($tax > 0) ) {
return $price + zen_calculate_tax($price, $tax);
} else {
return $price;
}
}
to:
PHP Code:
function zen_add_tax($price, $tax) {
global $currencies;
if ($_SESSION['customer_whole'] == 1) {
return $price;
}
if ((DISPLAY_PRICE_WITH_TAX == 'true') && ($tax > 0)) {
return $price + zen_calculate_tax($price, $tax);
} else {
return $price;
}
}
Bookmarks