Filter products by category in admin panel

How to configure and adapt Aimeos based shops as developer
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!
SaurabhSharma
Posts: 12
Joined: 23 Feb 2020, 10:32

Filter products by category in admin panel

Post by SaurabhSharma » 06 Mar 2020, 13:54

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.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Filter products by category in admin panel

Post by aimeos » 07 Mar 2020, 16:06

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, Image give us a star

Post Reply