WPSlash Licences

Delivery Time based on Product Preparation Time

Delivery Time based on Product Preparation Time – code snippet guide from WPSlash
Published
Updated
Reading time
1 minutes
Written by
WPSlash team

Here is a code snippet to copy to your functions.php inside your child theme if you want the average delivery time based on products preparation time you will specify + Average Deliver/Pickup time you specify under Settings on WooFood.

Note: Copy the second snippet only if you want to calculate only the longest preparation time of a meal instead of the sum of all product preparation times

Code
add_filter("woofood_delivery_time_based_on_preparation_time", "wpslash_hook_change_to_preparation_time_filter");
function wpslash_hook_change_to_preparation_time_filter($default)
{
	return true;
}
add_filter("woofood_delivery_time_longest_prepation_time", "wpslash_hook_change_to_longest_preparation_filter");
function wpslash_hook_change_to_longest_preparation_filter($default)
{
	return true;
}

The above filters will work only if you are using our food delivery plugin .

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