cart/discount/add
Apply a discount code to the cart
Fields
code
• string required
code
• string requiredThe discount code or coupon code to apply to the cart.
Applies a discount code to the current cart, adding it to any existing discount codes. This action validates the discount code, applies it to the cart, and updates the cart state with the new discount information.
Tapcart.action("cart/discount/add", {
code: "SAVE20"
});
Updated 9 days ago