Cart
The values of `cart` inside `smootify-cart`.
On this page
At a glance
3 items
cart="count"The number of items. A line with 3 items counts as 3.Subtotal€120.00
cart="subtotal"Before the discounts on the whole order.Was€150.00
cart="compare-at-total"At compare-at prices. Hidden unless higher than the total.You save€42.00
cart="savings"Compare-at total minus total. Hidden when nothing is saved.Total€108.00
cart="total"After every discount, here a €12 code.More in the guide.
Where it can go
- Inside
smootify-cart. - On text.
Values
| Attribute and value | What it is | Notes |
|---|---|---|
cart="count" | Item count | also read as totalQuantity |
cart="total" | Total | — |
cart="subtotal" | Subtotal | — |
cart="taxes" | Taxes | — |
cart="duties" | Duties | — |
cart="compare-at-total" | Compare-at total | Hidden when not higher |
cart="savings" | Savings | Hidden when nothing is saved |
cart="shipping" | Shipping | Shopify’s estimate once the cart knows an address; hidden without one (data-fallback for a text) |
cart="discount" | Discounts | Template: one per discount; on container |
cart="gift-card" | Gift cards | Template: one per gift card; on container |