diff --git a/.changeset/smtp-gift-card-full-code.md b/.changeset/smtp-gift-card-full-code.md new file mode 100644 index 000000000..2c959afe1 --- /dev/null +++ b/.changeset/smtp-gift-card-full-code.md @@ -0,0 +1,5 @@ +--- +"saleor-app-smtp": patch +--- + +Fixed the default "Gift card sent" email template so it shows the full redeemable gift card code instead of the masked display code. Before, the email rendered `giftCard.displayCode`, which only contains the last 4 characters of the code, so customers could not actually redeem the gift card. Now the template uses `giftCard.code` and shows the complete code. diff --git a/apps/smtp/src/modules/smtp/default-templates.ts b/apps/smtp/src/modules/smtp/default-templates.ts index 794cd2a06..33265f194 100644 --- a/apps/smtp/src/modules/smtp/default-templates.ts +++ b/apps/smtp/src/modules/smtp/default-templates.ts @@ -453,7 +453,7 @@ ${mjHead} YOUR GIFT CARD CODE - {{giftCard.displayCode}} + {{giftCard.code}} {{#if giftCard.currentBalance}} {{giftCard.currentBalance.amount}} {{giftCard.currentBalance.currency}}