
|
 |
| Price: |
$299.95
|
| |
| Includes: |
Version 2.52, free support, free upgrades for 90 days, and our 90-day, unconditional money back guarantee.
|
|
|
|
Create Your Own Auto Manager Demo
Find out for yourself why thousands of people from all over the world use Auto Manager to update their automobile listings. Get started now with your very own 30-day demo.
Auto Manager Tutorial: Sorting by Price
By default, your main listings page orders the information alphabetically by the address field. But what if
you want it to be sorted by some other field, like price? To do this, what you can do is link directly to the
search engine instead, and use it to search by a specific field.
Here's an example of how to create a link that links directly to the search results of all of your listings
sorted by price.
- First go to Auto Manager's setup options and make sure "Enable database sorting?" is set to "yes".
- Open up your _search_query.html template file (stored in your /templates/_auto directory) and add the following.
(Make sure to add this somewhere between the open <form> and closing </form> tag).
<input type="hidden" name="sort_order" value="3,123,forward">
By default, field 3 is the price field, so we enter in '3' as the value. If you use a different database field
number to store the pricing information you'll want to change that value to suit your setup. Also, replace 'forward' with
'reverse' if your want your listings to be sorted with the most expensive vehicles first.
- Now go to your search query page in your browser (/exec/search.cgi). To get there, you can just click
on "Search Listings" from one of the pages generated by Auto Manager. Perform a generic search (don't fill
out any of the search fields - just click search.) This search should return all of your listings.
Note: you can also specify the results to be shown per page with the "perpage" field in your search
form (/templates/_auto/_search_query.html). You'll need to add (or modify) a hidden input element containing
this information:
<input type="hidden" name="perpage" value="10">
Feel free to change the value "10" for however many results you want each page to display.
- Next, copy and paste the search results URL from your browser's address bar. Replace this URL with the URL
you normally use to link people to the HTML file listings index. You'll probably want to make this URL
replacement in all six of your template files.
- Now when people click on "view our listings" they'll be taken to the entire search results of all of
your listings, displaying 10 listings per page, and sorting by price.
Did this "How to" make sense? Send us your feedback, or
let us know if you're using something like this on your installation of Auto Manager and we'll link to
it as an example.
|