Holiday offer

30% off every plan for a year with code HOLIDAY30. Until January 6.

See the prices
2.0 Beta

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

What changed

Cart form and buttons

The values of `data-name` inside `smootify-cart`.

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

Where it can go

Values

Attribute and valueWhat it isNotes
data-name="attribute name"Cart attributeThe field becomes a cart attribute; on input
name="coupon"Coupon fieldApplied with the coupon button; on input
name="gift-card"Gift card fieldApplied with the gift card button; on input
name="note"Note for the sellerA textarea; on input
data-action="open-cart"Open the carton button
data-action="close-cart"Close the carton button
data-action="open"Open the cart (short)Same as open-cart; on button
data-action="close"Close the cart (short)Same as close-cart; on button
data-action="coupon"Apply the couponon button
data-action="gift-card"Apply the gift cardon button
data-action="remove"Remove the lineon button; inside box-item, cart-item, smootify-cart [cart=“discount”], smootify-cart [cart=“gift-card”]
name="draft-order"Ask for a quoteA draft order instead of checkout; on button
data-wait="Updating…"Label while waitingOnly on a Form Button (an input); on a <button>, use data-state children; on input

    ↑ ↓ to moveEnter to openEsc to close