Variant Images in Email

Proposal Summary 

This proposal is for updating the date from related case record to Sales order record  

Requirement    

In the Buy & Ride script you created, is there any way to associate an image with the variant that’s shipping? We are referring to the email  template custemailtmpl_12_3550840_514 (screenshot A below). 

Screenshot A 

So, using the below example (screenshot B), where it says “Lorimer 9 Soft Ivory 16” – is it possible to insert a small image of the variant underneath that, or if that’s not feasible, have that text be a hyperlink? My thought was that if that’s possible, it can reference either of the fields from screenshot C (or a custom field)?  The most important part is that because the variant will always differ, the image/link needs to be associated with whatever variant is on the SO. 

Screenshot B 

Screenshot C 

Solution 

We will create a custom item line field in sales order named “Item Image Link”  
Custom field: 

  • Name: Item Image Link     
  • Type: Free-Form Text 
  • Applies To: Sale Item 

We will use a User Event Script and deploy it to the sales order.

This script will fetch the item image url from item record and will set it to the custom line field, “Item Image Link”.  When the user sends the email, the image will be taken from this new custom field. 

Leave a comment

Your email address will not be published. Required fields are marked *