WPSlash

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

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 .

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;
}

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Articles

Tutorials

How to Speed Up Your WordPress Restaurant Website: Image Optimization, Caching, Database Cleanup, and Core Web Vitals Fixes for Faster Menu Loading and Checkout (Complete Guide)

Why Restaurant Website Speed Matters More Than You Think A hungry customer pulls up your restaurant’s website on their phone during a lunch break. They’ve got maybe 15 minutes to place an order for pickup. Your homepage takes four seconds to load, the menu images trickle in one by one, and the checkout page freezes […]
April 5, 2026
Tutorials

How to Make Your WooCommerce Restaurant Ordering Website ADA Compliant and Accessible: Screen Reader Optimization, Keyboard Navigation, and WCAG 2.1 Guidelines for Online Menus and Checkout (Complete Guide)

Why Accessibility and ADA Compliance Matter for Restaurant Ordering Websites A customer with low vision tries to order dinner from your restaurant website. They navigate to your menu, but their screen reader can’t parse the item names because they’re embedded in images without alt text. The “Add to Cart” button is invisible to keyboard navigation. […]
April 5, 2026
Tutorials

How to Add Restaurant Schema Markup to Your WordPress Menu Pages: Rich Snippets for Menu Items, Pricing, Reviews, and Cuisine Type to Boost Click-Through Rates in Google Search (Complete Guide)

What Is Restaurant Schema Markup and Why It Matters for Your WordPress Food Ordering Site When someone searches “best margherita pizza near me,” Google doesn’t just show ten blue links anymore. It pulls star ratings, price ranges, cuisine types, and even individual menu items directly into the search results. That extra visual information — called […]
April 5, 2026