Hi David,
Have been looking at having price range links similar to {link saved} (Please remove the link if necessary) £200-400, £400-600 etc.. Have looked at a few threads, but all seem complicated enough. Any easier way in the new distribution, or can you point me to a thread with the complete solution similar to the link provided ?
Obviously, don't expect this to be answered until after the new year :)
Many thanks
Adrian
is this only possible in the new PT version ?
tryed to make this ...
<a href='search.php?q=<?php print $q;?>&minPrice=0.00&maxPrice=10.00'>0 - 10 €</a>
... but it doesnt works
alecs
Hello Alecs,
Yes - the min/max price parameters were added in the latest version. I will email your registration code to you now; but it is very easy for me to add them to your current version if you just want to send me your search.php. I do not really recommend trying to upgrade an existing site if you have made lots of changes...!
Cheers,
David.
Hi Dave,
I am looking for similar solution but an automated one. For example, would it be possible to have a mini script to do a simple calculation to product a price break down?
Like say someone searches for "Television", so this mini script will look lowest value item returned (lets say £50) and the highest value item (say £2500) and divide the whole ranges in to increment of 100 (or user configurable variable) produce a list to show item break down. Where in this eaxmple, based on 100 incremental division you would get following:
- £50 to £150
- £151 to £250
- £251 to £350
.. so on.
Similar example I can point out is the your Page Numbers that produced on search page.
Possible?
Noor
Hello Noor,
It's possible, but it's really not as straight forward as it sounds i'm afraid!
The main issue is that the search first has to be performed against the entire result set to obtain the minimum and maximum price for results for the query, and this could have performance implications. I can give it a go for you, but I would ordinarily only recommend creating price ranges on a niche sites with items that have pretty well defined price ranges to start with - for example kitchen appliances, rather than on a generic site. In most cases of course, provided that search is working well enough the most appropriate results regardless of price should be displayed...
Cheers,
David.
Hi Adrian,
The price range parameters are now built in to the latest distribution; so for example to link to the "Televisions" category between £100 and £200 use:
/search.php?q=category:Televisions&minPrice=100.00&maxPrice=200.00
Hope this helps!
Cheers,
David.