There does not seem to be a way to remove discounts by code in a POS extension, you can only add them.
We would like to allow merchants to add or remove discounts they have but currently the only way we can make this work is by clearing all discounts and re-adding again.
I just want to be sure but you are calling removeCartDiscount()? I believe that should clear the first available cart code discount in the cart, or do you require the ability to clear specific / multiple cart code discounts?
Yes, exactly. We have a flow where we want a merchant to be able to toggle specific discounts on and off. If we could use removeCartDiscount
with a specific code to remove, that would be great.
I understand, thanks for the suggestion. We will add it to our feature requests.
1 Like