All things Shopify and commerce
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="">
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
I am having same problem! would love to be able to solve this issue.
Hi jenweeks, I wasn’t able to figure it out so I got it solved by a Shopify Expert.
Thank you! I will do the same I think!
Can you recommend the person that fixed the problem for you?
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">
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'
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024