A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Hide shipping on cart

To simplify the shopping cart by removing the shipping line entirely, use this code.

		/**
 * Hide shipping on cart
 */

add_filter('woocommerce_cart_ready_to_calc_shipping', 'cc_hide_shipping_on_cart', 99);

function cc_hide_shipping_on_cart($show_shipping) {

  if(is_cart()) {
    return false;
  }

  return $show_shipping;

}
	
View Raw Code ID: 91028