How To Hide Shipping Details for WooCommerce on cart page

How To Hide Shipping Details for WooCommerce  on cart page
100 Views

By using this code you can hide shipping details from cart page

<?php
add_filter( 'woocommerce_cart_needs_shipping', 'cxc_cart_needs_shipping' );
function cxc_cart_needs_shipping( $needs_shipping ) {
    if ( is_cart() ) {
        $needs_shipping = false;
    }
    return $needs_shipping;
}
?>

Was this article helpful?
YesNo

Leave a comment

Your email address will not be published.