I'm working on a website with Woocommerce Subscriptions and Elementor Pro. What I'm only trying to achieve is to add an "Upgrade Subscription" button to one of the pages.
Someone has already gave me an idea from stackoverflow on how to do this, but I just don't know on how to work on this since I'm still not that good in PHP. This is partial description of my post from the other website:
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.
I would really appreciate it if someone can guide me with this (especially on how to implement the code in Elementor. Thanks!