From 4c1139697a9e02dda4bb2c5e695a450cc41bf07f Mon Sep 17 00:00:00 2001 From: Piirka Date: Tue, 19 Oct 2021 13:27:10 +0300 Subject: [PATCH 1/2] Update orders.php --- woocommerce/myaccount/orders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce/myaccount/orders.php b/woocommerce/myaccount/orders.php index 1f57ce5ee..4e0b209a7 100644 --- a/woocommerce/myaccount/orders.php +++ b/woocommerce/myaccount/orders.php @@ -98,7 +98,7 @@
- +
From 4fbc90bf1cf68d65eda87672ad0d6ffe1fd70809 Mon Sep 17 00:00:00 2001 From: Brian Coords Date: Fri, 29 Oct 2021 16:37:23 -0700 Subject: [PATCH 2/2] pulls latest order template from woocommerce --- woocommerce/myaccount/orders.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/woocommerce/myaccount/orders.php b/woocommerce/myaccount/orders.php index 4e0b209a7..7a8eb06f8 100644 --- a/woocommerce/myaccount/orders.php +++ b/woocommerce/myaccount/orders.php @@ -13,7 +13,7 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @package WooCommerce/Templates + * @package WooCommerce\Templates * @version 3.7.0 */ @@ -35,7 +35,7 @@ orders as $customer_order ) { - $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Override + $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $item_count = $order->get_item_count() - $order->get_item_count_refunded(); ?> @@ -63,11 +63,11 @@ $orders_action ) { - echo '' . esc_html( $orders_action['name'] ) . ''; + if ( ! empty( $actions ) ) { + foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited + echo '' . esc_html( $action['name'] ) . ''; } } ?> @@ -97,12 +97,9 @@
- - - +
-