Catalog Suggest JSON restricts search to Category with ID 1
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Catalog Suggest JSON restricts search to Category with ID 1
Hello,
I set up a second site which has different categories than the first site. In the first site, the HOME category has the ID 1. Using the JSON plugin works fine and finds all entries.
In the second site, the HOME category has the ID 287.
The suggest-search on the second site does not work, though, so I did some debugging in MySQL. I found out that the search query always includes this:
AND mindca.catid IN ( '1' )
Obviously, no products are found. When I tweak the query to use the ID 287, then it does return entries.
I checked the configuration for the Catalog Suggest JSON, but there is nothing which sets the root category.
I checked for any possible option within client/html/catalog/suggest , but nothing.
I checked the Catalog Filter plugin and tried to set 'Display categories beginning from the following node' to either ID 287 or to nothing. No change. (The tx_aimeos.mshop.locale.site configuration is available, otherwise I would see the category tree.)
I am running out of ideas here. Where can I set the root category for the suggest-search?
Claudia
I set up a second site which has different categories than the first site. In the first site, the HOME category has the ID 1. Using the JSON plugin works fine and finds all entries.
In the second site, the HOME category has the ID 287.
The suggest-search on the second site does not work, though, so I did some debugging in MySQL. I found out that the search query always includes this:
AND mindca.catid IN ( '1' )
Obviously, no products are found. When I tweak the query to use the ID 287, then it does return entries.
I checked the configuration for the Catalog Suggest JSON, but there is nothing which sets the root category.
I checked for any possible option within client/html/catalog/suggest , but nothing.
I checked the Catalog Filter plugin and tried to set 'Display categories beginning from the following node' to either ID 287 or to nothing. No change. (The tx_aimeos.mshop.locale.site configuration is available, otherwise I would see the category tree.)
I am running out of ideas here. Where can I set the root category for the suggest-search?
Claudia
Re: Catalog Suggest JSON restricts search to Category with ID 1
Check those two configurations which may cause your problem:
https://github.com/aimeos/ai-client-htm ... #L368-L373
https://github.com/aimeos/ai-client-htm ... #L368-L373
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: Catalog Suggest JSON restricts search to Category with ID 1
Thank you. Setting client.html.catalog.lists.catid-default solved the problem.