| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Make/Model/Year mod by Cart-Lab - display order? | |||
|
|
Thread Tools |
#1
|
|||||||
|
|||||||
Make/Model/Year mod by Cart-Lab - display order?
Anyone got a quick fix to change the display order of the Makes & Models in the Make/Model/Year mod? Right now it is alphabetical...need to sort per the client's specified order.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#2
|
|||||||||
|
|||||||||
brandmodelyear.php, theres 3 asort() function calls to sort the lists alphabetically, if you want to do it per on order of your own basis, you'll need to add an extra orderby field to the database somehow and modify the SQL queries in this same file to use ORDER BY orderby.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
Yea, knew that was the concept, was hoping someone else had done it already
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||||
|
|||||||||
Quote:
Since the mod uses (|) as a delimiter it makes doing an orderby field next to impossible. The approach I can think of is making 3 seperate relational tables with brand, model, type in them and then using a multi-drop down selector. Seperate area of the admin you would need to create along with an orderby field on all of the fields inserted. It can get rather tricky, this is one reason why I never did such
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|