From 678a3349c549109599f9049821101d5703849414 Mon Sep 17 00:00:00 2001 From: Brian Coords Date: Tue, 19 Mar 2024 14:14:25 -0700 Subject: [PATCH] updates to woo templates for 8.7.0 --- woocommerce/myaccount/form-edit-account.php | 25 ++++++++++++++++----- woocommerce/myaccount/my-address.php | 20 ++++++++++++----- woocommerce/myaccount/orders.php | 22 +++++++++++++----- 3 files changed, 52 insertions(+), 15 deletions(-) diff --git a/woocommerce/myaccount/form-edit-account.php b/woocommerce/myaccount/form-edit-account.php index 766f9f1f..3b5757d1 100644 --- a/woocommerce/myaccount/form-edit-account.php +++ b/woocommerce/myaccount/form-edit-account.php @@ -12,7 +12,7 @@ * * @see https://woo.com/document/template-structure/ * @package WooCommerce\Templates - * @version 7.0.1 + * @version 8.7.0 */ defined( 'ABSPATH' ) || exit; @@ -44,6 +44,15 @@ do_action( 'woocommerce_before_edit_account_form' ); ?>

+ +
@@ -62,16 +71,22 @@ do_action( 'woocommerce_before_edit_account_form' ); ?>
- +

- +

- diff --git a/woocommerce/myaccount/my-address.php b/woocommerce/myaccount/my-address.php index 5db438b6..52673526 100644 --- a/woocommerce/myaccount/my-address.php +++ b/woocommerce/myaccount/my-address.php @@ -12,10 +12,9 @@ * * @see https://woo.com/document/template-structure/ * @package WooCommerce\Templates - * @version 2.6.0 + * @version 8.7.0 */ -// Exit if accessed directly. defined( 'ABSPATH' ) || exit; $customer_id = get_current_user_id(); @@ -52,10 +51,13 @@ $col = 1; $address_title ) : ?> + - - -
+

@@ -63,6 +65,14 @@ $col = 1;
diff --git a/woocommerce/myaccount/orders.php b/woocommerce/myaccount/orders.php index fd9f7766..b53c5513 100644 --- a/woocommerce/myaccount/orders.php +++ b/woocommerce/myaccount/orders.php @@ -14,12 +14,15 @@ * * @see https://woo.com/document/template-structure/ * @package WooCommerce\Templates - * @version 7.8.0 + * @version 8.5.0 */ defined( 'ABSPATH' ) || exit; + do_action( 'woocommerce_before_account_orders', $has_orders ); ?> + + @@ -28,6 +31,7 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?> + orders as $customer_order ) { @@ -39,25 +43,31 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?> + + max_num_pages ) : ?>
- + max_num_pages ) !== $current_page ) : ?> - +
- ' . esc_html__( 'Browse products', 'woocommerce' ) . '', 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment ?> + ' . esc_html__( 'Browse products', 'woocommerce' ) . '', 'notice' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment ?>