tapaninaho
Member
Posted 7 months ago #
I've hit a bit of a road block.
Store I'm setting up has large bulky products that qualify for free local delivery and cheap small products that don't individually but would if bought with large bulky items.
Is there away around this? How can I set a minimum order value to enable free local delivery?
Thanks a lot!
http://wordpress.org/extend/plugins/woocommerce/
blubbbiz
Member
Posted 7 months ago #
hi
im also looking for a solution like this, did you found anything?
would be great if someone can help :-)
thanks
alexluchini
Member
Posted 6 months ago #
I am looking for this too, anyway to enable a a minimum order for free local delivery in woocommerce??
If you want your minimum order amount to be $500, use this in your theme's functions.php
add_filter( 'woocommerce_available_shipping_methods', 'conditional_local_delivery' );
function conditional_local_delivery($methods){
if(!is_admin()){
global $woocommerce;
$amount = 500;
if($woocommerce->cart->cart_contents_total < $amount){
echo 'Amount is ' . $woocommerce->cart->cart_contents_total;
unset($methods['local_delivery']);
}}
return $methods;
}
You may also need to add
$available_methods(apply_filters('woocommerce_available_shipping_methods',$available_methods);
just after
if ( $available_methods ) {
on the /checkout/review-order.php template file
alexluchini
Member
Posted 6 months ago #
Hey,
Thank you so much for providing this. It didn't work though.
It still lets me go through the order process without stopping me.
But, I really appreciate your help!
-a