Why isn't my Shopify gift card email template image updating?

maxjet
Visitor
1 0 0

We've followed the image guidance set here and edited the code etc. We still don't see how the image file in the emails that go to customers is updated. Also tried editing this line : 

 

<img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="Gift card image" width="240" height="160">

 

in the `Gift Card Created` email template but just get no image showing. Do email images need to be a particular type? Our gift_card.liquid file is has this line for the new card image : 

 

<img src="{{ 'just_for_you.png' | asset_img_url: '1024x1024' }}" alt="">
Replies 8 (8)

JulieGalaise
Tourist
10 0 3

Hello, I seem to be having the same problem - no image showing - after following these instructions: https://shopify.dev/tutorials/customize-theme-personalize-gift-cards

Original Code as per attached image below:  <img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="Gift card illustration">

Replaced with my new .png image file:  <img src="{{ 'Gift-Card-Purchase-Notification-email-UHOKU.png' | shopify_asset_url }}" alt="Gift card illustration">

Second image below shows the end result - no image

 

Thanking you in advance for your help!

 

Julie

 

Line 71 is what I replacedLine 71 is what I replacedEnd result - no imageEnd result - no image

jenweeks
New Member
5 0 0

I am having same problem!  would love to be able to solve this issue.

JulieGalaise
Tourist
10 0 3

Hi jenweeks, I wasn’t able to figure it out so I got it solved by a Shopify Expert.

 

jenweeks
New Member
5 0 0

Thank you!  I will do the same I think!

jenweeks
New Member
5 0 0

Can you recommend the person that fixed the problem for you?

Loua
Visitor
1 0 1

Used the following code to insert our own image in the Gift Card Notification Email:

<img src="{{ 'GiftCard-Email.png' | asset_img_url: '240x160' }}" alt="Gift card image" width="240" height="160">

adventmedia
Pathfinder
128 0 31

mohossain
Shopify Partner
1 0 1

Email templates in Shopify can be updated by going here:

Settings > Notifications > Customize email templates

 

For @JulieGalaise and others that are running into issues where the page isn't showing the image, it may be because you've left the text "shopify_asset_url" in the code. 

 

Replace that text with the following (or similar size) and it should work:

asset_img_url: '1024x1024'