Catalog Suggest JSON restricts search to Category with ID 1

Questions around the TYPO3 integration and plugins
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!
cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Catalog Suggest JSON restricts search to Category with ID 1

Post by cnoelker » 11 Jun 2020, 17:04

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

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

Re: Catalog Suggest JSON restricts search to Category with ID 1

Post by aimeos » 11 Jun 2020, 17:17

Check those two configurations which may cause your problem:
https://github.com/aimeos/ai-client-htm ... #L368-L373
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Re: Catalog Suggest JSON restricts search to Category with ID 1

Post by cnoelker » 12 Jun 2020, 06:32

Thank you. Setting client.html.catalog.lists.catid-default solved the problem.

Post Reply