kronoszx
5/15/2017 - 6:06 PM

Productos aleatorios

Productos aleatorios

//from: 
$newProducts = Product::getNewProducts(intval($params['cookie']->id_lang), 0, Configuration::get('NEW_PRODUCTS_NBR') );

//to
$newProducts = Product::getNewProducts((int) Context::getContext()->language->id, 0, 100);
				shuffle($newProducts);
				array_splice($newProducts, Configuration::get('NEW_PRODUCTS_NBR') );