WPSlash

Delivery Time based on Product Preparation Time

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

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 .

Leave a Comment

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

×

🔥 ONE DAY ONLY OFFER 🔥

Upgrade FoodMaster Today

Normally your license is limited to 1 Website.

Today only, get a LIFETIME Unlimited Websites License for just:
$499

✔ Unlimited Client Websites
✔ Unlimited Personal Projects
✔ Future Updates Included
✔ Save Hundreds on Additional Licenses

Offer Ends In: