AutoDirector forum

The AutoDirector support and advice forum

Default showroom with price lowest to highest

Post Reply

Page: 1

Author Post
Member
Registered: Nov 2011
Posts: 8
Is there a way to open a showroom ordering lowest to highest price? I know the search can do this but my cleint wants this....

Cheers,
Cubby
Administrator
Registered: Apr 2008
Posts: 324
Hi,

Yes - open client/carlist.js in an editor and locate lines 83 and 84. Copy line 84 above 83 as so...

sortTypes[st++] = { name: "price, lowest first", sort: function(a, b) { return SortCars(a.price, b.price, 1); } };
sortTypes[st++] = { name: "price, highest first", sort: function(a, b) { return SortCars(a.price, b.price, -1); } };


The "price, lowest first" will now be used by default.
_______________
AutoDirector administrator

Post Reply

Page: 1