Storefront products filtering using metafield and multilingual

Storefront products filtering using metafield and multilingual

s_wiz
Shopify Partner
1 0 0

Hello,

 

We are using Hydrogen (remix) and the GraphQL Storefront API to build our website.

 

On the collection page, we display filters that are configured in the Search & Discovery official app.

On the default english version, everything works well. The filters are displayed and when clicked, our filter query successfully returns our collection with products filtered.

 

On our french version (using a /fr subpath) the filters are displayed in the correct language but when clicked, our filter query (the same than before) returns the content in english and thus can't filter using our custom metafield value that was translated.

The difference between the 2 calls is only the value of our metafield that we obtained from the initial query in french.

 

We compared with the base liquid Dawn theme still installed (ex: /fr/collections/all?filter.p.m.custom.fragances=Hesperidé) and there filtering in both languages works just fine.

We initially thought it could be a translation error on our end but that fact that it's working on the liquid theme eliminate this possibility. There might be an issue with the GraphQL Storefront API.

 

We contacted the support that told us to contact a Shopify expert.

 

Does anyone have experienced a similar issue filtering product in 2 or more languages using the Storefront API ?

 

Thanks in advance.

Replies 0 (0)