# Discount

> The values of `discount` inside `smootify-cart [cart="discount"]` or `cart-item [cart-item="discount"]`.

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

## At a glance

- **On the whole order**, `cart="discount"`: each code that applies and each automatic discount on the order, with `discount="title"`, `discount="amount"` and a remove button inside (an automatic discount loses its button).
- **On one line**, `cart-item="discount"` inside `cart-item`: each discount that lowers the price of that product, with `discount="title"` and `discount="amount"`; already off `cart="subtotal"`, never in the order list.

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

## Where it can go

- **Inside any of:** `smootify-cart [cart="discount"]`, `cart-item [cart-item="discount"]`.
- On text.

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `discount="title"` | Code or title | — |
| `discount="amount"` | Amount | — |
