This commit is contained in:
Thibault GUILLAUME 2015-10-28 12:40:13 +01:00
parent c7048856c1
commit 198a12b628

View File

@ -34,7 +34,7 @@ class BlockBestSellersOverride extends BlockBestSellers
if (Configuration::get('PS_CATALOG_MODE'))
return false;
if (!($result = ProductSale::getProductHome((int)$params['cookie']->id_lang, 0, (int)Configuration::get('PS_BLOCK_BESTSELLERS_TO_DISPLAY'))))
if (!($result = ProductSale::getProductHome((int)$params['cookie']->id_lang, 0, 6)))
return (Configuration::get('PS_BLOCK_BESTSELLERS_DISPLAY') ? array() : false);
$currency = new Currency($params['cookie']->id_currency);