Searching by Price

5 posts by 4 authors in: Forums > CMS Builder
Last Post: November 14, 2008   (RSS)

By wevolutions - November 12, 2008

I am trying price_min and price_max to search my price listings but it is not working.

Note: I have a "$" in my price on the listings eg. $75,000.00 so will this cause the search to not function properly?

And if this is the case, what can be done to modify a price search with alpha numeric values?

Re: [WEVOLUTIONS] Searching by Price

By Perchpole - November 12, 2008

My advice would be to avoid using any non-alpha-numeric characters. You can then "render" the "$" in HTML next to your CMSB output...

The price of this property is $<?php echo $record['price'] ?>

...sort of thing.

That way your search need only consider real numbers - not numbers and symbols. I've produced a 100+ product catalogue using this method and it works a treat.

:0)

Perchpole

Re: [sagentic] Searching by Price

By wevolutions - November 14, 2008

Thank you guys for that information. I will have to do some adjustments to my prices on the site.

Can you confirm whether a comma in the price will affect the search from working? Eg. 75,000

Re: [WEVOLUTIONS] Searching by Price

By Dave - November 14, 2008

Hi WEVOLUTIONS,

Yes, it will. You need all numeric values in the database. You can have the automatically formatted to display like that on the website though.
Dave Edis - Senior Developer
interactivetools.com