🎉 Simple Commerce v3.0 is out! Includes new features & some big quality of life improvements.

Simple Commerce Logo

Coupons

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 }}