Remove shipping on the cart page in WooCommerce

Remove shipping on the cart page in WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.