// small fix for merge pull #49

This commit is contained in:
Rémi Gaillard
2012-11-27 15:57:01 +01:00
parent d55fb35690
commit a7d67fcd48
@@ -100,14 +100,10 @@ class BlockBestSellers extends Module
$currency = new Currency($params['cookie']->id_currency);
$id_group = $this->context->customer->id_default_group;
if(Group::getPriceDisplayMethod($id_group) == PS_TAX_EXC)
if (Product::getTaxCalculationMethod((int)$this->context->customer->id) == PS_TAX_EXC)
$usetax = false;
else
if(Configuration::get('PS_TAX_DISPLAY') == PS_TAX_EXC)
$usetax = false;
else
$usetax = true;
$usetax = true;
$bestsellers = ProductSale::getBestSalesLight((int)($params['cookie']->id_lang), 0, 5);