Gift card shortcodes and block
Five shortcodes and one block. Only two are needed by a normal store: the redeem page and, if you want it, the balance lookup.
Shortcodes
| Shortcode | Renders | Belongs on |
|---|---|---|
[ivasure_gift_card_redeem] | The redeem form, where a recipient enters a code. | A page of its own, selected as the Redeem Page. |
[ivasure_gift_card_balance] | Balance lookup and recovery. Masked, and requires verification. | A page of its own, selected as the Recovery Page. |
[ivasure_gift_card_fields] | The For myself / For someone else selector and recipient fields. | A custom checkout only. Standard checkout shows these automatically. |
[ivasure_gift_card_checkout_redeem] | A field to apply a gift card during checkout. | A custom checkout. Renders nothing unless Allow checkout redemption field is on. |
[ivasure_gift_card_merch] | A merchandising placement. | Anywhere the placement targeting cannot reach. |
Do not put the redeem form and the balance lookup on the same page
They ask for the same thing and do different things with it. A visitor who meant to check a balance and redeemed instead is a support ticket.
The block
Search the inserter for Gift Card Fields. Block name ivasure/gift-card-fields.
| Attribute | Type | Default |
|---|---|---|
defaultIntent | string | self |
intentControl | string | radio |
intentLayout | string | inline |
styleVariant | string | card |
title | string | empty |
selfLabel | string | empty |
giftLabel | string | empty |
showSenderName | boolean | true |
showMessage | boolean | true |
showDeliveryDate | boolean | true |
Was this page helpful?
Thanks for your feedback.
There was a problem submitting your feedback. Please try again later.