# What is the compare-at price in Shopify?

> The original price shown crossed out next to the price, such as $45 next to $32, set on each variant; Shopify charges the price, never the compare-at price.

URL: https://www.smootify.io/glossary/compare-at-price

Each [variant](https://www.smootify.io/glossary/variant) has two price fields:

- the **price**, what the customer pays;
- the **compare-at price**, the “was” price shown crossed out next to it.

Putting a compare-at price above the price is how a store shows a sale on a product, without a discount code. Shopify does not check that it is higher: a compare-at price equal to or below the price is a mistake on the page, not a sale.

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

## In Webflow terms

Webflow Ecommerce has the same pair of fields. In a Smootify store they come from Shopify, per variant, and change with the variant the customer picks.

## In Smootify

Example: a shirt in four sizes. S costs $29 instead of $39 and is sold out, M costs $32 instead of $45, L costs $35 and XL $39.

| Attribute | What it shows | In the example |
|---|---|---|
| `product="min-price"`, `product="max-price"` | the lowest and highest variant price | $29 and $39 |
| `product="min-available-price"` | the price of the cheapest variant that can be bought | $32 (S is sold out) |
| `product="min-compare-at-price"`, `product="max-compare-at-price"` | the lowest and highest crossed-out price among the variants on sale; hidden when none is on sale | $39 and $45 |
| `condition="variable-price"`, `condition="fixed-price"` | an element shown only when the variants have different prices, or only when they all cost the same | the prices differ: "From" shows |

`smootify-price` shows the price and, with `data-prop="compareAtPrice"`, the crossed-out one. The product gets the class `is-on-sale`, and `condition="on-sale"` shows an element, only when the compare-at price is higher than the price. In the cart, `cart="savings"` shows what the whole cart saves.

More in [Product cards](https://www.smootify.io/docs/build/product-cards) and [The cart](https://www.smootify.io/docs/build/cart).
