2.5 KiB
layout, title, nav
| layout | title | nav | ||
|---|---|---|---|---|
| default | gift_card |
|
gift_card
The gift_card object can be accessed in the following templates:
-
The Gift Card Notification email notification template Email Notifications > Gift Card Notification
-
The gift_card.liquid template.
The gift_card variable has the following attributes:
{% anchor_link "gift_card.balance", "gift_card-balance" %}
Returns the amount of money remaining on the gift card.
{% anchor_link "gift_card.code", "gift_card-code" %}
Returns the code that was used to redeem the gift card.
{% anchor_link "gift_card.currency", "gift_card-currency" %}
Returns the currency that the card was issued in.
{% anchor_link "gift_card.customer", "gift_card-customer" %}
Returns the customer variable of the customer that the gift card is assigned to.
Input
Output
{% anchor_link "gift_card.enabled", "gift_card-enabled" %}
Returns true if the card is enabled, or false if the card is disabled.
{% anchor_link "gift_card.expired", "gift_card-expired" %}
Returns true if the card is expired, or false if the card is not.
{% anchor_link "gift_card.expires_on", "gift_card-expires_on" %}
Returns the expiration date of the gift card
{% anchor_link "gift_card.initial_value", "gift_card-initial_value" %}
Returns the initial amount of money on the gift card.
{% anchor_link "gift_card.properties", "gift_card-properties" %}
Returns the line item properties assigned to the gift card when it was added to the cart.
{% anchor_link "gift_card.url", "gift_card-url" %}
Returns the unique URL that links to the gift card's page on the shop (rendered through gift_card.liquid).