Customer Gift Card image on customer Email/Notification to match purchased gift card image

Customer Gift Card image on customer Email/Notification to match purchased gift card image

Littleshop1
Visitor
1 0 0

Hello

Hope all is well

 

We have 2 gift cards with 2 different images, and would like the gift card image in the customer email/notification to match the purchased gift card image.

Tried several times to update the code to no avail. Any help will be much appreciate it!!!!

 

Below is copy of our last attempt, we know it's no bueno

 

{% for line in gift_card_line_items %}
<div id="gift-card-container">
<span class="order-list__item-title">{{ line.variant.title }}&nbsp;&times;&nbsp;{{ line.quantity }}</span><br/>

{% if line.variant.title == "Gift-For-You" %}
<img src="{{ 'Gift For You.png' | asset_img_url: '1024x632' }}" alt="Gift For You" class="gift-card" id="Gift-For-You">


{% elsif line.variant.title == "Thank-you" %}
<img src="{{ 'Thank you Gift Card.png' | asset_img_url: '1024x632' }}" alt="Thank you" class="gift-card" id="Thank-you">
{% else %}
<div id="error-message" class="error-message">
Sorry, we couldn't find the gift card variant.
</div>
{% endif %}
</div>
{% endfor %}

Replies 0 (0)