I have created a coupon code for products using the Woocommerce plugin. The user gets a 10% discount using the coupon "FREE". I want the PDF invoice generated by the Woocommerce PDF Invoice plugin to be the way if discount wasn't applied specifically for this coupon- "FREE". To illustrate:
Discount (10%)= $100
Taxes (10%)= $90
If coupon code, "FREE" is applied, I want the Total calculation to be as under:
Taxes (10%)= $100
In both cases, user pays $990 but the invoice must state particulars as in Case 2.
The above changes have to be done only on the PDF invoice generated by Woocommerce PDF Invoice Plugin. There shouldn't be any changes on the Wocommerce Cart, Payment page.