Hi guys, I’m trying to make an adjustment to the following code.
add_action( ‘woocommerce_cart_calculate_fees’,‘endo_handling_fee’ );
function endo_handling_fee() {
global $woocommerce;
if ( is_admin() && ! defined( 'DOING_AJAX' ) )
return;
$fee = 5.00;
$woocommerce->cart->add_fee( 'Handling', $fee, true, 'standard' );
}
I’m trying to included an exception to the fee if it’s coming from a specific shipping zone. Is that possible?
This was the closes thing I could find. Your help would be greatly appreciate!