I'd like to be able to add a fixed $20 fee if a given coupon code (100% off) is applied to the cart. The fee should also not have taxes applied. I'm offering a try at home service for $20, so a certain coupon would discount the cart and all products by 100% but add a $20 fixed fee. Any help is much appreciated!
JC
The following code will apply a fee of
$20
if a specific coupon code has been applied to cart:Code goes in function.php file of your active child theme (active theme). Tested and works.
The display in cart and checkout pages (on Woocommerce storefront theme):