Closed james-allan closed 8 months ago
after changing the toggle from My account page, the payment method can not be changed from Edit subscription page by admin
The payment method can be changed from the edit subscription page after using the toggle from the my account page. My understanding of that part was that it can be changed but not saved. I've included a video of what I believe they were referring to below.
The reason changing the payment method in this video isn't "sticking" is because the subscription has the "requires manual renewal" flag set which means irrespective of the payment method, it is locked to manual renewals.
Adding this checkbox allows the user to turn off that manual renewal lock and therefore resume automatic renewals and for the chosen payment method to take effect.
Another approach we could look into is something like this:
I'm trying to think if that would break any flows, making an assumption like that. What do you think though @mayisha, would that make more sense rather than a checkbox?
What do you think though @Mayisha, would that make more sense rather than a checkbox?
I've been having a go at implementing this and I think this makes a lot more sense than the checkbox.
I think this is inline with what you were suggesting right?
Sorry for not elaborating on my question before :no_mouth:
This implementation https://github.com/Automattic/woocommerce-subscriptions-core/pull/535#issuecomment-1791853080 exactly aligns with what I meant. :100:
Fixes https://github.com/woocommerce/woocommerce-subscriptions/issues/4094 Fixes https://github.com/Automattic/woocommerce-subscriptions-core/issues/519
Description
There's a feature in Woo Subscriptions that enables customers to switch between automatic and manual renewals. This is known as the auto renewal toggle.
When a customer turns off automatic renewals in this way, admin users are unable to switch it back to automatic renewals. This is because this toggle sets the
_requires_manual_renewal
flag which there's is no UI element for.This PR fixes that by adding a new checkbox on the edit subscription screen to allow them to turn automatic renewals back on.
https://github.com/Automattic/woocommerce-subscriptions-core/assets/8490476/c4e2cea8-8d5b-4f27-9a9f-c570b964a9c7
The new "Auto renew" checkbox
How to test this PR
trunk
you'll notice that there's nothing you can do to turn automatic payments back on. Editing the billing details, doesn't enable you to set the auto renewal flag.Product impact