最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Adding an "Upgrade Subscription" button to an Elementor page

programmeradmin2浏览0评论

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!

发布评论

评论列表(0)

  1. 暂无评论