Images changing when Language is changed.

FatimaBaloch1
Visitor
2 0 0

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. 

Reply 1 (1)

LitExtension
Shopify Partner
4860 1001 1132

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!

 

 

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify