first of all I am not a pro developer and for a customer we have the following request.
Currently, in Woocommerce the shipping cost is calcutlated on basis of the total order amount ([fee percent="8"]) –> 8% of the order amount.
The customer wants now that if a coupon is applied the shipping cost should be calculated on the basis of the original amount NOT the new total amount with the coupon amount.
Any idea to resolve that smoothly ?
Thanks !
Julian
2
Answers
You need to use woocommerce_package_rates filter hook in which get total cart amount except coupon amount and changes shiiping cost for each shipping rates in loop. Let me know if you getting any issue.
Here are my solutions:
1.
Resources 1 , 2, 3, 4