You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,9 @@
4
4
5
5
Ensure that your website is running PHP 8 or later. This plugin is confirmed to be working with PHP 8.3.
6
6
7
-
1. Clone this repo.
8
-
2. Zip `software-licensor-wp-plugin`
9
-
3. Upload the plugin to your website.
10
-
4. Navigate from the admin dashboard to `WooCommerce>Settings>Integration>Software Licensor`.
7
+
1. Clone this repo and zip `software-licensor-wp-plugin`, or download the latest release.
8
+
3. Upload the plugin (the zip file) to your website.
9
+
4. Navigate from the admin dashboard to `Software Licensor>Store Registration`.
11
10
5. Fill out the form and click save. If the form is missing data, the request might not go through and you won't be able to see a store ID in the next step.
12
11
6. Navigate from the admin dashboard to `Software Licensor>Software Licensor`. Verify that you can see a roughly 64-character long string at the top under `Store ID`. You will need to include this `store_id` in the client side code.
13
12
7. Navigate to `Software Licensor>Create/Update Licensed Product`. Fill out the form fields. Notice the `Allow Offline` checkbox. Offline license activations are not currently supported, but there is more info about them in the `Things not yet implemented in this WordPress Plugin` section. For now, I would recommend setting it to disallow offline licenses, as this setting can be easily changed by pasting the product ID into the `Product ID/prefix` field, and copying or updating the version in the `version` field.
* Display an admin notice if WooCommerce is not active.
113
+
*
114
+
* @return void
115
+
*/
116
+
publicfunctionwoocommerce_missing_notice() {
117
+
if ( ! current_user_can( 'activate_plugins' ) ) {
118
+
echo'<div class="notice notice-error"><p>';
119
+
echoesc_html__('Software Licensor Integration requires WooCommerce to be installed and active, but you do not have permission to activate plugins.', 'software-licensor');
120
+
echo'</p></div>';
121
+
return;
122
+
}
123
+
124
+
echo'<div class="notice notice-error"><p>';
125
+
echoesc_html__( 'Software Licensor Integration requires WooCommerce to be installed and active.', 'software-licensor' );
0 commit comments