Liquid, JavaScript, themes, sales channels
In our store, we have a problem with duplicating the product name in a search result.
We contacted support, but we were informed that this problem is related to the theme. But I don't understand what this has to do with it.
In addition, if we install a clean theme from the Shopify theme store, this problem persists. For example, if we make such a request, we get a duplicate title.
https://www.beldiamond.com/fr/search/suggest.json?q=giu&resources[type]=product
However, if we create a new product, the problem disappears for this product.
https://www.beldiamond.com/fr/search/suggest.json?q=Test&resources[type]=product
Any ideas on how to fix this? I saw a similar problem here on the forum but there is no answer in it.
Solved! Go to the solution
This is an accepted solution.
Maybe this will be useful to someone. I found the problem. It is related to product name translations.
For example, if you use several languages in the store (for example, as in our case, en, fr, nl), then you will get a product name in the search consisting of three translated names.
We just removed the translation for fr and nl languages.
I am not able to understand your problem ? May you elaborate?
The product name is duplicated when using predictive search
Are you using API for predictive search ?
Yes, that's right. We use the Impulse theme, in which this search is the default implementation
There is problem is theme code we have to resolve by checking it.
No. Carefully read what I wrote in the thread. This is not a theme issue. I tested this on different themes from the Shopify store
When you check you Jason code of Predictive search you will find that when you type search string your product object return
id": INTEGER,
"image": STRING e.g, "https://cdn.shopify.com/s/...",
"price": DECIMAL,
"price_max": DECIMAL,
"price_min": DECIMAL,
"tags" : ARRAY OF STRING,
"title": STRING, "type" : STRING,
"url": STRING
do you Keep your Product title and tags same? Please check
This is an accepted solution.
Maybe this will be useful to someone. I found the problem. It is related to product name translations.
For example, if you use several languages in the store (for example, as in our case, en, fr, nl), then you will get a product name in the search consisting of three translated names.
We just removed the translation for fr and nl languages.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024