Commit 8f51303928 for woocommerce
commit 8f5130392817a7433abdca2f428f190d8a14e394
Author: Michal Iwanow <4765119+mcliwanow@users.noreply.github.com>
Date: Wed Jan 14 13:25:44 2026 +0100
Add warning for non-auto-renewing subscriptions in status badge (#62772)
* Add warning for non-auto-renewing subscriptions in status badge
Previously active subscriptions that had autorenewal turned off, would show as "Cancelled". This was a confusing UX. Now, we'll show that autorenewals are off, giving users a chance to autorenew.
* Add changefile(s) from automation for the following project(s): woocommerce, woocommerce/client/admin
---------
Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
diff --git a/plugins/woocommerce/changelog/62772-update-wccom-2077-alternative-to-cancelled-for-non-auto-renewing-subs b/plugins/woocommerce/changelog/62772-update-wccom-2077-alternative-to-cancelled-for-non-auto-renewing-subs
new file mode 100644
index 0000000000..f327125739
--- /dev/null
+++ b/plugins/woocommerce/changelog/62772-update-wccom-2077-alternative-to-cancelled-for-non-auto-renewing-subs
@@ -0,0 +1,4 @@
+Significance: patch
+Type: tweak
+
+Changed subscription status from "Cancelled" to "Auto-renew: off" for non-auto-renewing subscriptions in My Subscriptions.
\ No newline at end of file
diff --git a/plugins/woocommerce/client/admin/client/marketplace/components/my-subscriptions/table/rows/functions.tsx b/plugins/woocommerce/client/admin/client/marketplace/components/my-subscriptions/table/rows/functions.tsx
index ebeeca3294..f4f77f746d 100644
--- a/plugins/woocommerce/client/admin/client/marketplace/components/my-subscriptions/table/rows/functions.tsx
+++ b/plugins/woocommerce/client/admin/client/marketplace/components/my-subscriptions/table/rows/functions.tsx
@@ -177,6 +177,33 @@ function getStatusBadge(
};
}
+ if (
+ ! subscription.autorenew &&
+ ! subscription.lifetime &&
+ ! subscription.expired
+ ) {
+ return {
+ text: __( 'Auto-renew: off', 'woocommerce' ),
+ level: StatusLevel.Warning,
+ explanation: createInterpolateElement(
+ __(
+ 'This subscription will not renew automatically. <enable>Enable auto-renew</enable> to ensure uninterrupted updates and support.',
+ 'woocommerce'
+ ),
+ {
+ enable: (
+ <a
+ href={ enableAutorenewalUrl( subscription ) }
+ rel="nofollow noopener noreferrer"
+ >
+ enable
+ </a>
+ ),
+ }
+ ),
+ };
+ }
+
return false;
}