How to add a custom filter in 2019 version

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!
saniul
Posts: 6
Joined: 03 Nov 2020, 05:28

How to add a custom filter in 2019 version

Post by saniul » 03 Nov 2020, 05:31

I want to add the price filter option in 2019 aimeos version that is used in 2020 version. how is it possible? is it possible to add a custom filtering also.?

Laravel 6, Aimeos ~2019.10, PHP 7.2

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

Re: How to add a custom filter in 2019 version

Post by aimeos » 03 Nov 2020, 08:29

In principle yes, but this also requires new code in the frontend controller and the MShop core library. I think it would be easier to upgrade to 2020.10. Check your custom code if it's affected by one of these changes:
https://aimeos.org/docs/latest/changelog/2020.x/

To add custom filters, you have to add a new subpart to the catalog/filter component:
- https://aimeos.org/docs/latest/frontend ... -subparts/
- https://github.com/aimeos/ai-client-htm ... log/Filter
- https://github.com/aimeos/ai-client-htm ... log/filter
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

saniul
Posts: 6
Joined: 03 Nov 2020, 05:28

Re: How to add a custom filter in 2019 version

Post by saniul » 04 Nov 2020, 06:33

I do not want to upgrade to 2020 because of other components and package may hampers. my system is highly customized. i just want one thing to be added that is only the price slider filter. which i am not able to. So please can you help me a step by step guide on how to add to this slider filter only in the 2019.10 version. please it would be great help. Thanks.
BTW thanks for previous reply but i just did not understand the process in that short :(

N:B: i have created a new theme in ext folder in that theme i need to add that filter. do I have to add it in ai-client-html too. Please tell the full process step by step.

saniul
Posts: 6
Joined: 03 Nov 2020, 05:28

Re: How to add a custom filter in 2019 version

Post by saniul » 04 Nov 2020, 14:47

aimeos wrote: 03 Nov 2020, 08:29 In principle yes, but this also requires new code in the frontend controller and the MShop core library. I think it would be easier to upgrade to 2020.10. Check your custom code if it's affected by one of these changes:
https://aimeos.org/docs/latest/changelog/2020.x/

To add custom filters, you have to add a new subpart to the catalog/filter component:
- https://aimeos.org/docs/latest/frontend ... -subparts/
- https://github.com/aimeos/ai-client-htm ... log/Filter
- https://github.com/aimeos/ai-client-htm ... log/filter
This does not work i tried to implemented.

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

Re: How to add a custom filter in 2019 version

Post by aimeos » 07 Nov 2020, 08:20

"Does not work" is to unspecific for helping you to solve your problem ...
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply