Removes the coupon from the current site visitor's cart.
The removeCouponFromCurrentCart()
function returns a Promise that resolves to the updated current cart when the coupon is removed.
function removeCouponFromCurrentCart(): Promise<RemoveCouponResponse>;
import { currentCart } from "@wix/ecom";
async function removeCouponFromCurrentCart() {
const response = await currentCart.removeCouponFromCurrentCart();
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.