Simba Plugin Updates/Licensing/Renewal Manager
The free base “Plugins Manager” plugin that the WooCommerce connector works with can be obtained from the wordpress.org plugins directory. Search for “Simba plugin updates manager”.
How do I connect a WooCommerce product to a plugin, so that licences are automatically created and renewed?
In WooCommerce, edit the product.
Add two custom fields:
- simbamanager_key : the value of this should equal your plugin slug (i.e. the slug of the plugin you are selling), followed by a colon, followed by the word all, followed by a colon, followed by how many months you wish a purchase to create a valid licence for (e.g. 12, for 1 year – or -1 for unlimited). (If you are using plugins with built-in add-ons (an expert feature), the “all” can be modified to indicate the specific add-on for the plugin).
- simbamanager_licences : this is optional, and is used to indicate how many licences this purchase is for (default: 1). For a variable product, you instead enter a comma-separated list of variation IDs followed by a colon, followed by the number of licences for each variation.
Here is an example (of the entry for this product itself, in our shop):
For the code to add to your own plugins, to connect them back to your updates server (i.e. your WordPress install that has the Simba Plugins Manager installed on it), follow this link to the Github project.
Yes; these are counted and stored by plugin and by day.
The main parameters for the `udmanager` shortcode are as follows:
slug: The slug of the plugin that you wish to show information for. This needs to match what you have set in the general plugin configuration (which in turn, should match the plugin’s directory name).
userid: The WordPress user ID that the plugin belongs to; i.e. the user ID of the account that you have set the plugin up in in the plugins manager.
showaddons: If your plugin is set up in the plugins manager to use the ‘add-ons’ mode, and you want to show per-add-on information, then set this to true.
showunpurchased: If set to “true”, then show information even if there are no purchases for the indicate plugin/add-ons.