# Cart

> The values of `cart` inside `smootify-cart`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/attributes/cart  
Updated: 2026-10-13

## At a glance

| Attribute | What it shows |
|---|---|
| `cart="count"` | the number of items (a line with 3 items counts as 3) |
| `cart="subtotal"` | the amount before the discounts on the whole order |
| `cart="compare-at-total"` | the total at compare-at prices; hidden unless it is higher than the total |
| `cart="savings"` | the compare-at total minus the total; hidden when nothing is saved |
| `cart="total"` | the amount after every discount |

More in [the guide](https://www.smootify.io/docs/build/cart#4-totals).

## Where it can go

- **Inside** [`smootify-cart`](https://www.smootify.io/docs/reference/elements/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 |
