Liquid, JavaScript, themes, sales channels
I want to change the pictures on my products when someone changes the language. I'm using German as a basic language But I have the traffic from other countries as well so for that I want to add different images for different languages.
Hi @FatimaBaloch1,
You can use 'request.locale.iso_code' to check if the locale is showing at the site and then add conditions to display different images. Refer https://shopify.dev/api/liquid/objects/shop-locale#shop_locale-iso_code
Hope it helps!
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