Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Software License Add On – Applying distinct licenses to product variation

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Addon Related › Software License Add On – Applying distinct licenses to product variation

Tagged: api, license key, serial number

  • This topic has 5 replies, 3 voices, and was last updated 6 years, 6 months ago by admin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • November 11, 2018 at 6:47 pm #15192
    morsagmon
    Member

    Started setting up eStore with Software License Add On for selling (downloadable) software products.

    I’m selling two versions of the software: Basic and Full. I need to limit functionality in the software based on the LICENSE purchased (Basic or Full), hence, I need a way to identify the license type bought, using your API.

    1. I prefer to have both versions maintained as variations of the same product. Can I apply different license types to the different variations? How?

    2. Can I specify a different license key PREFIX for different license types (so that I can distinguish from the returned license key, if its the BASIC or FULL version)?

    3. I did not see in the API a method to check license validity. Only found Activate/Deactivate/Generate. How can I poke the license server occasionally to verify a legit license is valid?

    4. Where do I set the license key generation to be automatic in conjunction with a purchase?

    WP 4.9.8

    eStore 8.0.7

    Software License 4.1

    Thanks!

    Mor

    November 12, 2018 at 4:01 pm #78790
    wzp
    Moderator

    I prefer to have both versions maintained as variations of the same product. Can I apply different license types to the different variations? How?

    The Software License Manager (SLM), has zero-knowledge of product types AND variations. Unfortunately, this means you can only sell one kind of SLM based product. Perhaps you might want to use the “Serial Number” feature of eStore instead.

    https://www.tipsandtricks-hq.com/ecommerce/how-to-use-the-seriallicense-key-code-selling-feature-1618

    This does require, that you manually create an inventory of algorithmic hash codes (keys) for each product; and that your product contain code to validate the serial numbers.

    Can I specify a different license key PREFIX for different license types (so that I can distinguish from the returned license key, if its the BASIC or FULL version)?

    When using the SLM, there is no way to dynamically “format” auto-created license keys.

    I did not see in the API a method to check license validity. Only found Activate/Deactivate/Generate. How can I poke the license server occasionally to verify a legit license is valid?

    Read the section “Checking A License Key”

    https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress

    Where do I set the license key generation to be automatic in conjunction with a purchase?

    In the “AddOn Settings” section of the “Add/Edit Product” screen of eStore:

    https://www.tipsandtricks-hq.com/ecommerce/integrate-wp-estore-with-software-license-manager-plugin-3731

    November 12, 2018 at 9:55 pm #78791
    morsagmon
    Member

    Thanks, wzp.

    So, I can sell multiple products (forget the variations) for which SLM will generate and send a license key, but I cannot distinguish, on the client side, which product was licensed based on these keys. Can I combine this license mechanism with the serial number feature, in such a way that I’ll have only a single serial code per each product that will be used for ALL purchases of this product, and from the client side use some API (if exists) to query if the provided pair of license key + serial code both belong to the product purchased? or some other way to achieve this? For this approach to work, I need the following:

    a) be able to set only one serial code to be used for ALL purchases per each product.

    b) Have an API to query from the client side about this serial number and make sure that the provided license key belong to the product for which the provided serial key is assigned.

    Any alternative approach you may offer to be able to distinguish the purchased product on the client side?

    November 13, 2018 at 1:50 am #78792
    admin
    Keymaster

    Each license key will have the product reference there. If you are selling via WP eStore then it will have the estore’s product ID. Edit a license key from the admin dashboard and you will see the value in the “Product Reference” field.

    When you query a license key (to check if it is valid), you can also check what product ID this key is for. Then do things accordingly.

    November 13, 2018 at 7:41 am #78793
    morsagmon
    Member

    Ohhhh, I have the Product ID in the JASON stream coming back… Good.

    You need to update your documentation to reflect that, here:

    Software License Manager Plugin for WordPress

    Thanks, admin!

    November 14, 2018 at 6:13 am #78794
    admin
    Keymaster

    Thank you. I have added a section to the documentation.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ