Solved

Wrong Product Variant Image On Order Confirmation

  • 26 July 2022
  • 4 replies
  • 56 views

Badge +1

 

 

 

We are using Shopify. When order confirmation emails are sent the feature image is being shown and not the variant image (when those cases arise). What is the proper placeholder code to display the variant image?

 

The current is line.product.featured_image | product_img_url: 'medium'.

 

Thanks in advance!

icon

Best answer by stephen.trumble 27 July 2022, 00:09

View original

4 replies

Userlevel 6
Badge +50

Hey @buildwithrise!

Welcome to the Klaviyo Community! So glad you came here for some help with variable images in your Shopify order confirmations.

This script is specific to Shopify, but can be altered per integration. When Variant images are available in the event data for a metric, you can use this if statement to display the variant image. If the product does not contain variant images, the standard default image will display.

Here's how you add the line for Shopify's Order Confirmation email. Take note that these are different as the Order Confirmation template is for importing into Shopify.
 

  1. Use the following line for the image placeholder: 
  2. image2018-3-22_10-3-43.png?version=1&modificationDate=1521727427170&cacheVersion=1&api=v2&width=808&height=400

reference: https://ecommerce.shopify.com/c/ecommerce-design/t/adding-product-image-to-confirmation-email-108094

Table Blocks documents: 
https://help.klaviyo.com/hc/en-us/articles/360019921772-Insert-Recently-Viewed-Items-into-an-Email
https://help.klaviyo.com/hc/en-us/articles/115005082447-The-Email-Template-Editor#table-blocks7

 

Hope this helps!

Badge +1

Thanks for the warm welcome Stephen!

Could you please repost the image & steps as this is what we can see as the response?

 

 

Badge +1

Hi Stephen,

 

Would you be able to upload the image again as the link is currently broken?

 

 

Userlevel 6
Badge +50

My apologies,  lets try this again! 

 

Reply