[-] BO : If no nb, get default 8, not 10.
This commit is contained in:
@@ -120,7 +120,7 @@ class HomeFeatured extends Module
|
||||
{
|
||||
$category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id);
|
||||
$nb = (int)Configuration::get('HOME_FEATURED_NBR');
|
||||
$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10));
|
||||
$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8));
|
||||
|
||||
$this->smarty->assign(array(
|
||||
'products' => $products,
|
||||
@@ -145,4 +145,4 @@ class HomeFeatured extends Module
|
||||
{
|
||||
$this->_clearCache('homefeatured.tpl');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user