# How do discounts work in Shopify?

> A price reduction set in Shopify, either a code the customer types or an automatic discount that applies itself; it can take an amount or a percentage off products or the order, give free shipping, or offer buy X get Y.

URL: https://www.smootify.io/glossary/discount

Shopify discounts live in **Discounts**, in the admin, and come in two forms:

- **Discount codes**: the customer types a code, such as `WELCOME10`, in the cart or at checkout;
- **Automatic discounts**: they apply on their own when the cart meets the conditions, such as “10% off orders over $100”.

Each discount has a kind:

- an amount or a percentage off **products**;
- an amount or a percentage off the **order**;
- **buy X, get Y**;
- **free shipping**.

Rules decide who can use it, when, how many times, and whether it **combines** with other discounts. Apps can add more kinds.

A discount is not a [compare-at price](https://www.smootify.io/glossary/compare-at-price): the compare-at price only changes what the product page shows, the discount changes what the cart charges.

## In Webflow terms

Webflow Ecommerce discounts are codes only. Shopify’s are richer, and Smootify shows them inside your cart design.

## In Smootify

- **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.

A coupon field in the cart applies a code, and a link with `?discount=` and a code applies it on arrival.

More in [The cart](https://www.smootify.io/docs/build/cart).
