WPSlash Licences

Set Free Delivery Fee on Order above a specific amount on for WooFood

Published
Updated
Reading time
1 minutes
Written by
WPSlash team

Using the below action you can set free delivery above $25. You can copy and paste the following code to your functions.php child theme and adjust it to your needs .

Code
add_action('woofood_delivery_fee_filter', 'wpslash_change_delivery_fee_based_on_order_value', 10, 1);

function wpslash_change_delivery_fee_based_on_order_value($default_delivery_fee)
{
global $woocommerce;
	$subtotal = WC()->cart->subtotal;
	
	if($subtotal > 25)
	{
		return 0;

	}
	return $default_delivery_fee;
}
All guides

FoodMaster (formerly WooFood)12 min read

Best Store Address Setup for Pickup

Compare single-address, multi-location, and directions-first pickup setups to reduce wrong-door visits and simplify checkout.

The plugins these guides are about

FoodMaster for restaurants, courier vouchers for the Greek market, marketplace sync and store tools, all for WooCommerce.

Browse plugins30-day money-back on every plugin