Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Make/Model/Year mod by Cart-Lab - display order?

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 06-19-2006, 10:46 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
Reply With Quote
  #2  
Old 06-19-2006, 12:04 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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.
Reply With Quote
  #3  
Old 06-19-2006, 12:06 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Yea, knew that was the concept, was hoping someone else had done it already
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 06-19-2006, 12:13 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:51 PM.

   

 
X-Cart forums © 2001-2020