Permalink
Browse files

No shipping methods = no shipping at checkout

  • Loading branch information...
mikejolley committed May 25, 2016
1 parent 4b2bf26 commit c14993b90e82ba3079a9120feb4158dc5390ba8c
Showing with 2 additions and 1 deletion.
  1. +2 −1 includes/class-wc-cart.php
@@ -1505,7 +1505,8 @@ public function get_shipping_packages() {
* @return bool whether or not the cart needs shipping
*/
public function needs_shipping() {
if ( ! wc_shipping_enabled() ) {
// If shipping is disabled or not yet configured, we can skip this.
if ( ! wc_shipping_enabled() || 0 === wc_get_shipping_method_count( true ) ) {
return false;
}

0 comments on commit c14993b

Please sign in to comment.