Don't show debug on checkout

Closes #11166
This commit is contained in:
Mike Jolley 2016-06-17 13:21:59 +01:00
parent b66bb9ed9d
commit 291a997161
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class WC_Shipping {
$this->shipping_methods = $shipping_zone->get_shipping_methods( true );
// Debug output
if ( ! empty( $status_options['shipping_debug_mode'] ) ) {
if ( ! empty( $status_options['shipping_debug_mode'] ) && ! defined( 'WOOCOMMERCE_CHECKOUT' ) ) {
wc_add_notice( 'Customer matched zone "' . $shipping_zone->get_zone_name() . '"' );
}
} else {