Shipping in Cart/Basket - by charlottesenini

This topic has 4 replies, 3 voices, and was last updated 7 years, 4 months ago ago by Amzy Leel

  • Avatar: charlottesenini
    charlottesenini
    Participant
    July 11, 2017 at 16:10

    I don’t want the shipping to be viewed in the cart/basket – I would only like this as an option once they click through to checkout.

    How do I remove the shipping options from the cart?

    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    July 11, 2017 at 18:01

    Hello,

    Go to WooCommerce > Settings > Shipping > Shipping options > Enable the shipping calculator on the cart page > Off http://prntscr.com/fuekwb

    Regards

    Avatar: charlottesenini
    charlottesenini
    Participant
    July 12, 2017 at 10:19

    Hi – Thanks, I know about this option – but this doesnt remove the shipping options from the cart – it just removes the shipping calculator – doesnt remove the shipping options from the cart page. Please can you tell me how to do that?

    Avatar: amzy
    Amzy Leel
    Participant
    July 12, 2017 at 12:38

    Hello,

    This needs some customization.
    Put following code at the bottom of the functions.php in Appearance >> Editor

    function disable_shipping_calc_on_cart( $show_shipping ) {
        if( is_cart() ) {
            return false;
        }
        return $show_shipping;
    }
    add_filter( 'woocommerce_cart_ready_to_calc_shipping', 'disable_shipping_calc_on_cart', 99 )

    Make sure you are using the child theme

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.