michelve / software-license-manager

🔐Wordpress Software License Management. Supports WooCommerce, and WP eStore.
https://epikly.com
GNU General Public License v3.0
77 stars 29 forks source link

Renewals #55

Closed snxraven closed 3 years ago

snxraven commented 3 years ago

Hello Guys,

I think this may be my favorite wordpress plugin to date.

However, I am a little confused a bout how renewals work within WooCommerce.

Ive made licenses for my products, and the licenses work great and expire after 30 days, but I am confused how to allow woocommerce to renew the same license.

Regards, Raven

snxraven commented 3 years ago

I have gotten a "workable" solution for this issue, however, It would be really nice to have a fully integrated solution

For this to work, ive used the wordpress plugin "PPOM for WooCommerce by N-MEDIA" to create a custom input field on a new product called "Renew Service"

I then added the following code to my functions.php file for my theme for woocommerce this is using the update method:

https://pastebin.com/X4Fh5PgP

Once the payment is processed, wordpress post requests the update in expiration.

I hope this helps some folks

michelve commented 3 years ago

i never had the time to implement the renewal process using woocommerce, but your input and help is greatly appreciated

snxraven commented 3 years ago

That is no problem.

This solution is actually pretty decent. I may make updates to what I have come up with and update to this Issue. As I am just now getting back into php after a few years I may take some time to get a pull request done with an actual integrated solution.