Contributions
Sorting Attributes
I put this in place for myself because it was driving me crazy trying to get the product options displayed in the order I wanted. All the sorting contributions I came across were difficult to implement or changed a lot of code.
All I wanted was something that showed my options in order of price. Or at the very least showed them in the order I entered them.
It's a simple fix that takes less than a minute.
What it does...
First - sorts by price
Second - if price is same (or 0), it sorts based on the order that the option was entered.
| 21 Nov 2009 |
This is a small change to 'alphabetic' sorting to cater for numeric option values, eg you have options for 'size' and the option values are numeric like 6, 8, 10, 12 etc. This will prevent higher values like 10 and 12 being listed before 6 and 8.
| Don Mitchinson | 29 Nov 2004 |
Note: Contributions are used at own risk.
