Answer the question
In order to leave comments, you need to log in
How to group the same categories, take their id and search for products on them?
An example like on aliexpress, several stores in one, but their categories and products are grouped into a single list on the main page. Unfortunately, each store can have the same categories, because of this I entered a dead end.
Here is a request to display all categories:
This displays the main categories in the sub_category column, the id of the category in which the subcategory belongs is indicated, if the main one is 0.
Server response:
SELECT * FROM bot_shop_category WHERE hide = 0
Продукты
Одежда
Одежда
итд...
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