In productcategory.php change:
to be
$categoryProducts = $category->getProducts((int)($cookie->id_lang), 1, 100);
to be
$categoryProducts = $category->getProducts(intval($params['cookie']->id_lang), 1, 100); if ($categoryProducts) { shuffle($categoryProducts); array_splice($categoryProducts, ($nb ? $nb : 10)); }
Nessun commento:
Posta un commento