Merge pull request #21373 from woocommerce/fix/21360

Shipping totals should show even if calculator is disabled.
This commit is contained in:
Claudiu Lodromanean 2018-09-17 13:42:41 -07:00 committed by GitHub
commit 54401eac5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1373,8 +1373,8 @@ class WC_Cart extends WC_Legacy_Cart {
}
}
// If we're on the cart page, the user has not calculated shipping, and there is no calculator available, hide the area.
if ( is_cart() && ! $this->get_customer()->has_calculated_shipping() && 'no' === get_option( 'woocommerce_enable_shipping_calc' ) ) {
// If we're on the cart page, the user has not calculated shipping, hide the area.
if ( is_cart() && ! $this->get_customer()->has_calculated_shipping() ) {
return false;
}