How to Filter catalog/list products?

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
luzaj
Posts: 3
Joined: 28 Feb 2023, 06:57

How to Filter catalog/list products?

Post by luzaj » 28 Feb 2023, 07:04

Hi,

I am using aimeos laravel package for my shop. I have created a theme for the design.

I need to add a filter on shop page. How can I achieve that?

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

Re: How to Filter catalog/list products?

Post by aimeos » 01 Mar 2023, 07:28

Are you using Laravel or TYPO3. Please details about your environment if you ask such questions so we can point you to the correct code examples.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

luzaj
Posts: 3
Joined: 28 Feb 2023, 06:57

Re: How to Filter catalog/list products?

Post by luzaj » 01 Mar 2023, 11:07

Hi we are using Laravel 9. and aimeos ^2022.10 on apache server with PHP 8.1

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

Re: How to Filter catalog/list products?

Post by aimeos » 02 Mar 2023, 08:46

On the catalog list page, the filter (including category, attribute, supplier and price filter) is already available if you haven't overwritten the page configuration in your ./config/shop.php:
https://github.com/aimeos/aimeos-larave ... op.php#L32

Make also sure that the Blade template for the page contains the "catalog/filter" header and body parts:
https://github.com/aimeos/aimeos-larave ... .blade.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

luzaj
Posts: 3
Joined: 28 Feb 2023, 06:57

Re: How to Filter catalog/list products?

Post by luzaj » 02 Mar 2023, 09:05

Ok, but how can we make the changes? Where should we add the custom filters? Any controller or something?

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

Re: How to Filter catalog/list products?

Post by aimeos » 05 Mar 2023, 08:55

Maybe you should post the template code you want to use so we can see where you want to add which filter. At the moment, it's not clear what you want. Adding the catalog/filter section to the catalog list page seems to be not what you want.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply