cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Catalog version restriction on product search

sduvvuri
Explorer
0 Kudos
980

Hello Experts,

I'm trying to search a product for my newly created B2C site. But I could not able to as an anonymous user. Though the search in B2B site is working fine. When I tried to debug the issue found that the catalogVersion restriction {item:catalogVersion} IN (?session.catalogversions) is stopping the product to be retrieved. How do I resolve this?

I've seen that a catalogVersion should be set for session in filter. But I don't see that for electronics/powertools accelerator store. Is there some configuration to be done as part of this which I've missed.

Appreciate your help.

Accepted Solutions (1)

Accepted Solutions (1)

sduvvuri
Explorer
0 Kudos

Got the solution.

There is no need to set catalogVersions specifically in the code to session. You just have to set the required catalogs for the base store of the site. In my case I've configured the wrong catalog hence it did not pick those products.

Answers (1)

Answers (1)

0 Kudos

I found the similar error message/issue due to null value was passing into baseSiteId.

POST /commercewebservices/v2/null/products/classifications

If you find similar issue, please also check access log and console log within same time.

Best | Ashish Vyas