Home Adding a custom cart negative fee tax issue in woocommerce
Reply: 0

Adding a custom cart negative fee tax issue in woocommerce

user502
1#
user502 Published in April 24, 2018, 6:38 am

I have a shipping discount in my woocommerce site, I would like to show it on cart page and checkout page, for that I used add_fee() method.

WC()->cart->add_fee( 'Shipping Discount', -20, false );

It subtract 20 from total amount, but when I go to check order in orders inside admin it gives discount on tax too according to tax rate I configured. Is there any alternative to add discount

How can I do this in woocommerce?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.428181 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO