// small fix for merge pull #49
This commit is contained in:
@@ -100,14 +100,10 @@ class BlockBestSellers extends Module
|
|||||||
|
|
||||||
$currency = new Currency($params['cookie']->id_currency);
|
$currency = new Currency($params['cookie']->id_currency);
|
||||||
|
|
||||||
$id_group = $this->context->customer->id_default_group;
|
if (Product::getTaxCalculationMethod((int)$this->context->customer->id) == PS_TAX_EXC)
|
||||||
if(Group::getPriceDisplayMethod($id_group) == PS_TAX_EXC)
|
|
||||||
$usetax = false;
|
$usetax = false;
|
||||||
else
|
else
|
||||||
if(Configuration::get('PS_TAX_DISPLAY') == PS_TAX_EXC)
|
$usetax = true;
|
||||||
$usetax = false;
|
|
||||||
else
|
|
||||||
$usetax = true;
|
|
||||||
|
|
||||||
$bestsellers = ProductSale::getBestSalesLight((int)($params['cookie']->id_lang), 0, 5);
|
$bestsellers = ProductSale::getBestSalesLight((int)($params['cookie']->id_lang), 0, 5);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user