title: Woocommerce Checkout page shows double Order summary?
body: <p>On the checkout page when user checkbox for the shipping details the order summary doubles.
  I have done many modifications in the in past. So i think i made mistake.</p>
  
  <p><a href="https://i.stack.imgur.com/ZMUTZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZMUTZ.png" alt="enter image description here"></a></p>
  
  <p>On clicking shipping information checkbox. the order summary becomes double. only <strong>subtotal, shipping and total.</strong>
  <a href="https://i.stack.imgur.com/CUoNz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CUoNz.png" alt="enter image description here"></a></p>
  
  <p>I am providing <strong>review-order.php</strong> code</p>
  
  <pre><code>&lt;?php
  /**
   * Review order table
   *
   * This template can be overridden by copying it to yourtheme/woocommerce/checkout/review-order.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/
   * @package WooCommerce/Templates
   * @version 3.8.0
   */
  
  defined( 'ABSPATH' ) || exit;
  ?&gt;
  &lt;table class="shop_table woocommerce-checkout-review-order-table"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th class="product-name"&gt;&lt;?php esc_html_e( 'Product', 'woocommerce' ); ?&gt;&lt;/th&gt;
              &lt;th class="product-total"&gt;&lt;?php esc_html_e( 'Subtotal', 'woocommerce' ); ?&gt;&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;?php
          do_action( 'woocommerce_review_order_before_cart_contents' );
  
          foreach ( WC()-&gt;cart-&gt;get_cart() as $cart_item_key =&gt; $cart_item ) {
              $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );
  
              if ( $_product &amp;&amp; $_product-&gt;exists() &amp;&amp; $cart_item['quantity'] &gt; 0 &amp;&amp; apply_filters( 'woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key ) ) {
                  ?&gt;
                  &lt;tr class="&lt;?php echo esc_attr( apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ) ); ?&gt;"&gt;
                      &lt;td class="product-name"&gt;
                          &lt;?php echo apply_filters( 'woocommerce_cart_item_name', $_product-&gt;get_name(), $cart_item, $cart_item_key ) . '&amp;nbsp;'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?&gt;
                          &lt;?php echo apply_filters( 'woocommerce_checkout_cart_item_quantity', ' &lt;strong class="product-quantity"&gt;' . sprintf( '&amp;times;&amp;nbsp;%s', $cart_item['quantity'] ) . '&lt;/strong&gt;', $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?&gt;
                          &lt;?php echo wc_get_formatted_cart_item_data( $cart_item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?&gt;
                      &lt;/td&gt;
                      &lt;td class="product-total"&gt;
                          &lt;?php echo apply_filters( 'woocommerce_cart_item_subtotal', WC()-&gt;cart-&gt;get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;?php
              }
          }
  
          do_action( 'woocommerce_review_order_after_cart_contents' );
          ?&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  
  
          &lt;div class="cart-subtotal"&gt;
              &lt;h2&gt;&lt;?php esc_html_e( 'Subtotal', 'woocommerce' ); ?&gt;&lt;/h2&gt;
              &lt;div class="order-detail-summary-item"&gt;&lt;?php wc_cart_totals_subtotal_html(); ?&gt;&lt;/div&gt;
          &lt;/div&gt;
  
          &lt;?php foreach ( WC()-&gt;cart-&gt;get_coupons() as $code =&gt; $coupon ) : ?&gt;
              &lt;div class="cart-discount coupon-&lt;?php echo esc_attr( sanitize_title( $code ) ); ?&gt;"&gt;
                  &lt;h2&gt;&lt;?php wc_cart_totals_coupon_label( $coupon ); ?&gt;&lt;/h2&gt;
                  &lt;div class="order-detail-summary-item"&gt;&lt;?php wc_cart_totals_coupon_html( $coupon ); ?&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;?php endforeach; ?&gt;
  &lt;h2&gt;Shipping&lt;/h2&gt;
          &lt;?php if ( WC()-&gt;cart-&gt;needs_shipping() &amp;&amp; WC()-&gt;cart-&gt;show_shipping() ) : ?&gt;
  
              &lt;?php do_action( 'woocommerce_review_order_before_shipping' ); ?&gt;
  
              &lt;?php wc_cart_totals_shipping_html(); ?&gt;
  
              &lt;?php do_action( 'woocommerce_review_order_after_shipping' ); ?&gt;
  
          &lt;?php endif; ?&gt;
  
          &lt;?php foreach ( WC()-&gt;cart-&gt;get_fees() as $fee ) : ?&gt;
              &lt;div class="fee"&gt;
                  &lt;h2&gt;&lt;?php echo esc_html( $fee-&gt;name ); ?&gt;&lt;/h2&gt;
                  &lt;div class="order-detail-summary-item"&gt;&lt;?php wc_cart_totals_fee_html( $fee ); ?&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;?php endforeach; ?&gt;
  
          &lt;?php if ( wc_tax_enabled() &amp;&amp; ! WC()-&gt;cart-&gt;display_prices_including_tax() ) : ?&gt;
              &lt;?php if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) : ?&gt;
                  &lt;?php foreach ( WC()-&gt;cart-&gt;get_tax_totals() as $code =&gt; $tax ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited ?&gt;
                      &lt;div class="tax-rate tax-rate-&lt;?php echo esc_attr( sanitize_title( $code ) ); ?&gt;"&gt;
                          &lt;h2&gt;&lt;?php echo esc_html( $tax-&gt;label ); ?&gt;&lt;/h2&gt;
                          &lt;div class="order-detail-summary-item"&gt;&lt;?php echo wp_kses_post( $tax-&gt;formatted_amount ); ?&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;?php endforeach; ?&gt;
              &lt;?php else : ?&gt;
                  &lt;div class="tax-total"&gt;
                      &lt;h2&gt;&lt;?php echo esc_html( WC()-&gt;countries-&gt;tax_or_vat() ); ?&gt;&lt;/h2&gt;
                      &lt;div class="order-detail-summary-item"&gt;&lt;?php wc_cart_totals_taxes_total_html(); ?&gt;&lt;/div&gt;
                  &lt;/div&gt;
              &lt;?php endif; ?&gt;
          &lt;?php endif; ?&gt;
  
          &lt;?php do_action( 'woocommerce_review_order_before_order_total' ); ?&gt;
  
          &lt;div class="order-total"&gt;
              &lt;h2&gt;&lt;?php esc_html_e( 'Total', 'woocommerce' ); ?&gt;&lt;/h2&gt;
              &lt;div class="order-detail-summary-item"&gt;&lt;?php wc_cart_totals_order_total_html(); ?&gt;&lt;/div&gt;
          &lt;/div&gt;
  
          &lt;?php do_action( 'woocommerce_review_order_after_order_total' ); ?&gt;
  </code></pre>