2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Discount

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

v2.0 beta
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. Values

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, with discount="title" and discount="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 valueWhat it isNotes
discount="title"Code or title—
discount="amount"Amount—

    ↑ ↓ to moveEnter to openEsc to close