Support » Plugin: License Manager for WooCommerce » Get license to show up in custom thank you page

  • Hi there,

    First of all, thanks for writing this awesome (and free) plugin!
    I’ve been loving how smooth and advanced it works, but I do miss something, or at least don’t know how to get it working.

    I’m using a custom thank you plugin for WooCommerce to show after a order is completed. Is there any way (shortcode) to show the license key linked to the order using your plugin?

    Thanks in advance!

    Kind regards,
    Rick

Viewing 1 replies (of 1 total)
  • Plugin Author Drazen Bebic

    (@drazenbebic)

    Hello @rickvandijck

    Thank you for your message and for using my plugin.

    Currently there is no integration into any other plugins besides WooCommerce. However, what you’re probably looking for is a way to obtain licenses based on an order ID.

    There currently is no shortcode for this, there’s a function which will return all license keys for a specific order ID: lmfwc_get_licenses(). It takes one argument, which is an array of column key/value pairs which will be used in the “WHERE” statement. Example:

    $licenses = lmfwc_get_licenses(array('order_id' => 13));

    This will return all licenses which belong to the order with the ID “13”. Here’s the doc entry: https://www.licensemanager.at/docs/internal-api-docs/functions-reference/lmfwc_get_licenses/

    Let me know if you need further help

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