← Tags
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 will output a form, allowing your customers to enter a coupon code. On submitting the form, Simple Commerce will validate the coupon is valid & if it is, the coupon will be applied to the customers' cart.
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 }}