michelve / software-license-manager

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

Make Expiry and Renewal dates optional? #1

Closed froger-me closed 5 years ago

froger-me commented 5 years ago

Hello,

First of all, I've gotta say good job for the fork: I was thinking about doing it myself, because of the issue described more in details below more particularly, but also generally because of the way the plugin is coded as a whole. The functionalities are great and do work, but a rewrite in OOP and more integration look awfully necessary. Your fork is a huge step towards a better, cleaner code base.

Onto the issue at hand: when adding/editing a license, the Expiry and Renewal dates are automatically set to $current_date_plus_1year just like in the original code base. Why is it the case in you opinion? Cannot it be optional?

Use case, on the same install with auto-expiry:

=> unhappy client

Can’t we just remove the following lines to avoid unnecessary assumptions?

if(empty($renewed_date)){
   $renewed_date = $current_date;
}
if(empty($expiry_date)){
    $expiry_date = $current_date_plus_1year;
}

Best, froger-me

michelve commented 5 years ago

Thank you @froger-me for the feedback, will definitely include this on version 4.5

michelve commented 5 years ago

@froger-me - we have added support for license type

lic_type: lifetime, subscription

screen shot 2018-12-02 at 10 12 31 pm

froger-me commented 5 years ago

Hi @michelve ! Just FYI, I rolled with my own solution in WP Plugin Update Server instead of relying on a 3rd party. However, all in all, it is great news for your users!