We have three types of gift cards: Oak, Brass, and Marble. I would like the digital gift card (in PNG format) to be sent with the corresponding name on it.
Hi again I tried this one, which isnt showing any mistakes, but 1) the email with the gift card isn’t arriving with the code and its not showing the right gift card in the trial.
{% if gift_card.recipient %}
{% if gift_card.recipient.nickname != blank %}
{% assign recipient_name = gift_card.recipient.nickname %}
{% elsif gift_card.recipient.name != blank %}
{% assign recipient_name = gift_card.recipient.name %}
{% else %}
{% assign recipient_name = gift_card.recipient.email %}
{% endif %}
{% capture email_title %}
{% if gift_card.send_on != blank %}
Here’s your gift card that will be sent to {{ recipient_name }} on {{ gift_card.send_on | date: ‘%B %e, %Y’ }}.
{% else %}
Here’s your gift card that was sent to {{ recipient_name }}.
{% endif %}
{% endcapture %}
{% endif %}