david001's avatar

Filter products with checkbox

I have seen many e commerce site in which user can filter products by clicking checkbox. for example:let say there are different brand of mobile: like samsung,nokia,aCompany,bCompany,cCompany etc. Different colour ,size,memory.

when user check samsung checkbox pages display only samsumg mobile,when user further check 8Gb memeory checkbox ,page display samsung mobile with 8Gb memory and so on.

i want to implement such feature with jquery/Ajax and Laravel. Can you give me idea how this is done

0 likes
4 replies
alex_storm's avatar
  1. When you go to the category page, you need to make a selection of the goods and their attributes, which are tied to this group of products. Or create custom filter for each category in admin panel. (for example).

  2. In the desired category, output the filters

  3. When a user clicks on a filter, there are three ways to send data (onchange, click to button submit, onchange + float button submit). And then you'll be send data to php.

  4. Processing data from a form, filtering the query and displaying it on the screen.

  5. Correction of the URL, creating a get query to display the data.

1 like
mulenatni's avatar

please help me i want to filter product using simple checkbox button. when the user click/cheek the button immediately display related product

Please or to participate in this conversation.