Catalog filter with added product options

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
RahmouniRabii
Posts: 6
Joined: 15 Dec 2021, 08:57

Catalog filter with added product options

Post by RahmouniRabii » 15 Dec 2021, 09:32

Hello,
I am using laravel 8.x, PHP 7.4, Ubuntu and the Aimeos 2021
Am new to Aimeos framework, i'm using laravel aimeos package to build a simple car rental app.

First, just to confirm what i have already checked in documentation :

Attributes are shared in products and options are specifics for each products, so
for ex, a car , Make (ex Mercedes-Benz) and Model (ex AMG GT) also Transmission (ex Automatic) must be attributes because they are shared with products.
And informations like Engine (ex 1.8L DOHC SFI 16-valve VVT-i) must be added as product OPTIONS , Right ?

My technical (dev) Question is : how to add products Options and Attributes in the catalog filter (the easy clean way please) ?

Thanks !

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

Re: Catalog filter with added product options

Post by aimeos » 15 Dec 2021, 10:00

Yes, attributes are shared and can be used for catalog filters while product properties are for one product only and are not used to build any filter. Your categorization of make, model and transmission and engine seems to be correct.

By default, all attribute types are listed in the catalog filter component (clear the cache with "php artisan aimeos:clear" or disable caching during development if not). To use only a subset of the attribute types as filters, you can configure them using this configuration setting:
https://aimeos.org/docs/2021.x/config/c ... ter/#types
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
RahmouniRabii
Posts: 6
Joined: 15 Dec 2021, 08:57

Re: Catalog filter with added product options

Post by RahmouniRabii » 15 Dec 2021, 10:41

Thank you so much,
Just want to know for the default existing catalog filters, where they are configured ?
which file can i see this default config ?

Thankssss

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

Re: Catalog filter with added product options

Post by aimeos » 15 Dec 2021, 10:43

Check the Laravel section of the Aimeos docs for details:
https://aimeos.org/docs/latest/laravel/ ... figuration
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
RahmouniRabii
Posts: 6
Joined: 15 Dec 2021, 08:57

Re: Catalog filter with added product options

Post by RahmouniRabii » 16 Dec 2021, 09:57

Thanksssss !

Post Reply