Filter multiple categories
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 1
- Joined: 09 Sep 2020, 08:23
Filter multiple categories
Hi I want to know is there any option for multiple categorie filter like attribute in laravel
Re: Filter multiple categories
Yes, you can pass multiple categories using the f_catid parameter like:
For that, you have to replace the standard category template with one that adds a checkbox to each category.
Code: Select all
<input type="checkbox" name="<?= $enc->attr( $this->formparam( ['f_catid', ''] ) ?>" value="<?= $enc->attr( '<catid1>' ) ?>" />
<input type="checkbox" name="<?= $enc->attr( $this->formparam( ['f_catid', ''] ) ?>" value="<?= $enc->attr( '<catid2>' ) ?>" />
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star