title: Enable the shipping calculator on the cart page doesn't work
body: <p>I am using WooCommerce 4.2.0 and I can't display the shipping fees on the cart page.
  However, the option &quot;Enable the shipping calculator on the cart page&quot; is checked in the Woocommerce &gt; settings &gt; shipping.</p>
  <p><a href="https://i.stack.imgur.com/HqzoQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HqzoQ.png" alt="enter image description here" /></a><a href="https://i.stack.imgur.com/kGmbQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kGmbQ.png" alt="enter image description here" /></a></p>
  <p>Here's my child theme (Storefront) cart-totals.php:</p>
  <pre><code>&lt;?php
  /**
   * Cart totals
   *
   * This template can be overridden by copying it to yourtheme/woocommerce/cart/cart-totals.php.
   *
   * HOWEVER, on occasion WooCommerce will need to update template files and you
   * (the theme developer) will need to copy the new files to your theme to
   * maintain compatibility. We try to do this as little as possible, but it does
   * happen. When this occurs the version of the template file will be bumped and
   * the readme will list any important changes.
   *
   * @see         https://docs.woocommerce.com/document/template-structure/
   * @author      WooThemes
   * @package     WooCommerce/Templates
   * @version     2.3.6
   */
  
  if ( ! defined( 'ABSPATH' ) ) {
      exit;
  }
  
  ?&gt;
  &lt;div class=&quot;cart_totals &lt;?php echo ( WC()-&gt;customer-&gt;has_calculated_shipping() ) ? 'calculated_shipping' : ''; ?&gt;&quot;&gt;
  
      &lt;?php do_action( 'woocommerce_before_cart_totals' ); ?&gt;
  
      &lt;table cellspacing=&quot;0&quot; class=&quot;shop_table shop_table_responsive&quot;&gt;
  
          &lt;?php foreach ( WC()-&gt;cart-&gt;get_coupons() as $code =&gt; $coupon ) : ?&gt;
              &lt;tr class=&quot;cart-discount coupon-&lt;?php echo esc_attr( sanitize_title( $code ) ); ?&gt;&quot;&gt;
                  &lt;th&gt;&lt;?php wc_cart_totals_coupon_label( $coupon ); ?&gt;&lt;/th&gt;
                  &lt;td data-title=&quot;&lt;?php echo esc_attr( wc_cart_totals_coupon_label( $coupon, false ) ); ?&gt;&quot;&gt;&lt;?php wc_cart_totals_coupon_html( $coupon ); ?&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;?php endforeach; ?&gt;
          
          &lt;?php foreach ( WC()-&gt;cart-&gt;get_fees() as $fee ) : ?&gt;
              &lt;tr class=&quot;fee&quot;&gt;
                  &lt;th&gt;&lt;?php echo esc_html( $fee-&gt;name ); ?&gt;&lt;/th&gt;
                  &lt;td data-title=&quot;&lt;?php echo esc_attr( $fee-&gt;name ); ?&gt;&quot;&gt;&lt;?php wc_cart_totals_fee_html( $fee ); ?&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;?php endforeach; ?&gt;
  
          &lt;?php if ( wc_tax_enabled() &amp;&amp; ! WC()-&gt;cart-&gt;display_prices_including_tax() ) :
              $taxable_address = WC()-&gt;customer-&gt;get_taxable_address();
              $estimated_text  = WC()-&gt;customer-&gt;is_customer_outside_base() &amp;&amp; ! WC()-&gt;customer-&gt;has_calculated_shipping()
                      ? sprintf( ' &lt;small&gt;' . __( '(estimated for %s)', 'woocommerce' ) . '&lt;/small&gt;', WC()-&gt;countries-&gt;estimated_for_prefix( $taxable_address[0] ) . WC()-&gt;countries-&gt;countries[ $taxable_address[0] ] )
                      : '';
  
              if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) : ?&gt;
                  &lt;?php foreach ( WC()-&gt;cart-&gt;get_tax_totals() as $code =&gt; $tax ) : ?&gt;
                      &lt;tr class=&quot;tax-rate tax-rate-&lt;?php echo sanitize_title( $code ); ?&gt;&quot;&gt;
                          &lt;th&gt;&lt;?php echo esc_html( $tax-&gt;label ) . $estimated_text; ?&gt;&lt;/th&gt;
                          &lt;td data-title=&quot;&lt;?php echo esc_attr( $tax-&gt;label ); ?&gt;&quot;&gt;&lt;?php echo wp_kses_post( $tax-&gt;formatted_amount ); ?&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;?php endforeach; ?&gt;
              &lt;?php else : ?&gt;
                  &lt;tr class=&quot;tax-total&quot;&gt;
                      &lt;th&gt;&lt;?php echo esc_html( WC()-&gt;countries-&gt;tax_or_vat() ) . $estimated_text; ?&gt;&lt;/th&gt;
                      &lt;td data-title=&quot;&lt;?php echo esc_attr( WC()-&gt;countries-&gt;tax_or_vat() ); ?&gt;&quot;&gt;&lt;?php wc_cart_totals_taxes_total_html(); ?&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;?php endif; ?&gt;
          &lt;?php endif; ?&gt;
  
          &lt;?php do_action( 'woocommerce_cart_totals_before_order_total' ); ?&gt;
  
          &lt;tr class=&quot;order-total&quot;&gt;
              &lt;th&gt;&lt;?php _e( 'Total', 'woocommerce' ); ?&gt;&lt;/th&gt;
              &lt;td data-title=&quot;&lt;?php esc_attr_e( 'Total', 'woocommerce' ); ?&gt;&quot;&gt;&lt;?php wc_cart_totals_order_total_html(); ?&gt;&lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;?php do_action( 'woocommerce_cart_totals_after_order_total' ); ?&gt;
  
      &lt;/table&gt;
  
  
      &lt;?php do_action( 'woocommerce_after_cart_totals' ); ?&gt;
  
  &lt;/div&gt;
  
  &lt;div class=&quot;wc-proceed-to-checkout&quot;&gt;
      &lt;?php do_action( 'woocommerce_proceed_to_checkout' ); ?&gt;
  &lt;/div&gt;
  </code></pre>