Commit 2ae84fd5689 for woocommerce
commit 2ae84fd5689119027ccf1600c224df1c9385e74a
Author: Rishabh Gupta <109821717+R1shabh-Gupta@users.noreply.github.com>
Date: Wed Nov 11 00:05:58 2026 +0530
Say "order received" only once when order details are hidden (#70765)
* Say "order received" only once when order details are hidden
* Add a test that hidden order details say "order received" only once
* Add changelog entry
* Remove unnecessary test
* Shorten changelog
---------
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
diff --git a/plugins/woocommerce/changelog/70736-order-received-duplicate-message b/plugins/woocommerce/changelog/70736-order-received-duplicate-message
new file mode 100644
index 00000000000..9c30a5b32f3
--- /dev/null
+++ b/plugins/woocommerce/changelog/70736-order-received-duplicate-message
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Update the text in the order received page to avoid redundancy.
diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php b/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php
index 363c4390d29..3ffd795822a 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Status.php
@@ -246,7 +246,7 @@ class Status extends AbstractOrderConfirmationBlock {
$my_account_page = wc_get_page_permalink( 'myaccount' );
$content = '<p>';
- $content .= esc_html__( 'Great news! Your order has been received, and a confirmation will be sent to your email address.', 'woocommerce' );
+ $content .= esc_html__( 'A confirmation will be sent to your email address.', 'woocommerce' );
$content .= $my_account_page ? ' ' . sprintf(
/* translators: 1: opening a link tag 2: closing a link tag */
esc_html__( 'Have an account with us? %1$sLog in here%2$s to view your order.', 'woocommerce' ),
diff --git a/plugins/woocommerce/tests/e2e/tests/blocks/checkout/order-confirmation.block_theme.spec.ts b/plugins/woocommerce/tests/e2e/tests/blocks/checkout/order-confirmation.block_theme.spec.ts
index 19e19b6fc9e..7cbaa1e62db 100644
--- a/plugins/woocommerce/tests/e2e/tests/blocks/checkout/order-confirmation.block_theme.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/blocks/checkout/order-confirmation.block_theme.spec.ts
@@ -90,7 +90,7 @@ test.describe( 'Shopper (logged-in) → Order Confirmation', () => {
// Confirm default message is visible
await expect(
page.getByText(
- 'Great news! Your order has been received, and a confirmation will be sent to your email address. Have an account with us?'
+ 'A confirmation will be sent to your email address. Have an account with us?'
)
).toBeVisible();
// Confirm order details are not visible