Post by tthoma » Mon Feb 23, 2015 9:13 pm

Can someone please explain how OC determines what is displayed in Latest Products module? Is there any way this can be user defined?

Regards

Newbie

Posts

Joined
Mon Feb 23, 2015 9:04 pm

Post by yuno » Tue Feb 24, 2015 12:54 pm

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

OpenCart®
PHP Developer.
更多中文教學在 OpenCart香港官方網站 !
QQ: 2039574815


Active Member

Posts

Joined
Tue Feb 11, 2014 9:24 am

Post by labeshops » Tue Feb 24, 2015 9:01 pm

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".

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.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA
Who is online

Users browsing this forum: No registered users and 240 guests