Show only related brands/suppliers.

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!
User avatar
peter69
Posts: 98
Joined: 09 Jun 2022, 19:31

Show only related brands/suppliers.

Post by peter69 » 12 Jul 2022, 16:25

In the sections where products are listed, on the left side there are options to filter by price, brands/suppliers. However, I see that all suppliers are listed.

I think it would be better to list only the suppliers that are present in the products being displayed.

Is there any configuration related to this part or any way to do it?

Thank you so much for the amazing package you have created,

Best Regards,

User avatar
peter69
Posts: 98
Joined: 09 Jun 2022, 19:31

Re: Show only related brands/suppliers.

Post by peter69 » 14 Jul 2022, 05:47

I was reading the documentation and apparently there is no related configuration, I think I have to do it manually as it may be a particular behavior.

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

Re: Show only related brands/suppliers.

Post by aimeos » 14 Jul 2022, 06:24

For supplier filter (as well as attribute and category filter), there's an async request that returns the number of found products for each supplier and the Javascript code sent along disables the ones with no products found. You can see the code here:
https://github.com/aimeos/ai-client-htm ... r-body.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
peter69
Posts: 98
Joined: 09 Jun 2022, 19:31

Re: Show only related brands/suppliers.

Post by peter69 » 26 Jul 2022, 16:05

Thank you very much for the information. With CSS I have hidden the disabled flags/suppliers.

Thanks for your help!

Post Reply