
In a recent Business Bloomer Club discussion, a WooCommerce user inquired about calculating shipping fees based on the subtotal before applying coupon discounts.
As you may know, you can use a shortcode to make the shipping cost dynamic e.g. [fee percent="15"]
, but in this case the developer wanted to maintain a consistent shipping fee of 15% of the subtotal, unaffected by any coupon discounts.
Typically, WooCommerce applies the shipping rate after discounts, which can cause shipping fees to decrease if a discount is applied to the subtotal.
Here’s a step-by-step guide to implementing this customization using a custom code snippet.
Continue reading Adjusting WooCommerce Shipping Fees Calculation to Exclude Coupon Discounts