woocommerce

9 Comments

  • rafa espada says:

    Really thanks!!! 😀

  • WPShowCase says:

    Thank you Terry – this looks great.

  • Janusz says:

    Doesn’t work for me. It removes flat rate option but only the basic one and even then it shows several times
    Notice: Undefined variable: woocommerce in /vol/…/wp-content/themes/my-primashop-wc/functions.php on line 24

    Notice: Trying to get property of non-object in /vol/…/wp-content/themes/my-primashop-wc/functions.php on line 24
    where 24 line is
    $session_cart = $woocommerce->session->cart;

    When there’s Additional Rates ex.
    express | 5 | order – it removes only basic flat rate option and user can still choose between express and free delivery option.

    I use premium theme and it’s used on site within multisite installation.

  • raja says:

    Hi,
    I tried using your code,it is not working for me. It still shows other shipping options too.My woocommerce version is Version 2.1.12 .

    please help

  • loic says:

    Thank you for the code.
    But I’m using additional rates in the flat rate tab.
    And these additional rates keep showing when free shipping method is available.

  • Kristjan Koppel says:

    Hi!

    Do you have any idea how to update flat_rate and local_delivery price if freeshipping is available?

  • Neil Graver says:

    Thanks a lot for sharing this. It gave me enough clues to rework it to be able to show or not show other active postage methods based on whether the minimum spend condition on the free shipping method was reached. Much appreciated.

  • mani says:

    hi I don’t want this minimum order to be enforced for local pickups.actually my code add_action( ‘woocommerce_checkout_process’, ‘wc_minimum_order_amount’ );
    add_action( ‘woocommerce_before_cart’ , ‘wc_minimum_order_amount’ );

    function wc_minimum_order_amount() {
    // Set this variable to specify a minimum order value
    $minimum = 97;

    if ( WC()->cart->total cart->total )
    ), ‘error’
    );

    } else {

    wc_add_notice(
    sprintf( ‘You must have an order with a minimum of %s to place your order, your current order total is %s.’ ,
    wc_price( $minimum ),
    wc_price( WC()->cart->total )
    ), ‘error’
    );

    }
    }

    }
    this i applied but now i dont want this to minimum order to be enforced for local pickups.

Leave a Reply

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

WhatsApp chat Talk to Me