How to make the site search always global?

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!
User avatar
DNK
Posts: 16
Joined: 27 Feb 2025, 10:50

How to make the site search always global?

Post by DNK » 13 Mar 2025, 09:46

Now, if I am inside a category, the search works inside this category. What do I need to do to make the search work everywhere and always globally for all products?
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS

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

Re: How to make the site search always global?

Post by aimeos » 15 Mar 2025, 11:00

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
DNK
Posts: 16
Joined: 27 Feb 2025, 10:50

Re: How to make the site search always global?

Post by DNK » 17 Mar 2025, 11:40

Doesn't work:

Image

Search inside category:
Image

Global searching:
Image
Aimeos 2024.10.3 + Laravel 11, PHP 8.2, MySql8.0, Nginx, Ubuntu 22.04.5 LTS

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

Re: How to make the site search always global?

Post by aimeos » 17 Mar 2025, 17:24

Sorry, this wasn't the correct setting. There's one named very similarly:
https://aimeos.org/docs/2024.x/config/c ... e-search_1

But it's not enabled by default so it's not the reason why products are only searched within the current category.

The reason is that the f_catid parameter is included in the URL if it's available here:
https://github.com/aimeos/ai-client-htm ... y.php#L104

So you can overwrite the template and remove f_catid from the list of parameters and then it should work.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply