Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search by Price?


vonbrocklin

Recommended Posts

Posted

I haven't starting digging through the code, but assuming that I am comfortable hacking PHP and MySQL, how difficult would this be:

 

1. Create a "price" drop down exactly like the Manufacturers drop-down

 

2. Allow visitor to select from $0-$20, $21-$50, and so on...

 

3. Return all products falling within their selected price range in a paged list

 

Seems very possible but just want to make sure there are no pitfalls. Assuming there is no contrib like this, I will add it when I am done (assuming it is possible...)

 

Thanks, look forward to getting into the code.

Posted

very easy to do. All you need is a javascript drop down box w/ URLs like this:

advanced_search_result.php?keywords=&categories_id=&inc_subcat=1&manufacturers_id=&pfrom=10&pto=20&dfrom=&dto=&x=0&y=0

Take a look at how advanced_search.php does it.

Posted

I figured it would not take much. Thanks for the pointer. I have another question along similar lines but I think I should start a new thread because it is a unique topic. I'm off to do so...thanks again.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...