Page 1 of 1

How to add a sorting field in Magento

Posted: Thu Aug 30, 2012 12:30 am
by SevenZero
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

Re: How to add a sorting field in Magento

Posted: Thu Aug 30, 2012 11:12 am
by Nipuna
Wow so Good to see our Experts are using Magento :yahoo:

So I can get helps ;)