How to add a sorting field in Magento

Web hosting, SEO, etc... related
Post Reply
User avatar
SevenZero
Major
Major
Posts: 263
Joined: Sun Nov 01, 2009 8:37 pm

How to add a sorting field in Magento

Post by SevenZero » Thu Aug 30, 2012 12:30 am

Here is a quick guide on adding a sorting field to Magento shopping cart. By default, you will have "Best Value", "Name" and "Price". Say you need to add "SKU" to the list. Here is how you could do that.
  1. Go to Catalog -> Attributes -> Manage Attributes
  2. Click on SKU attribute
  3. Under Frontend Properties (on the first screen, at the very bottom) change Used for sorting in product listing to "Yes."
From here you have two options. You can either change sorting for few categories or you can change the config setting to effect on all categories.

Here is how to do it on few categories you want.
  1. Go to Catalog -> Manage Categories.
  2. Click on the category you want to sort by SKU.
  3. Click on the Display Settings tab.
  4. Under Default Product Listing Sort by, uncheck the "Use Config Settings" and then select SKU from the dropdown.
Here is how you could change the default setting to effect the entire site
  1. Go to System -> Configuration -> Catalog-> Catalog
  2. Under Frontend go to Product Listing Sort by
  3. Set SKU and Save Config
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Re: How to add a sorting field in Magento

Post by Nipuna » Thu Aug 30, 2012 11:12 am

Wow so Good to see our Experts are using Magento :yahoo:

So I can get helps ;)
Post Reply

Return to “Web Related”