Hi
I want to show product with latest modified date order in product list at latest module and home page.
is it possible when i edit and update products show them as new product? (display again them in latest or other modules)
I hope you understand what I mean!
Any help very much appreciated. Thanks
please help me
Edit function getProducts in catalog/model/catalog/product.php
Find:
Add date_modified:
Edit catalog/controller/module/latest.php
Find:
Change into:
Find:
Code: Select all
$sort_data = array(
'pd.name',
'p.model',
'p.quantity',
'p.price',
'rating',
'p.sort_order',
'p.date_added'
);
Code: Select all
$sort_data = array(
'pd.name',
'p.model',
'p.quantity',
'p.price',
'rating',
'p.sort_order',
'p.date_modified',
'p.date_added'
);
Find:
Code: Select all
$data = array(
'sort' => 'p.date_added',
'order' => 'DESC',
'start' => 0,
'limit' => $setting['limit']
);
Code: Select all
$data = array(
'sort' => 'p.date_modified',
'order' => 'DESC',
'start' => 0,
'limit' => $setting['limit']
);
Who is online
Users browsing this forum: No registered users and 13 guests