If there’s any way to show non effect additional fee
-
Hi Great Minds,
// Add a custom fee based o cart subtotal add_action( 'woocommerce_cart_calculate_fees', 'custom_fee', 20, 1 ); function custom_fee ( $cart ) { if ( is_admin() && ! defined( 'DOING_AJAX' ) ) return; if ( ! ( is_checkout() && ! is_wc_endpoint_url() ) ) return; // Only checkout page $payment_method = WC()->session->get( 'chosen_payment_method' ); if ( 'pay_gateway_ideal' == $payment_method ) { $surcharge = $cart->subtotal * 0.0331700; $cart->add_fee( 'Spraypay Betaal in 1 tm 36 termijnen', $surcharge, true ); } }
In this code
$cart->add_fee
simply SUM up the fee with SUBTOTAL, But here’s my Question, I am not sure if its possible or not.. I don’t like to SUM up it with SUBTOTAL. I just need it to be A info, which should not Effect the Total Cart Price.
Any Solution???
Thanks in Advance..
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘If there’s any way to show non effect additional fee’ is closed to new replies.