Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

BUGS : productVariant -> translation

BUGS : productVariant -> translation

Nolan_V
Shopify Partner
11 0 0

Hi, I wanted to get the translated Name of a productvariant using the 2024-04 version of the GraphQL api, so I used this request:

{
       productVariants(first: 1, query: "updated_at:>'2023-10-31T13:30:24Z'") {
              nodes {
                        product {
                               translations(locale: "en") {
                                value
                                }
                         title
                        }
                        translations(locale: "en") {
                                  value
                        }
                       displayName
                      }
            }
}

And when a variant has more than one option, the first one is not returned, as shown in the images below.

Shopify product variant Response options.png

And I don't know why, but I have an HTML element returned to the value of the product title translation.

Shopify product variant Response product title.png

I don't know if it's a user problem or if it's coming from your side?

Replies 2 (2)

Nolan_V
Shopify Partner
11 0 0

I also wanted to know if there was any way to get all the translations of a product variant, or at least do something like this:

translations(locale: "en AND fr") {

Nolan_V
Shopify Partner
11 0 0

Can someone from Shopify confirm that this is a bug ?