removeCoupon( )


Removes the coupon from a specified cart.

The removeCoupon() function returns a Promise that resolves to the updated cart when the coupon is removed from the specified cart.

Note: After a cart is updated, call Refresh Cart to update the cart's UI elements and trigger the Cart Updated event.

Method Declaration
Copy
Method Parameters
_idstringRequired

Cart ID.

Returns
Return Type:Promise<RemoveCouponResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?