Web Components · Cart & Checkout
<mmm-checkout-coupon>
Coupon entry and applied-discount list.
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.idstring—Unique element identifier.classstring—Custom 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>