[-] FO: Fix some tax_display_method value for not default customer group

This commit is contained in:
Rémi Gaillard committed 2012-12-06 16:38:31 +01:00
1 parent 78bfcfbaf0
commit 224646ef1f
3 files changed
+6 -13

No files matched your search

+1 -7
View File
@@ -53,13 +53,7 @@ class BlockCart extends Module
else
$currency = $this->context->currency;
if ($params['cart']->id_customer)
{
$customer = new Customer((int)$params['cart']->id_customer);
$taxCalculationMethod = Group::getPriceDisplayMethod((int)$customer->id_default_group);
}
else
$taxCalculationMethod = Group::getDefaultPriceDisplayMethod();
$taxCalculationMethod = Group::getPriceDisplayMethod((int)Group::getCurrent()->id);
$useTax = !($taxCalculationMethod == PS_TAX_EXC);