Commmerce Docs

What it is

Lets the buyer apply, remove, and see the running list of coupons. Shows error states for invalid or expired codes.

When to use

  • Cart drawer footer
  • Checkout summary

Attributes

AttributeTypeDefaultDescription
data-collapsedbooleantrueHide the input behind a "have a code?" toggle.
idstringUnique element identifier.
classstringCustom CSS class list.
hiddenbooleanfalseHide the element without removing it from the DOM.

Examples

Default

Coupon entry and active discount list.

<mmm-checkout-coupon></mmm-checkout-coupon>