Changing the gift card picture for customer email notification

Since i could not find any working solution here for my problem with changing the gift card image that is send to customers via email. I thought it would be helpful to drop my solution here. Up till this date. The shopify manual seems incorrect.

I don’t know what version of shopify you have. But if you have this kind of code in your email template:

Gift card image

and you exchange gift-card/card.jpg for your own link to your customized picture in the content library and it does not work. Then you also need to delete this part: | shopify_asset_url

in my case this worked

example of how it should look after changing it:

Gift card image

The picture link in this example is: https://cdn.shopify.com/s/files/1/0704/8026/5480/files/Picture-Giftcard-Engels.png?v=1744186114

I also exchanged it with a picture that was exactly set on 240 160 pxls .. but i dono if that really matters

Goodluck!

The filter shopify_asset_url is meant for referencing theme assets, not full URLs.

Solution:

Remove the | shopify_asset_url part if you’re using a direct image URL.

Example of working code:

html

CopyEdit

Gift card image
 

:memo: Notes:- Make sure the image URL is public and accessible (uploaded to your Files section in Shopify admin works great).

  • The width=“240” and height=“160” attributes help ensure consistent display but are optional unless exact sizing is required by the email design.

  • You can find your image URL by uploading it in Content > Files and copying the link.

1 Like

Thanks for reacting! And your explanation. But your solution is exacty the same as mine. Only put differently. I did not ask for a solution. I posted the solution to help people out since there is no mention of this in the original shopify manual on this topic.