Hi,
I'm trying to change the ordering mode in ps_newproducts. I don't understand how prestashop orders the products in this module.
The store has been set to order products by add date, but the module still using another way to order the new products. (cache cleared too)
I tryed to modify the ps_newproducts.php file
at this point it make the query to obtain the products to display, and I've added the order_by and the order_way parameters as :
if (Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) {
$newProducts = Product::getNewProducts(
(int)$this->context->language->id,
0,
(int)Configuration::get('NEW_PRODUCTS_NBR'),
false,
"date_add",
"DESC"
);
}
but nothing change. (cache deleted and /var/cache//cass_index.php deleted.
Thanks for help.