Page 1 of 1

Latest Products Module

Posted: Mon Feb 23, 2015 9:13 pm
by tthoma
Can someone please explain how OC determines what is displayed in Latest Products module? Is there any way this can be user defined?

Regards

Re: Latest Products Module

Posted: Tue Feb 24, 2015 12:54 pm
by yuno
tthoma 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
catalog\controller\module\latest.php

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);

Re: Latest Products Module

Posted: Tue Feb 24, 2015 9:01 pm
by labeshops
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".