Commit 889c3381b5 for woocommerce

commit 889c3381b584a50f178bf0388fb60efbf64f0bd5
Author: Seun Olorunsola <30554163+triple0t@users.noreply.github.com>
Date:   Thu Feb 5 09:51:27 2026 +0100

    Enable customer cancelled order email notification by default for new stores (#63094)

    * Update default setting for customer cancelled order email notification to 'yes'

    New Woo stores will have this email enabled by default.

    * Add changelog file

    * Ensure the customer cancelled order email is enabled by default when the block editor is enabled

    The previous approach would have enabled the email for all store owners who had not interacted with the customer's cancelled order email. Woo only saves the option in the database when the user touches it and uses the predefined default otherwise. The previous approach assumed the option is always saved in the database on Woo init, which is false.

diff --git a/plugins/woocommerce/changelog/stomail-7769-notification-order-canceled-deactivated-by-default b/plugins/woocommerce/changelog/stomail-7769-notification-order-canceled-deactivated-by-default
new file mode 100644
index 0000000000..311eb78b9f
--- /dev/null
+++ b/plugins/woocommerce/changelog/stomail-7769-notification-order-canceled-deactivated-by-default
@@ -0,0 +1,4 @@
+Significance: minor
+Type: update
+
+Enable customer cancelled order email notification by default for new installations
diff --git a/plugins/woocommerce/includes/emails/class-wc-email-customer-cancelled-order.php b/plugins/woocommerce/includes/emails/class-wc-email-customer-cancelled-order.php
index 6693441109..a8a8ca6bdd 100644
--- a/plugins/woocommerce/includes/emails/class-wc-email-customer-cancelled-order.php
+++ b/plugins/woocommerce/includes/emails/class-wc-email-customer-cancelled-order.php
@@ -185,7 +185,7 @@ if ( ! class_exists( 'WC_Email_Customer_Cancelled_Order', false ) ) :
 					'title'   => __( 'Enable/Disable', 'woocommerce' ),
 					'type'    => 'checkbox',
 					'label'   => __( 'Enable this email notification', 'woocommerce' ),
-					'default' => 'no',
+					'default' => $this->block_email_editor_enabled ? 'yes' : 'no',
 				),
 				'subject'            => array(
 					'title'       => __( 'Subject', 'woocommerce' ),