Merge pull request #15823 from ChaseWiseman/fix-checkout-shipping-calculator

Don't output the shipping calculator markup on the Checkout page
This commit is contained in:
Mike Jolley 2017-06-28 12:30:47 +01:00 committed by GitHub
commit 49f2dae450
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ function wc_cart_totals_shipping_html() {
'package' => $package,
'available_methods' => $package['rates'],
'show_package_details' => sizeof( $packages ) > 1,
'show_shipping_calculator' => $first,
'show_shipping_calculator' => is_cart() && $first,
'package_details' => implode( ', ', $product_names ),
// @codingStandardsIgnoreStart
'package_name' => apply_filters( 'woocommerce_shipping_package_name', sprintf( _nx( 'Shipping', 'Shipping %d', ( $i + 1 ), 'shipping packages', 'woocommerce' ), ( $i + 1 ) ), $i, $package ),