Answer the question
In order to leave comments, you need to log in
How to fasten filters for the catalog of an online store?
So far I have only thought of storing category id, product attribute id and two value and sql fields in a separate filters table. In the value field I store the filter criterion. And in the sql field, a piece of the query that needs to be added to select the product. Let's say there is a product - a TV set, it has an attribute: screen diagonal. Request
select a.name as name, f.value, f.`sql` from c_filters as f join products_attributes as a on f.a_id = a.id where f.c_id=20;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question