when choose two color for filter use and but it bust be use or

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!
Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

when choose two color for filter use and but it bust be use or

Post by Ahmad » 11 Sep 2020, 13:29

i use aimeos/laravel 2020.07
i have 2 products with Red color and 0 product with Black color.
in catalog filter when i choose Red checkbox i see 2 product in list but when choose Red checkbox and Black check box, don't show any products, but it must show 2 products with Red color because it must show all products have Red color or Black color.
what can i do for this?

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

Re: when choose two color for filter use and but it bust be use or

Post by aimeos » 12 Sep 2020, 10:19

By default, the attribute are combined using AND so users can drill down to get the products they want.
You can use OR by configuring for the attribute type code "color":

Code: Select all

client/html/catalog/filter/attribute/types-option => ['color']
Documentation: https://aimeos.org/docs/master/config/c ... pes-option
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply