Product Variants

AsadBaig
New Member
3 0 0

How i can replace images of the product with color variants in shopify? As i want to add product thumbnails as color variants after product title

Anyone Please

 

0 Likes
Guleria
Shopify Partner
1692 352 489

Hello @AsadBaig ,

While adding the variant you noticed there is an option available to add variant thumbnails with each. You can use it for color variants. 
Alternately you can use metafields. Possible in both ways but not if you are aware about liquid.

Thanks 

Want to modify or custom changes on store hire me.
Email: guleriathakur43@gmail.com, Skype: navrocks1
If helpful then please Like and Accept Solution.
Buy me a coffee ☕ My PayPal
0 Likes

You can use variant.image to display the image of variant. Refer https://shopify.dev/api/liquid/objects/variant#variant-image
Ex: you can use background for it: background-image: url({{ variant.image | img_url: '355x' }})

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
0 Likes