Simple Commerce Logo


Cart's Coupon

This tag lets you get the data for the coupon, if the customer has redeemed one for the cart.

1{{ sc:coupon }}
2 Currently redeemed: {{ slug }}
3{{ /sc:coupon }}

Check if coupon has been redeemed

This tag lets you check whether or not the customer has already redeemed a coupon.

1{{ if {sc:coupon:has} === true }}
2 Coupon Discount: {{ sc:cart:couponTotal }}
3{{ /if }}

Redeem a coupoon

This tag lets you redeem a coupon.

1{{ sc:coupon:redeem }}
2 <input type="text" name="code">
3{{ /sc:coupon:redeem }}

Remove a coupon

This tag allows you remove a redeemed coupon from the cart.

1{{ sc:coupon:remove }}
2 <button type="submit">Remove coupon</button>
3{{ /sc:coupon:remove }}

Need some help?

There's plenty of ways of getting help: either via opening a GitHub Issue, starting a conversation on the Statamic Discord or directly emailing me.