Menu Close

How to remove Shipping section in Woocommerce cart page

codeamend

Learn the details about how to remove shipping section in Woocommerce.

Use below snippet code to hide shipping details on cart page. Add this code in active theme function.php.

add_filter( 'woocommerce_cart_needs_shipping', 'cart_needs_shipping' );
function cart_needs_shipping( $needs_shipping ) {
    if ( is_cart() ) {
        $needs_shipping = false;
    }
    return $needs_shipping;
} 

Share

Posted in PHP, WooCommerce

You can also read...