20.45 (Sum of cart items less any applied discounts)
Always
cart.currency
String
USD
Always
Cart Items
Property
Type
Example
Availability
cart.items.quantity
Integer
1
If items are in the cart
cart.items.productId
String
7629735690428
If items are in the cart
cart.items.variantId
String
43577520193749
If items are in the cart
cart.items.sellingPlanId
String
1039518903
If selling plans are in cart
cart.items.atttributes
Array
[ { "key": "value" } ]
If attributes are in the cart
device
Device variables are distinct to the user's device. If a user gets a new device, or deletes & reinstalls the app, they will receive a new device_id.
Property
Type
Example
Availability
device.id
String
D40B48A7-0889-4E76-8946-5EA5EBDD29FF
Always
device.locale
String
en_US
Always
device.windowHeight
Float
600
Always
product
Product variables are distinct to the product that's currently in view on the product detail page (PDP). These variables are refreshed when a user visits a new PDP.
Before using a product metafield variable your block, you'll first need to enable metafields for your Tapcart app, and include any specific metafields that your app should have access to.
When referencing a metafield variable in your block, make sure to specify the specific namespace & key you want to retrieve.