I have a plugin installed -> "Payment Gateway Based Fees and Discounts for WooCommerce" which helped me add two fees:
14,99 delivery fee on Card Payment
19,99 delivery fee on Cash on delivery
The problem is that I want to give free delivery if someone buys over 300 let's say. So i have to remove the extra fees This is something that I've tried, but nothing happend:
function woo_remove_cart_fee() {
$cart_items_total = WC()->cart->get_cart_contents_total();
if ( $cart_items_total > 300 ) {
$fees = 0 ;
}
add_action( 'woocommerce_cart_calculate_fees', 'woo_add_remove_fee' );
Any ideas? Or any ideas on how to have both the Gateway fees and the free shipping over a limit?
Thanks.