Page: 1
| Author | Post |
|---|---|
|
#1 Thu 16 April, 2009 20:27
|
|
|
Member
Registered: Apr 2009
Posts: 10
|
Is there any way to add a field (downpayment) to the database and then add an option to the order by list to sort by this field?
|
|
#2 Fri 17 April, 2009 9:48
|
|
Administrator
![]() Registered: Apr 2008
Posts: 324
|
Currently, that would be a little difficult to achieve without some significant re-coding.
As a thought, you could put "Downpayment: XXXXX" as the first text in the more information field. It would then be possible to order the cars by that field in carlist.js. Contact us with your full requirements for a quote if you would like us to handle the coding. _______________ AutoDirector administrator |
|
#3 Fri 17 April, 2009 14:43
|
|
|
Member
Registered: Apr 2009
Posts: 10
|
What I did was I used the colour(color) field.
Is there anyway to have this field sorted numerically rather than as text? Could changing the field type in the db accomplish this? ex: text sorting 1 10 2 21 3 31 etc... numeric sorting 1 2 3 4 ... 10 ... 20 Thanks |
|
#4 Fri 17 April, 2009 16:48
|
|
|
Member
Registered: Apr 2009
Posts: 10
|
This seems to work for the sorting:
|
|
#5 Fri 17 April, 2009 17:11
|
|
|
Member
Registered: Apr 2009
Posts: 10
|
Hmm can't seem to edit my post...
Anyways small typo in my code: Replace: return numOrdD(second, first); With: return numOrdD(first, second); |
|
#6 Sat 18 April, 2009 12:55
|
|
Administrator
![]() Registered: Apr 2008
Posts: 324
|
Thanks for the tip, agr.
_______________ AutoDirector administrator |
|
#7 Sun 19 April, 2009 0:33
|
|
|
Member
Registered: Apr 2009
Posts: 10
|
No problem.
|
Page: 1