Support » Plugin: License Keys for WooCommerce » Getting SKU before activation

  • Resolved Geocache Organizer

    (@geocacheorganizer)


    Hi,

    I’ve integrated the API into my C# application. It works fine !

    How it works :
    – the user buy the product via my woocommerce site,
    – the user download the product, because it is virtual and downloadable,
    – the product has a useless but mandatory sku code (ex: FooSku),
    Users have to register the license via a c# form received after buying.
    In the C# code “FooSku” is written.

    I have now a 2nd version off my application and in my woocommerce, a new product and a new sku code FooSku2.
    The product “is the same” but if you bought the 2nd version, more fonctionalities are enable.
    The process is the same.

    My problem is that the user “only” have the license key and not the sku code. So an error is always launched because the coding sku code is not the same as in the woocommerce product.

    Is there a solution to get the product associated with the licence key via an API ? And then with the woocommerce REST API get the good sku code ? I saw on the 10quality site the “Licence Key Data Model” and the wc_get_license_key function but there is no API ? Isn’t it ?

    Thx for your return.

    Regards.

    Éric

Viewing 6 replies - 1 through 6 (of 6 total)
  • Second part of my question.

    Extending the WordPress API to receive the license key with the function wc_get_license_key could be a solution ?

    Plugin Author 10Quality

    (@10quality)

    Would it help if you could send more than 1 sku on the API request?

    Plugin Author 10Quality

    (@10quality)

    We have added validation settings on version 1.3.1.

    Head to “Dashboard” > “WooCommerce” > “Settings” > “Advanced” > “License Keys API” > “API Validations” > “Enable SKU validation”, and turn this validation off.

    By turning this validation OFF, the API will no longer validate SKU as a required parameter and will not cross-check this value with the product purchased.

    This will solve the issue you are experiencing.

    Hi,

    GREAT, GREAT !

    I’ll tried today and make you a return.

    Thx a lot.

    Best regards.

    Éric

    Geocache Organizer

    (@geocacheorganizer)

    Hi,

    Top de chez Top (it’s french that means very good) !

    My code is lighter, better and runs faster now.

    Thx al lot.

    Geocache Organizer

    (@geocacheorganizer)

    Hi,

    To answer to your question : “Would it help if you could send more than 1 sku on the API request?”, I will say no (but it is only my point of view).

    But, for me, the best way to manage SkuCodes and Domains, is to allow the validation per product.

    Example, in a request it could have two new parameters :
    – SkuValidation : Yes/No,
    – DomainValidation: Yes/No.
    If they are not present, the global value validation is used.
    If they are present, the request value is used.

    But, what you’ve developed is large enough for my need.

    One more time thanks a lot. This plugin is very GOOD !

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.