Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/smtp-gift-card-full-code.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion apps/smtp/src/modules/smtp/default-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ ${mjHead}
<mj-section padding="24px 0 0">
<mj-column background-color="${colors.accent}" border-radius="8px" padding="24px">
<mj-text font-size="12px" font-weight="600" color="${colors.muted}" letter-spacing="1px" padding="0 0 8px">YOUR GIFT CARD CODE</mj-text>
<mj-text font-size="28px" font-weight="700" color="${colors.primary}" letter-spacing="2px" padding="0 0 16px">{{giftCard.displayCode}}</mj-text>
<mj-text font-size="28px" font-weight="700" color="${colors.primary}" letter-spacing="2px" padding="0 0 16px">{{giftCard.code}}</mj-text>
{{#if giftCard.currentBalance}}
<mj-text font-size="18px" font-weight="600" color="${colors.primary}" padding="0 0 4px">
{{giftCard.currentBalance.amount}} {{giftCard.currentBalance.currency}}
Expand Down
Loading