Jump to content

How i can make the newest product appear on top list at homepage?


Tuvezz

Recommended Posts

Is that the new products block? or the featured products one? If the latter, it takes them using their position in the home category, you have to modify that in the back office

 

It is the new arrivals block. where to modify it? Thanks

Link to comment
Share on other sites

getNewProducts method of the product class (classes/product.php). Find order_by towards the end and set it to product_shop.`date_add`

 

Sorry can you please tell me which line should i change at classes/product.php. Because I found product_shop.`date_add` more than one and I am a bit confused about it

Edited by Tuvezz (see edit history)
Link to comment
Share on other sites

This one

 

$sql->orderBy((isset($order_by_prefix) ? pSQL($order_by_prefix).'.' : '').'`'.pSQL($order_by).'` '.pSQL($order_way));

 

 

To

 

$sql->orderBy('p.date_add DESC');

 

Thanks for your quick response. I had change it and clear cache at admin panel but the result still same...so confused  :(

Edited by Tuvezz (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...