Checkout Variables

The variables totals, shippingInfo, and billingInfo are available on pages using the shop:checkout action; totals and shippingInfo are also available on pages using the shop:cart action.

They have the following properties:

Variable Usage
totals.subtotal This is the estimated cart subtotal, the sum of cart items prices currently in the cart. Depending on your tax class configuration, this value may or may not include cart item tax (subtotal includes tax for tax inclusive tax classes).
{{ totals.subtotal|currency }}
totals.subtotalWithTax Similar to totals.subtotal, but includes all cart item taxes in the value. This can be used if you are using tax exclusive prices in your store but wish to show the subtotal with the tax included in it.
{{ totals.subtotalWithTax|currency }}
totals.subtotalNoTax Similar to totals.subtotal, but the value is shown without any calculated taxes. This can be used to show the subtotal without tax when using tax inclusive product prices.
{{ totals.subtotalNoTax|currency }}
totals.discountTotal This is the total discount applied to the cart. Currently, this means any discount rules applied with a coupon code.
{{ totals.discountTotal|currency }}
totals.totalShippingQuote The shipping quote price for the shipping method selected during checkout. Similar to the totals.subtotal, this value may include shipping tax if your shipping method uses a tax inclusive tax class.
{{ totals.totalShippingQuote|currency }}
totals.total The final total for the order, including all calculated taxes and shipping costs.
{{ totals.total|currency }}
totals.totalTax This is the total tax calculated for the order. Includes all taxes calculated for cart items and shipping.
{{ totals.totalTax|currency }}
totals.totalSalesTax This value includes all taxes calculated for the cart items (does not include shipping tax).
{{ totals.totalSalesTax|currency }}
totals.totalShippingTax This value includes all taxes calculated for the shipping costs (does not include cart item taxes).
{{ totals.totalShippingTax|currency }}
shippingInfo.firstName The first name associated with a shipping address.
{{ shippingInfo.firstName }}
shippingInfo.lastName The last name associated with a shipping address.
{{ shippingInfo.lastName }}
shippingInfo.email The email associated with a shipping address.
{{ shippingInfo.email }}
shippingInfo.phone The phone number associated with a shipping address.
{{ shippingInfo.phone }}
shippingInfo.streetAddressLine1 The first line of a street address associated with a shipping address.
{{ shippingInfo.streetAddressLine1 }}
shippingInfo.streetAddressLine2 The second line of a street address associated with a shipping address.
{{ shippingInfo.streetAddressLine2 }}
shippingInfo.city The city associated with a shipping address.
{{ shippingInfo.city }}
shippingInfo.state.name The state name associated with a shipping address.
{{ shippingInfo.state.name }}
shippingInfo.state.code The state code associated with a shipping address.
{{ shippingInfo.state.code }}
shippingInfo.state.id The state id associated with a shipping address.
{{ shippingInfo.state.id }}
shippingInfo.country.name The country name associated with a shipping address.
{{ shippingInfo.country.name }}
shippingInfo.country.code The country code associated with a shipping address.
{{ shippingInfo.country.code }}
shippingInfo.country.id The country id associated with a shipping address.
{{ shippingInfo.country.id }}
shippingInfo.postalCode The postal code associated with a shipping address.
{{ shippingInfo.postalCode }}
billingInfo.firstName The first name associated with a billing address.
{{ billingInfo.firstName }}
billingInfo.lastName The last name associated with a billing address.
{{ billingInfo.lastName }}
billingInfo.email The email associated with a billing address.
{{ billingInfo.email }}
billingInfo.phone The phone number associated with a billing address.
{{ billingInfo.phone }}
billingInfo.streetAddressLine1 The first line of a street address associated with a billing address.
{{ billingInfo.streetAddressLine1 }}
billingInfo.streetAddressLine2 The second line of a street address associated with a billing address.
{{ billingInfo.streetAddressLine2 }}
billingInfo.city The city associated with a billing address.
{{ billingInfo.city }}
billingInfo.state.name The state name associated with a billing address.
{{ billingInfo.state.name }}
billingInfo.state.code The state code associated with a billing address.
{{ billingInfo.state.code }}
billingInfo.state.id The state id associated with a billing address.
{{ billingInfo.state.id }}
billingInfo.country.name The country name associated with a billing address.
{{ billingInfo.country.name }}
billingInfo.country.code The country code associated with a billing address.
{{ billingInfo.country.code }}
billingInfo.country.id The country id associated with a billing address.
{{ billingInfo.country.id }}
billingInfo.postalCode The postal code associated with a billing address.
{{ billingInfo.postalCode }}
option.shippingMethodId The shipping method's ID
{{ option.shippingMethodId }}
option.shippingMethodName The shipping method name
{{ option.shippingMethodName }}
option.shippingMethodApiCode The shipping method's API code
{{ option.shippingMethodApiCode }}
option.shippingMethodDescription The description of the shipping method
{{ option.shippingMethodDescription }}
option.shippingServiceName The service name of the shipping method
{{ option.shippingServiceName }}
option.quote The transaction's quote
{{ option.quote }}
option.quoteBase The transaction quote's base
{{ option.quoteBase }}
option.discount The discount associated with the transaction
{{ option.discount }}
option.discountBase The base associated with the discount
{{ option.discountBase }}
option.deliveryDays The acceptable delivery days
{{ option.deliveryDays }}
option.deliveryDate The delivery date associated with the transaction
{{ option.deliveryDate }}
option.deliveryDateGuaranteed Returns a boolean value indicating whether delivery date is guaranteed. Note: only available for certain shipping methods
{{ option.deliveryDateGuaranteed }}
items A collection of items for in the cart.
{% for item in items%}
  {# ... render item fields #}
  Item Name: {{ item.product.name }}
{% endfor %}
totals An object that contains checkout totals.
{# Render total details... #}
{{ totals.discountTotal | currency }}
{{ totals.subtotal | currency }}
{{ totals.totalSalesTax | currency }}
{{ totals.totalShippingQuote | currency }}
{{ totals.totalShippingTax | currency }}
{{ totals.total | currency }}