Can someone please explain how OC determines what is displayed in Latest Products module? Is there any way this can be user defined?
Regards
catalog\controller\module\latest.phptthoma wrote:Can someone please explain how OC determines what is displayed in Latest Products module? Is there any way this can be user defined?
Regards
Code: Select all
$filter_data = array(
'sort' => 'p.date_added',
'order' => 'DESC',
'start' => 0,
'limit' => $setting['limit']
);
$results = $this->model_catalog_product->getProducts($filter_data);
OpenCart®
PHP Developer.
更多中文教學在 OpenCart香港官方網站 !
QQ: 2039574815
It's determined by the date you add it in order descending.
I use a free mod http://www.opencart.com/index.php?route ... n_id=14026 that lets you edit the date added so if you don't want something to show in the latest product list, just put in the date as like last year. When you do, make it "now".
I use a free mod http://www.opencart.com/index.php?route ... n_id=14026 that lets you edit the date added so if you don't want something to show in the latest product list, just put in the date as like last year. When you do, make it "now".
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Who is online
Users browsing this forum: No registered users and 240 guests