How to display the expiration date on the gift card issued by email

Hello, I have a question about the Shopify gift card. Is there a way to write the expiration date of the gift card in the mail that the customer receives when issuing a gift card with an expiration date set to the customer?

Hey there, @Cho2817 . Thanks for taking the time to write a post today about your Gift Card question in the Shopify Community! I hope you’re doing well.

Just to set some expectations here, Shopify Support’s scope is limited when it comes to HTML coding. We cannot advise on what coding to add or remove to your store, but I’m more than happy to advise you on what to look for here to make sure things are working properly.

To be clear, the ability to show customer’s Gift Card expiration dates is already built into the HTML template for your gift card emails. If there is an expiration date assinged to the cart, this is plainly written for your customers once they receive the email. You can confirm this for yourself by creating a test gift card with an expiration date, and sending it to yourself to see if the expiration date appears.

If the expiration date does not appear, and you’ve set a date, then implies that the HTML of your template has been altered. You can check this by following these steps:

  • Login to your Shopify Admin
  • Go to Settings > Notifications
  • Scroll until you find an optin called ‘Gift Card Created’. Click onto this option
  • You will see a box with HTML coding that is the template used for your gift card emails.

Once you’re in this section, you’re going to look for wording that says something like the following:

‘if gift card expires on’ and ‘This gift card expires on..’

If you see wording like this within the first few lines that appear in the HTML box, then your customers will be seeing the expiration date when one is assigned to the giftcard. If you do not see this wording then HTML will need to be added to check for expiration dates so they can be added to the paragraph text of the email. The only reason why this wording wouldn’t be present would be if the HTML for your template has been edited or changed. If this is missing, and your gift card template hasn’t been edited otherwise, you can consider clicking ‘revert to default’ underneath the HTML box, as this will repair the default coding, and put the conditional ‘check for expiration date’ coding back. If you have made ANY customizations to your HTML template for your gift cards in this box, restoring to default will remove them, so only click this option if you’re comfortable losing any changes you may have made to this template.

I believe that you’re likely fine here, and there is no issue occurring, and I recommend that you send yourself a test gift card with a set expiration date to see how the email appears. If it appears with no date present, visit your HTML coding like I’ve mentioned in this post.

I’ll keep my eyes peeled for any follow ups you make here!