Search bar and category search not working properly

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!
SupportMantik
Posts: 5
Joined: 09 Jan 2019, 08:07

Search bar and category search not working properly

Post by SupportMantik » 14 Oct 2019, 16:07

We are using Aimeos v.18.10.0. and have 2 problems with the search function:

For example:
we have categories:
- AUDI (products: A3, A6, A8)
- BMW (products: X5, X6, X7)
- MERCEDES

1. problem:
When we type into the products search bar an "AUDI" product, for example "Audi A6", the search works fine.
But if we click after that onto a category, for example "BMW", we receive the message "Audi A6 no results" (it remembered the search term from the search bar, even if that are different categories - AUDI/BMW).

2. problem:
for some categories, for example "OPEL", all products are listed. But if we type a product name into the search bar, we receive that there are no results.

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

Re: Search bar and category search not working properly

Post by aimeos » 14 Oct 2019, 17:11

Did you set a default category in your catalog list plugin? If yes, remove it to get all results.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

SupportMantik
Posts: 5
Joined: 09 Jan 2019, 08:07

Re: Search bar and category search not working properly

Post by SupportMantik » 15 Oct 2019, 10:41

Thanks. I have tried it. But it did not solve my problem.
My search is still very 'buggy'

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

Re: Search bar and category search not working properly

Post by aimeos » 15 Oct 2019, 10:45

Is the search term still part of the URL?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Search bar and category search not working properly

Post by aimeos » 17 Oct 2019, 07:31

Best option would be to unset the "f_search" parameter here to avoid that issue:
https://github.com/aimeos/ai-client-htm ... hp#L25-L65
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply