ok, not the easiest thing to do but not the hardest either.
copy from:
includes/modules/new_products.php
to:
includes/modules/YOUR_TEMPLATE/new_products.php
this copied file is the one you want to modify.
now, i will use this file as a template to show you lines to add and modify.
https://github.com/zencart/zencart/b...w_products.php
PHP Code:
// right after line 17 add:
$order_by = ' ORDER BY p.products_date_added DESC ';
// modify line 27 to:
AND p.products_status = 1 " . $display_limit . $order_by;
//modify line 41 to:
AND p.products_id IN (" . $list_of_products . ") . $order_by " ;
// modify line 47 to:
$new_products = $db->Execute($new_products_query, MAX_DISPLAY_NEW_PRODUCTS);
//modify line 93 to:
$new_products->MoveNext();
best.
Bookmarks