Woocommerce linked licensing system for your plugins
-
@lindon I store mine in appData.
const appData = FileSystem.getFolder(FileSystem.AppData);
Actually I don't store the license on the user's system, I just store a flag to indicate if they have a valid license once it's been confirmed by the server. From a security point of view it doesn't make much difference except if someone does de-encrypt the file they'll just find a flag instead of the license key.
-
@lindon said in Woocommerce linked licensing system for your plugins:
@orange - How did you deal with finding the correct folder on a Mac for your product...I assume that's where you are storing the license...
FileSystem.getFolder(FileSystem.AppData)
is the way to go as a reference point. And you can combine it with.getParentDirectory()
and/or.createDirectory("Your License Folder")
relatively to this reference point. -
@orange said in Woocommerce linked licensing system for your plugins:
@lindon said in Woocommerce linked licensing system for your plugins:
@orange - How did you deal with finding the correct folder on a Mac for your product...I assume that's where you are storing the license...
FileSystem.getFolder(FileSystem.AppData)
is the way to go as a reference point. And you can combine it with.getParentDirectory()
and/or.createDirectory("Your License Folder")
relatively to this reference point.& @d-healey ... yes obviously BUT:
FileSystem.AppData will point to the correct folder for the end-user product...but ONLY inside the end-user product.....
so I have a product called SynthSimple.... and a validation stand alone called myValidationApp.
inside SynthSimple the AppData folder points to:
C:/Users/joeBlo/AppData/Roaming/myCo/SynthSimple
inside myValidationApp it points to:
C:/Users/joeBlo/AppData/Roaming/myCo/myValidationApp
so myValidation App needs to put the validation key/flag/whatever inside the AppData folder for the end-product - not in its own folder....
So how do you do that?
-
@lindon said in Woocommerce linked licensing system for your plugins:
So how do you do that?
fromAbsolutePath
but not on master branch. You'll have to do as orange suggested and browse from the appData directory usinggetParentDirectory
,getFolder
, andgetChildFile
. -
Why don't you put the validation key/flag...etc. inside the "C:/Users/joeBlo/AppData/Roaming/myCo/Validation Folder" for example?
So this folder will be a common folder for all software, even with or without Validation App. For example;
const validationFolder = FileSystem.getFolder(FileSystem.AppData).getParentDirectory().createDirectory("Validation Folder");
-
@orange said in Woocommerce linked licensing system for your plugins:
Why don't you put the validation key/flag...etc. inside the "C:/Users/joeBlo/AppData/Roaming/myCo/Validation Folder" for example?
So this folder will be a common folder for all software, even with or without Validation App. For example;
const validationFolder = FileSystem.getFolder(FileSystem.AppData).getParentDirectory().createDirectory("Validation Folder");
because its not even commonly "rooted" on MacOS...
-
@lindon said in Woocommerce linked licensing system for your plugins:
because its not even commonly "rooted" on MacOS...
Yes AppData is common on both Win and Mac. This works here.
-
@orange --er no its not. I t will be common on a single Mac but not between more than one Mac - well that's my understanding anyway.
-
@orange . Congrats ! bro. Learning many things from you.
-
@orange Very interested in this. Well done!
-
-
@orange great job !! And thank you for your insight !
-
thank you so much @orange for this specific useful know how.
great work! :growing_heart:
what do you mean with cpu economic? are these queries slowing server?
-
@steve-mohican said in Woocommerce linked licensing system for your plugins:
are these queries slowing server?
Every query requires processing resources, the less queries you make the better.
-
@d-healey said in Woocommerce linked licensing system for your plugins:
Every query requires processing resources, the less queries you make the better.
Yes it's obvious. I just thought that this kind of api required backend process can't work with a standard wordpress website and AWS or something like that professional server system needed. So is this system in a standard hosting?
-
@steve-mohican said in Woocommerce linked licensing system for your plugins:
So is this system in a standard hosting?
I use cheapo shared hosting, but I'm looking to switch to a VPS - not related to licensing, I just want a faster webstore for my customers, the current one has always been a little slower to load pages than I'd like.
-
@steve-mohican said in Woocommerce linked licensing system for your plugins:
So is this system in a standard hosting?
Yes, no AWS here.
Recently, I had to re-design my website compeltely from scratch. Before, it was struggling with hosting, theme, images and design mistakes. If you want speed, the performance is the sum of everything. Hosting, theme, images, your page design style...etc. all of them are affecting the performance.
-
For hosting, I am using Kinsta, it's exclusively a Wordpress optimized, pretty fast system, I highly recommend it.
-
For theme, I am using Kadence. I've tried tons of themes before, but definately this one is the best, well woocommerce optimized, pretty fast theme. It also has great addons like Conversions, Kadence Blocks (Gutenberg block builder)...
-
For page design, definitely go with Gutenberg (with Kadence Blocks). I think the page builders (like Divi, Elementor...etc.) will die soon, because Gutenberg (which is designed by Wordpress) is much more faster, getting better day by day, and it is the future of Wordpress.
-
One more thing is the image optimization. Shortpixel wordpress plugin is the one to go. It not only optimizes pictures, it also supports WebP image format which was developed by Google and it is the future of the web also. Recently Wordpress added WebP support. This image format supports transparent images with much more less file size. Not all of the browsers support it for now, but Shortpixel handles it with showing optimized jpg files to non-supported browsers.
If you take care all of the details, there is no need to do any action or no need to worry about using Woocommerce License Manager API in your website.
-
-
-
@orange That's exactly what I've been tring to do. now you showed that it is possible. I really appreciate your generous tips, you're awesome wooo wooo
-
Thank you, that is what i am building :) now.