I'm currently working on a Woocommerce website mainly on Elementor Pro with WooCommerce Subscription.
My client is asking for a subscription "Upgrade/Downgrade" button for a custom page that we've built and since I'm honestly not that advanced in PHP, I'm currently stuck on how to create that button.
The subscription is under a variable product that has Monthly and Yearly options. As far as I know, upgrading a product is different from buying the subscription again with a higher value since the URL for switching has the the additional "?switch-subscription=XXXX&item=XX&_wcsnonce=XXXXXXXXXX" included in the address that is uniquely different per user.
I just want to know if it's possible to generate the proper URL for subscription switching so that I can add that link to a button, or a better workaround.
Thanks.