Filter multiple categories

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!
StevenShelby
Posts: 1
Joined: 09 Sep 2020, 08:23

Filter multiple categories

Post by StevenShelby » 10 Sep 2020, 04:58

Hi I want to know is there any option for multiple categorie filter like attribute in laravel

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

Re: Filter multiple categories

Post by aimeos » 11 Sep 2020, 10:11

Yes, you can pass multiple categories using the f_catid parameter like:

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>' ) ?>" />
For that, you have to replace the standard category template with one that adds a checkbox to each category.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply