Filter products by category in admin panel
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 12
- Joined: 23 Feb 2020, 10:32
Filter products by category in admin panel
I have a base category (level 0) and several sub categories (level 1). In "templates/product/list-standard.php", I want to create a category filter to show products belonging to particular category only via a select box.
For example if selected Nike, then list all products from that sub category.
Please help me. Should I create a decorator? (How?) or what methods should I overwrite.
For example if selected Nike, then list all products from that sub category.
Please help me. Should I create a decorator? (How?) or what methods should I overwrite.
Re: Filter products by category in admin panel
That's very difficult because categories are not attached to products. Instead, it's the other way round, products are attached to the catalog items and you can't filter or sort by catalog data in the product view. You would have to use the catalog manager to get the products for the chosen category to display them but you can't let the database sort them by any product column for example.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star