# Cart

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

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

## Where it can go

- **Inside** [`smootify-cart`](https://www.smootify.io/docs/astro/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 |
| `cart="pay-later"` | Pay later amount | On PayPal’s or Klarna’s pay later placement, or the element around it: the cart’s total; on container |
