Author |
Topic |
|
willy99
VP-CART New User
Italy
108 Posts |
Posted - February 21 2005 : 14:56:37
|
Hi,
ther's a way to order the product features? I have create a dropdown list with these Feature Name: 1 month, 3 months, 6 months, 12 months.
In the dropdown the order is not as the one I show up, but: 1 month 12 months 3 months 6 months
Ther's a way to order the dropdown in a right way as this one?: 1 month 3 months 6 months 12 months
Tanks.
|
|
bmw000
VP-CART New User
137 Posts |
Posted - February 21 2005 : 15:48:39
|
I this same type of problem awhile back.
I think the best way to handle this is as follows.
First: change xfeaturesort to id
Second: As you add the records to the database, add them in the order you want them displayed. This way it orders them in the same order you added them to the database. It actually uses the product id field in the database to sort it.
Hope this helps.
Brian Weber BMW Solutions, LLC http://www.bmwsolutions.com |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - February 21 2005 : 16:03:53
|
as per bmw's solution; yep; you should be able to use the config option:
xfeaturesort
you could also put an ordering value (use a left-padded text string rather than a number so that "2" does not come after "12", eg use a string like "000-001") into the featureother column and then set xfeaturesort to "featureother"
bmw's simpler solution would do the job in 99% of cases; whether or not you apply the detailed/involved solution in my posting would depend on how stringent you wanted to be and how much extra data you want to add, how often you want to change the values etc.
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons
Edited by - devshb on February 21 2005 16:10:22 |
|
|
|
Topic |
|