When customers purchase gift cards , they can indicate a recipient, and that info can also be added in the email . The problem is that the recipient of the gift card never knows who sent them a gift card and end up having to write to customer service to find out. So, somebody please tell me whats issue with our present email template below mentioned
Am I missing something here or is there another way I can display this submitted message in the Gift Card notification email?
template code used -
{% if gift_card.customer %}
{% if gift_card.customer.name != blank %}
{% assign sender_name = gift_card.customer.name %}
{% elsif gift_card.customer.email != blank %}
{% assign sender_name = gift_card.customer.email %}
{% else %}
{% assign sender_name = gift_card.customer.phone %}
{% endif %}
{% else %}
{% assign sender_name = Someone’s %}
{% endif %}
{% capture email_body %}
{% if gift_card.expires_on %}
{{ sender_name }} given you the gift of a full fridge! Your {{ gift_card.balance | money_without_trailing_zeros }} gift card for {{ shop.name }} is now active. Click the link below to stock up, and reach out at hi@.com with any questions! Please keep this email handy or write down your gift card number.
{% else %}
{{ sender_name }} given you the gift of a full fridge! Your {{ gift_card.balance | money_without_trailing_zeros }} gift card for {{ shop.name }} is now active. Click the link below to stock up, and reach out at hi@.com with any questions! Please keep this email handy or write down your gift card number.
{% endif %}
{% endcapture %}
|