How to display filter based on category of product?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
oliwin4
Posts: 12
Joined: 16 Aug 2022, 08:36

How to display filter based on category of product?

Post by oliwin4 » 24 Aug 2022, 20:18

How to display filter based on category of product?
I need to show dinamic filters based current category of product. How do do that and manage it?

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

Re: How to display filter based on category of product?

Post by aimeos » 26 Aug 2022, 10:08

By default, filters which are not available for the current category are hidden via CSS and enabled by JS:
https://github.com/aimeos/ai-client-htm ... #L213-L218
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

oliwin4
Posts: 12
Joined: 16 Aug 2022, 08:36

Re: How to display filter based on category of product?

Post by oliwin4 » 29 Aug 2022, 21:07

Could I manage it in Admin panel? For example create a custom filter for tree categories?

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

Re: How to display filter based on category of product?

Post by aimeos » 31 Aug 2022, 07:06

It would be possible to assign attribute types to categories via the mshop_catalog_list table and use them in the frontend to determine what filters should be shown. For that, you have to create your own subpart for the category tree panel where you can assign the attribute types and you have to change the frontend code to use that attribute types.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply