0

I am trying to programatically retrieve a list of products that have a attribute with a specific value.

i am working on advanced search page.

i have created two attribute

  1. price_foreach
  2. quantity

1) if customer enter price from 100 to 150 and left blank quantity than it will show all products from price_foreach 100 to 150 its working fine

2) but if customers enter price_foreach 100 to 150 and quantity 100 it should show all product from 100 to 150 but in respect of quantity it should respect 100 and more than 100 products.

  • 1
    you can refer this stackoverflow.com/a/1338795 – Gopal Patel Oct 27 '16 at 9:48
  • @GopalPatel thanks... i refers but where should i edit i did not get can you please tell me where should i edit it. while i am working on advanced search page. – Sarvesh Tiwari Oct 27 '16 at 9:50
  • Update your question what exactly you want to do with advanced search. – Gopal Patel Oct 27 '16 at 11:31
  • i have created two attribute 1) price_foreach 2) quantity 1) if customer enter price from 100 to 150 and left blank quantity than it will show all products from price_foreach 100 to 150 its working fine 2) but if customers enter price_foreach 100 to 150 and quantity 100 it should show all product from 100 to 150 but in respect of quantity it should respect 100 and more than 100 products. – Sarvesh Tiwari Oct 27 '16 at 12:01
  • what do you mean by "it should respect 100 and more than 100 products" ? – Gopal Patel Oct 27 '16 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.