Smart Coupons provide a powerful, “all-in-one” solution for gift cards, store credits, discount coupons, and vouchers extending the core functionality of WooCommerce coupons.
This doc article explains how you can use the ‘Apply before tax’ setting in Smart Coupons for store credit/gift certificate.
There are usually three components in the WooCommerce cart.
- Cart subtotal
By default, the WooCommerce core coupons will be applied only on the cart subtotal, whereas the discount type ‘Store Credit / Gift Certificate‘ (which is added by Smart Coupons) will be applied on the order total (cart subtotal + tax + shipping). If you want to apply the store credit before applying tax, you can use the ‘Apply before tax’ setting.
Go to WooCommerce > Settings > Smart Coupons.
Here two checkboxes would be visible under Apply before tax:
- Deduct credit/gift before doing tax calculations
- Store credit discounts inclusive of tax
Enable ‘Deduct credit/gift before doing tax calculations’ option if you want the discount coupon to be applied only on the cart subtotal. The discount will not be applied to tax/shipping in this case.
This setting will be visible only when the setting ‘Yes, I will enter prices inclusive of tax‘ is enabled under WooCommerce > Settings > Tax > Tax options > Prices entered with tax.
Enable both settings, i.e ‘Deduct credit/gift before doing tax calculations’ and ‘Store credit discounts inclusive of tax’ if you want the discount coupon to be applied to ‘cart subtotal + tax’. The discount will not be applied to shipping in this case.