Whether to do a product filter?
Hello! You must implement the filter items by category and store. My thoughts on the matter:
Create widget with form to post it in the right view, the form would pass in a url similar to the following:
site.com/category/1?author=john%20doe&in_stock=1&min_price=10&max_price=100
In the controller check Yii::$app->request->get('filter_query') and if it is - smash GET and it generates the query, then render the result in view.
Whether correctly I understood?
Thank you.
1 answer
Find more questions by tags Yii