Currently to add a discount to the cart you have to use `add_fee` , the problem is that taxes are always added to negative fees. This means that you have to subtract the tax from the cart total.
I think it would be a good idea to have an add_discount method which works like add fee, but apply a negative amount and does not apply taxes.
Open
Last updated: September 1, 2023
Log in to comment on this feature request.
Adding an upvote for this. We recently implemented a tier discount structure on our website. Ideally we wanted the discount shown as an itemised cart/order level discount for transparency and records. $cart->add_discount would be great. Info below.
https://www.businessbloomer.com/woocommerce-cart-discounts-without-coupons/
This would be mega helpful. Surprised this isn’t already part of core.