diff --git a/templates/cart/cart.php b/templates/cart/cart.php index 32b38fbb543..c3558f9cb36 100755 --- a/templates/cart/cart.php +++ b/templates/cart/cart.php @@ -9,8 +9,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -global $woocommerce; - wc_print_notices(); do_action( 'woocommerce_before_cart' ); ?> diff --git a/templates/cart/cross-sells.php b/templates/cart/cross-sells.php index 78781f51e6a..7a9b6009424 100644 --- a/templates/cart/cross-sells.php +++ b/templates/cart/cross-sells.php @@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -global $product, $woocommerce, $woocommerce_loop; +global $product, $woocommerce_loop; $crosssells = WC()->cart->get_cross_sells(); diff --git a/templates/cart/mini-cart.php b/templates/cart/mini-cart.php index 454982bcaad..23fad31738d 100644 --- a/templates/cart/mini-cart.php +++ b/templates/cart/mini-cart.php @@ -10,8 +10,6 @@ */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - -global $woocommerce; ?> diff --git a/templates/cart/shipping-calculator.php b/templates/cart/shipping-calculator.php index d3290c542d6..89c2c17ba40 100644 --- a/templates/cart/shipping-calculator.php +++ b/templates/cart/shipping-calculator.php @@ -9,8 +9,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -global $woocommerce; - if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart->needs_shipping() ) return; ?> diff --git a/templates/checkout/form-checkout.php b/templates/checkout/form-checkout.php index d455b80ed2d..0331d2edd05 100644 --- a/templates/checkout/form-checkout.php +++ b/templates/checkout/form-checkout.php @@ -9,8 +9,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -global $woocommerce; - wc_print_notices(); do_action( 'woocommerce_before_checkout_form', $checkout ); diff --git a/templates/checkout/form-coupon.php b/templates/checkout/form-coupon.php index 051d1a18405..05fe2335219 100644 --- a/templates/checkout/form-coupon.php +++ b/templates/checkout/form-coupon.php @@ -9,8 +9,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -global $woocommerce; - if ( ! WC()->cart->coupons_enabled() ) { return; } diff --git a/templates/checkout/form-pay.php b/templates/checkout/form-pay.php index 0b8dd141228..db495e74f64 100644 --- a/templates/checkout/form-pay.php +++ b/templates/checkout/form-pay.php @@ -8,8 +8,6 @@ */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - -global $woocommerce; ?>