Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license keys to order meta data #39

Open
SjogrenDev opened this issue Dec 28, 2023 · 5 comments
Open

Add license keys to order meta data #39

SjogrenDev opened this issue Dec 28, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@SjogrenDev
Copy link

Hi,

This is a feature request to start showing license keys in order meta data for easy access trough WooCommerce rest API.

@gdarko gdarko added the enhancement New feature or request label Feb 20, 2024
@SjogrenDev
Copy link
Author

@gdarko any updates on this?

@gdarko
Copy link
Owner

gdarko commented Oct 12, 2024

Hey @SjogrenDev - I was indecisive about this but in the end I decided to add it. It can be expected in the following releases.

@gdarko gdarko self-assigned this Oct 12, 2024
@SjogrenDev
Copy link
Author

Alright thank you, it will help us developers a lot!

@gdarko
Copy link
Owner

gdarko commented Nov 26, 2024

Hey @SjogrenDev

This is now added. As of 1.7.1. Digital License Manager will sve _dlm_license_id for each order item that generated licenses. Order items that generate multiple licenses will have multiple _dlm_license_id meta.

If there are multiple licenses, the returned value will be array when calling

$orderItem->get_meta('_dlm_license_id');

To add this _dlm_license_id for the past orders, you can go to Settings > Tools and run tool "Add Order Item Licenses" or invoke it via CLI:

wp dlm:add_order_item_licenses

Best Regards,
Darko

@SjogrenDev
Copy link
Author

Hi @gdarko

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants