X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Make/Model/Year mod by Cart-Lab - display order? (https://forum.x-cart.com/showthread.php?t=22604)

balinor 06-19-2006 10:46 AM

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.

B00MER 06-19-2006 12:04 PM

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. :wink:

balinor 06-19-2006 12:06 PM

Yea, knew that was the concept, was hoping someone else had done it already ;)

B00MER 06-19-2006 12:13 PM

Quote:

Originally Posted by balinor
Yea, knew that was the concept, was hoping someone else had done it already ;)


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 ;)


All times are GMT -8. The time now is 03:53 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.