Viewing 6 replies - 1 through 6 (of 6 total)
  • hi
    im also looking for a solution like this, did you found anything?

    would be great if someone can help ??

    thanks

    alexluchini

    (@alexluchini)

    I am looking for this too, anyway to enable a a minimum order for free local delivery in woocommerce??

    bheadrick

    (@bheadrick)

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

    (@bheadrick)

    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

    (@alexluchini)

    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

    anonymized-11892634

    (@anonymized-11892634)

    Was anyone able to get any further with this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WooCommerce – excelling eCommerce] WooCommerce and minimum limit for Local Delivery’ is closed to new replies.