How to keep the current catalog when filter was applied?
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!
How to keep the current catalog when filter was applied?
Hi!
Aimeos 2020.10, Laravel
Could you please provide me with a tip how I can apply the catalog filter for the current catalog ONLY, excluding all parent catalogs?
For example,
we are inside the "man~4" catalog: http://127.0.0.1:8000/shop/man~4
Applying a filter changes this URL to something like http://127.0.0.1:8000/shop?f_attrid%5B%5D=40...
But I'd like to KEEP the initial catalog id: http://127.0.0.1:8000/shop/==man~4==?f_attrid%5B%5D=40...
Commonly say, I need a way to apply the catalog filter just for the current catalog only.
Aimeos 2020.10, Laravel
Could you please provide me with a tip how I can apply the catalog filter for the current catalog ONLY, excluding all parent catalogs?
For example,
we are inside the "man~4" catalog: http://127.0.0.1:8000/shop/man~4
Applying a filter changes this URL to something like http://127.0.0.1:8000/shop?f_attrid%5B%5D=40...
But I'd like to KEEP the initial catalog id: http://127.0.0.1:8000/shop/==man~4==?f_attrid%5B%5D=40...
Commonly say, I need a way to apply the catalog filter just for the current catalog only.
Re: How to keep the current catalog when filter was applied?
Enable this configuration option:
https://aimeos.org/docs/latest/config/c ... e-search_1
https://aimeos.org/docs/latest/config/c ... e-search_1
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
Re: How to keep the current catalog when filter was applied?
It seems there is a bug here.
Enabling this config option (client/html/catalog/filter/tree/force-search = 1) adds a new parameter f_catid to URL, but also causes error
Missing required parameters for [Route: aimeos_shop_tree] [URI: shop/{f_name}~{f_catid}]
This error can be easy resolving by setting the route params to obligatory using "?" But I'm not sure if this is correct behavior when a new config option is applied.
Is this a bug?
Enabling this config option (client/html/catalog/filter/tree/force-search = 1) adds a new parameter f_catid to URL, but also causes error
Missing required parameters for [Route: aimeos_shop_tree] [URI: shop/{f_name}~{f_catid}]
This error can be easy resolving by setting the route params to obligatory using "?" But I'm not sure if this is correct behavior when a new config option is applied.
Is this a bug?
Re: How to keep the current catalog when filter was applied?
This problem has been fixed in aimeos/ai-client-html:2020.10.20 and later.
Please update you installation and make sure that your customized tree template contains:
https://github.com/aimeos/ai-client-htm ... hp#L67-L70
Please update you installation and make sure that your customized tree template contains:
https://github.com/aimeos/ai-client-htm ... hp#L67-L70
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