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 %}
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024