Discount
The values of `discount` inside `smootify-cart [cart="discount"]` or `cart-item [cart-item="discount"]`.
On this page
At a glance
cart="discount"
On the whole order
- Lists
- Each code that applies, and each automatic discount on the order.
- Inside
discount="title",discount="amount", a remove button.- Remove
- Codes only: an automatic discount loses its button.
cart-item="discount"
On one line
- Lists
- Each discount that lowers the price of that product.
- Inside
cart-item, withdiscount="title"anddiscount="amount".- Totals
- Already off
cart="subtotal": it never shows in the order's list.
More in the guide.
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 | — |