Support » Plugin: License Manager for WooCommerce » Customization

  • Resolved bilal1987

    (@bilal1987)


    Hi dear, as we have discussed earlier regarding changing the word License Keys to Custom Wording and I managed to edit the Hard Coded words but after update, it is Not allowing me and there is no such option to rename the template wording Your License Key(s) to my custom wording
    Please help me

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

    (@drazenbebic)

    Hello @bilal1987,

    thanks for your message.

    The filter you’re looking for is called lmfwc_license_keys_table_heading. You just need to hook into it and return whatever text you want. Example for the function.php file:

    function custom_license_keys_heading_text($heading) {
        return 'Here are your super cool coupons!';
    }
    add_filter('lmfwc_license_keys_table_heading', 'custom_license_keys_heading_text');

    Please let me know if it works!

    Thanks for great support. It worked perfect for Order Page but can you please guide about Email Template..
    Thanks in advance

    Plugin Author Drazen Bebic

    (@drazenbebic)

    Hmm, it should work for the email template as well.

    I’m writing up a small patch to be released today. I’ll fix this so the same hook works everywhere.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    Hello @bilal1987,

    I couldn’t recreate the problem. I put the filter in the functions.php of my theme file and it worked even in emails. This is the code I used:

    function foo($text) {
    	return 'Your coupon codes are right here';
    }
    add_filter('lmfwc_license_keys_table_heading', 'foo');

    Maybe it would help if you set the priority parameter in the add_filter() function to 1?

    Superb!!
    Just need to ask one thing if possible

    Is there any possibility to Issue a Replacement Code for an existing order…

    Regards

    Plugin Author Drazen Bebic

    (@drazenbebic)

    Hello @bilal1987!

    Not yet, but I’ll add a feature which will make this possible.

    You will be able to add, edit, and remove license keys from orders. Once you are done you can resend the license keys to the customer (this part is already implemented).

    hmm… nice.. currently i send the key manually and disable it …

    Plugin Author Drazen Bebic

    (@drazenbebic)

    Alright, then I’m marking this topic as resolved.

    If you need any further assistance let me know.

    Need to ask one thing if you would like to answer.
    When i tried to modify an order (Status : On hold) by Removing a Product which has certain Key attached with it and want to Add another instance of same product, it Shows only the Existing one and Not the New one which can help me Replacement of the code for same Order.
    Is there any Logical Restriction or this behavior can be changed to allow the Fresh Instance of the same product would be allowed to add in an order.
    Regards

    Plugin Author Drazen Bebic

    (@drazenbebic)

    Hello @bilal1987,

    I’m not sure if I understood your scenario correctly, let’s walk through it again.

    1. You removed a product from an order
    2. You added the same product back
    3. The license key didn’t change, but it should have(?)

    You wanted to issue a replacement license key for the order if I understood correctly, am I right?

    yes of course.. but currently it is issuing same key

    or if there would be an option to replace the key directly instead of replacing the product itself… if possible. then it would be more appropriate.

    Thanks in advance.

    Plugin Author Drazen Bebic

    (@drazenbebic)

    The next update will remove all the current limitations on sold license keys.

    You’ll be able to edit and delete a license key which already belongs to an order, no problem.

    I’m also working on a detailed plugin documentation, which will be released at the same time as the new update.

    Superb..thanks..

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