The gift_card object
The gift_card
object can be accessed in the following templates:
The Gift card created email notification template Email Notifications > Gift card created
The gift_card.liquid template.
The gift_card
variable has the following attributes:
gift_card.balance
Returns the amount of money remaining on the gift card.
gift_card.code
Returns the code that was used to redeem the gift card.
gift_card.currency
Returns the currency that the card was issued in. This currency is the currency of the store.
gift_card.customer
Returns the customer variable of the customer that the gift card is assigned to.
Input
Hey, {{ gift_card.customer.first_name }}!
Output
Hey, John!
gift_card.enabled
Returns true
if the card is enabled, or false
if the card is disabled.
gift_card.expired
Returns true
if the card is expired, or false
if the card is not.
gift_card.expires_on
Returns the expiration date of the gift card
gift_card.initial_value
Returns the initial amount of money on the gift card. This amount is in the customer's local (presentment) currency.
gift_card.last_four_characters
Returns the last four characters of the code that was used to redeem the gift card.
gift_card.properties
Returns the line item properties assigned to the gift card when it was added to the cart.
gift_card.product
Returns the product associated with the purchased gift card, or returns nothing if there is no associated product.
gift_card.url
Returns the unique URL that links to the gift card's page on the shop (rendered through gift_card.liquid and
displayed at the checkout.shopify.com
domain).