Closed MechComp closed 4 years ago
Hi,
in the last version of the plugin I have changed the way how orders look like and behave.
The old approach was adding the license info as order meta and then displaying them. This didn't work well when there were more licenses than one or more than one licensed product. Also, the plugin never tried to check if there are any existing licenses for current order. So when someone changed the order status from completed to on-hold and back, plugin created new licenses for the user. I have narrowed down the number of metadata to just license key and type. Everything else when added to the order was relevant just at the time of license being created. So when there was a change in license afterwards, it wasn't changed in the order again. This data can be found then in the license record itself.
There are also two new options:
Commit 5a26db6 is about the appearance of licences - added item reference and the info was too wide, it did two rows so the look was altered a bit.
Commit 4964669 makes the item reference work. When the SQL select does not include item reference, the customer is able to activate the license for whatever product he wants. Thus the feature is not working.
Thank you @MechComp - i have allowed the pull request
CSS update on licence stats