Data Expressions for Commerce Cart Components

Use these data expressions in any component on the cart page.

Required Editions

Data Expression Description
Account ID {!Cart.Details.accountId} ID of the cart account.
Cart ID {!Cart.Details.cartId} ID of the cart.
Cart Items {!Cart.Items} Collection of cart item results.
Cart Name {!Cart.Details.name} Name of the cart.
Cart Status {!Cart.Details.status}

Status of the cart. Values are:

  • Active
  • Checkout
  • Closed
  • PendingDelete
  • Processing
Cart Type {!Cart.Details.type} Type of cart. Value is Cart.
Charges {!Cart.Totals.chargeAmount} Total amount for shipping and other charges in the currency of the cart.
Contains Subscriptions {!Cart.Details.containsSubscription} Cart contains items with subscriptions.
Currency ISO Code {!Cart.Details.currencyIsoCode} Three-letter ISO 4217 currency code associated with the cart.
Grand Total {!Cart.Totals.grandTotal} Grand total amount, including shipping and tax, for items in the cart, in the currency of the cart.
Original Total {!Cart.Totals.listPrice} Total list price for the cart.
Product Count {!Cart.Details.totalProductCount} Total count of items in the cart.
Promotions Total {!Cart.Totals.promotionalAdjustmentAmount} Total amount of promotion adjustments.
Store ID {!Cart.Details.webstoreid} ID of the cart’s web store.
Subscription Product Count {!Cart.Details.totalSubscriptionProductCount} Number of cart items that contain subscriptions.
Subtotal {!Cart.Totals.productAmount} Total amount, including discounts, but excluding shipping and tax, for product items in the cart.
Subtotal With Promotions {!Cart.Totals.productAmountAfterAdjustments} Total product amount, including promotions.
Tax Total {!Cart.Totals.taxAmount} Total tax amount for the cart, including tax on shipping, if applicable.
Tax Type {!Cart.Details.taxType}

Tax type of the cart. Values are:

  • Gross
  • Net
Unique Product Count {!Cart.Details.uniqueProductCount} Total count of unique items, or SKUs, in the cart.