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

Smart Edit: ProductCarouselComponent not showing products in smartedit editor for custom language isocode(en_GB)

2,256

Hi All,

I'm trying to add products to ProductCarouselComponent from smart edit editor, but products dropdown showing empty list. When I debug, it tries to execute Named Query from DefaultNamedQueryServiceProductSearchService.getNamedQueryForProductSearch() and it always taking "en" as language ISO code. We don't have any "en" localization for a name, description as we have en_GB as default language and localizations are available for en_GB only. Does anyone face this problem? Please help.

Hybris version: 6.7

Named Query: "SELECT {pk} FROM {Product} WHERE ( LOWER({name}) LIKE LOWER(?name) OR LOWER({description}) LIKE LOWER(?description) OR LOWER({code}) LIKE LOWER(?code)) AND {catalogVersion} = ?catalogVersion"

SELECT {pk} FROM {Product} WHERE ( LOWER({name}) LIKE LOWER('%%') OR LOWER({description}) LIKE LOWER('%%') OR LOWER({code}) LIKE LOWER('%%')) AND {catalogVersion} = '8796093121113'

Above query working when I add localizations for name and description in "en". Also tried executing above query from hac by changing the iso code. Please refer screen prints below.

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member

Hi,

Did you try changing the language to GB while login through smartedit?

0 Likes

Hi ,

Yes. I changed the language to GB before login through smart edit. In fact, we are showing only GB language in the dropdown. Please refer screen below.

0 Likes

We are facing a similar issue for product search in smart edit when we are trying to create Product restrictions. Does anyone have any solution for this? it is hitting the same query:

SELECT {pk} FROM {Product} WHERE ( LOWER({name}) LIKE LOWER(?name) OR LOWER({description}) LIKE LOWER(?description) OR LOWER({code}) LIKE LOWER(?code)) AND {catalogVersion} = ?catalogVersion

0 Likes

Hi, im having the same issue, if you find the solution please let us know :)

0 Likes

Another condition you have note, that is the products need to be syncronized and approved correctly (green icon on backoffice). However that solution dont work in all cases.