Post by defiantclass » Fri Aug 24, 2012 2:30 am

I'm hoping someone knows an easy way to change the Products default sort order to Name (A-Z). I can't really tell what order the Default is creating, but it isn't Name (A-Z) which would work best for my products.

I'd appreciate anyone's help. Thank you (OC 1.5.0)

New member

Posts

Joined
Mon Jul 11, 2011 6:48 am

Post by florinsith » Fri Aug 24, 2012 5:44 pm

Edit the files: catalog/controller/product/category.php, manufacturer.php , search.php and search.php and in each file find the code:

Code: Select all

if (isset($this->request->get['sort'])) {
			$sort = $this->request->get['sort'];
		} else {
			$sort = 'p.sort_order';
		}
and replace it with:

Code: Select all

if (isset($this->request->get['sort'])) {
			$sort = $this->request->get['sort'];
		} else {
			$sort = 'pd.name';
		}

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by owner » Wed Sep 26, 2012 12:12 am

Hows to sort category product list by latest product_id?

i try to change the p.sort_order with product_id DESC but not working :D

could someone help me with this simple things?

thanks

Newbie

Posts

Joined
Mon Apr 16, 2012 9:30 am

Post by florinsith » Wed Sep 26, 2012 2:06 am

It has to be changed to p.date_added

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by owner » Wed Sep 26, 2012 10:45 am

florinsith wrote:It has to be changed to p.date_added
it Works... many thanks for fast response friends.. :yahoo:

Newbie

Posts

Joined
Mon Apr 16, 2012 9:30 am
Who is online

Users browsing this forum: No registered users and 52 guests