• Resolved beyondreality2020

    (@beyondreality2020)


    Hi everyone..i’m having hard time finding a fix for this. How can I remove the order total on the cart page?

    Here’s a picture of what i mean:

    I was able to remove the shipping calculation info on the cart page with this code:

    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 );

    Is there a similar code i can use to remove the total but keep the substotal?..thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter beyondreality2020

    (@beyondreality2020)

    picture wasn’t showing..here it is again:

    View post on imgur.com

    Stef

    (@serafinnyc)

    There’s a setting in Shipping Option to remove the Shipping Calculator. There’ no need for code.

    As for hiding the Total I would just hide it with CSS as that will be the easiest. You’ll need to grab your page ID if “cart” isn’t showing in the body class.

    You’d do something like this.

    .page-id-16 .order-total{
        display:none !important;
    }

    Know that when someone lists their address on the Checkout page and comes back to Cart the Shipping Rate will show to them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove order total on cart page’ is closed to new replies.