diff --git a/woocommerce/cart/mini-cart.php b/woocommerce/cart/mini-cart.php index 3b58593..aff9fa2 100644 --- a/woocommerce/cart/mini-cart.php +++ b/woocommerce/cart/mini-cart.php @@ -13,14 +13,11 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates - * @version 3.6.1 + * @version 3.7.0 */ -if ( ! defined( 'ABSPATH' ) ) { - exit; -} +defined( 'ABSPATH' ) || exit; do_action( 'woocommerce_before_mini_cart' ); ?> @@ -28,7 +25,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?>
-: cart->get_cart_subtotal(); ?>
++ +
+ + - + - diff --git a/woocommerce/myaccount/orders.php b/woocommerce/myaccount/orders.php index c3840f2..9190d86 100644 --- a/woocommerce/myaccount/orders.php +++ b/woocommerce/myaccount/orders.php @@ -12,15 +12,12 @@ * 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/ - * @author WooThemes + * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates - * @version 3.6.1 + * @version 3.7.0 */ -if ( ! defined( 'ABSPATH' ) ) { - exit; -} +defined( 'ABSPATH' ) || exit; do_action( 'woocommerce_before_account_orders', $has_orders ); ?> @@ -36,9 +33,10 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?> - orders as $customer_order ) : - $order = wc_get_order( $customer_order ); - $item_count = $order->get_item_count(); + orders as $customer_order ) { + $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited + $item_count = $order->get_item_count() - $order->get_item_count_refunded(); ?>