AutoDirector forum

The AutoDirector support and advice forum

Change Order By

Post Reply

Page: 1

Author Post
Member
Registered: Aug 2008
Posts: 7
Is there any way of adding categories such as Campers, Poptops, Caravans and Motorhomes in the order by? This would make it easy for my customers to find the type of RV they require. Any other suggestions on how to solve this would be appreciated
Administrator
Registered: Apr 2008
Posts: 324
Hi,

AutoDirector doesn't have categories, but I'd suggest:

1. Change the "more information" box to have the category name at the start, e.g. "Caravan: this is a ...".

2. Now open client/carlist.js in an editor. After between lines 61 and 72 you'll see the sorting types. Add these lines somewhere in that list (e.g. if you want them first, add them before "price, highest first"):

sortTypes[st++] = { name: "category, A-Z", sort: function(a, b) { return SortCars(a.info, b.info, 1); } };
sortTypes[st++] = { name: "category, Z-A", sort: function(a, b) { return SortCars(a.info, b.info, 1); } };

I hope that helps.

Craig
_______________
AutoDirector administrator

Post Reply

Page: 1