Commit 1edc2012a39 for woocommerce

commit 1edc2012a398956c94bf8ca1d67fa418a66a70f8
Author: Marco Almeida | Webdados <webdados@users.noreply.github.com>
Date:   Tue Jul 14 11:33:55 2026 +0100

    Add class to payment link on the customer order details and update the template title (#66544)

    * Add email-payment-link to order details email payment link

    * Update file comment title to "Customer order details email"

    * Add changefile(s) from automation for the following project(s): woocommerce

    * Apply the CSS class to the failed-payment link too

    * Remove the ineffective class allowlist entry

    * Set template version to 11.1.0

    ---------

    Co-authored-by: Marco Almeida <marcoalmeida@webdados.pt>
    Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>

diff --git a/plugins/woocommerce/changelog/66544-66537-order-details-email b/plugins/woocommerce/changelog/66544-66537-order-details-email
new file mode 100644
index 00000000000..a35f16157e8
--- /dev/null
+++ b/plugins/woocommerce/changelog/66544-66537-order-details-email
@@ -0,0 +1,4 @@
+Significance: minor
+Type: tweak
+
+Add class to payment link on the customer order details and update the template title to "Customer order details email"
diff --git a/plugins/woocommerce/templates/emails/customer-invoice.php b/plugins/woocommerce/templates/emails/customer-invoice.php
index 2318bf3095f..6e436d6e490 100644
--- a/plugins/woocommerce/templates/emails/customer-invoice.php
+++ b/plugins/woocommerce/templates/emails/customer-invoice.php
@@ -1,6 +1,6 @@
 <?php
 /**
- * Customer invoice email
+ * Customer order details email
  *
  * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-invoice.php.
  *
@@ -12,7 +12,7 @@
  *
  * @see https://woocommerce.com/document/template-structure/
  * @package WooCommerce\Templates\Emails
- * @version 10.4.0
+ * @version 11.1.0
  */

 use Automattic\WooCommerce\Enums\OrderStatus;
@@ -57,7 +57,7 @@ if ( ! empty( $order->get_billing_first_name() ) ) {
 				)
 			),
 			esc_html( get_bloginfo( 'name', 'display' ) ),
-			'<a href="' . esc_url( $order->get_checkout_payment_url() ) . '">' . esc_html__( 'Pay for this order', 'woocommerce' ) . '</a>'
+			'<a href="' . esc_url( $order->get_checkout_payment_url() ) . '" class="email-payment-link">' . esc_html__( 'Pay for this order', 'woocommerce' ) . '</a>'
 		);
 	} else {
 		printf(
@@ -71,7 +71,7 @@ if ( ! empty( $order->get_billing_first_name() ) ) {
 				)
 			),
 			esc_html( get_bloginfo( 'name', 'display' ) ),
-			'<a href="' . esc_url( $order->get_checkout_payment_url() ) . '">' . esc_html__( 'Pay for this order', 'woocommerce' ) . '</a>'
+			'<a href="' . esc_url( $order->get_checkout_payment_url() ) . '" class="email-payment-link">' . esc_html__( 'Pay for this order', 'woocommerce' ) . '</a>'
 		);
 	}
 	?>