Post by mihanpay » Thu Jul 18, 2013 2:37 am

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

Newbie

Posts

Joined
Thu Jul 11, 2013 1:19 pm

Post by pprmkr » Thu Jul 18, 2013 2:03 pm

Edit function getProducts in catalog/model/catalog/product.php

Find:

Code: Select all

		$sort_data = array(
			'pd.name',
			'p.model',
			'p.quantity',
			'p.price',
			'rating',
			'p.sort_order',
			'p.date_added'
		);	
Add date_modified:

Code: Select all

		$sort_data = array(
			'pd.name',
			'p.model',
			'p.quantity',
			'p.price',
			'rating',
			'p.sort_order',
			'p.date_modified',
			'p.date_added'
		);	
Edit catalog/controller/module/latest.php

Find:

Code: Select all

		$data = array(
			'sort'  => 'p.date_added',
			'order' => 'DESC',
			'start' => 0,
			'limit' => $setting['limit']
		);
Change into:

Code: Select all

		$data = array(
			'sort'  => 'p.date_modified',
			'order' => 'DESC',
			'start' => 0,
			'limit' => $setting['limit']
		);

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by mihanpay » Thu Jul 18, 2013 2:21 pm

Thanks

Newbie

Posts

Joined
Thu Jul 11, 2013 1:19 pm

Post by lvalics » Tue Jan 06, 2015 8:59 pm

Should be a settings for latest products ... in core product.

Regards,
Valics Lehel


Newbie

Posts

Joined
Wed Jul 06, 2011 1:04 am
Who is online

Users browsing this forum: No registered users and 4 guests