How can I exclude shipping charges from cart page? Meaning it should include only on checkout page.
I am new to woocommerce and I do not have much knowledge about that. In my project, I do not want to include Shipping charges on cart page. I tried this
add_filter( 'woocommerce_cart_needs_shipping', '__return_false' );
But it hides shipping (charges + address) from the whole project until I remove the code.