Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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 }} × {{ 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 %}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025