From a43eabee369ca8f051a620cc3d015d71b192f821 Mon Sep 17 00:00:00 2001 From: Jason King Date: Thu, 29 Jun 2017 22:03:05 +0930 Subject: [PATCH] Woocommerce 3.1.0 Compatability --- woocommerce/cart/cart-empty.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/woocommerce/cart/cart-empty.php b/woocommerce/cart/cart-empty.php index 1f495be..07a5fd1 100644 --- a/woocommerce/cart/cart-empty.php +++ b/woocommerce/cart/cart-empty.php @@ -13,24 +13,21 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 2.0.0 + * @version 3.1.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly. + exit; // Exit if accessed directly } wc_print_notices(); -?> +/** + * @hooked wc_empty_cart_message - 10 + */ +do_action( 'woocommerce_cart_is_empty' ); -

- -

- - - - 0 ) : ?> +if ( wc_get_page_id( 'shop' ) > 0 ) : ?>