• Resolved amaratio

    (@amaratio)


    Hello everyone,
    I’m trying to change the location of the ‘Your Licence Keys’ element on the thank you page.

    So the current structure of that page is

    1. Order Details
    2. Licence Keys
    3. Invoice Details

    Is there a way of placing the licence keys element before or after the other elements?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mobi5533

    (@mobi5533)

    Hi @amaratio,

    Thank you for contacting WpExperts Support team!

    We’ll let the technical team know and see if we can provide you with a hook to change the location for your License Key

    Thank You

    Plugin Support mobi5533

    (@mobi5533)

    Hi @amaratio ,

    I apologies for the delay response, To change the position of the “Your Licence Keys” element on the thank you page, you can use the following code snippet. This will remove the Licence Keys from its current location and place it after the “Order Details” or any other desired position on the page.

    Add this code to your theme’s functions.php file

    add_action('wp_loaded', function () {
    // Remove all actions from 'woocommerce_order_details_after_order_table' hook
    remove_all_actions('woocommerce_order_details_after_order_table');

    // Ensure the action only runs once
    add_action('woocommerce_thankyou', function($order_id) {
    // Create an instance of the Order class and call the showBoughtLicenses method
    (new LicenseManagerForWooCommerce\Integrations\WooCommerce\Order())->showBoughtLicenses($order_id);

    }, 10);
    }, 100)

    Note: Use the updated plugin in the attachment. Link

    Plugin Support mobi5533

    (@mobi5533)

    Hi @amaratio

    I hope you’re doing well! We just wanted to check in to see if your issue has been resolved or if you need any further assistance from our side.

    For the sake of keeping things organized, this ticket will close automatically in 24 hours due to inactivity. However, if you still need support or have any additional questions, don’t hesitate to reach out. You can easily reopen the ticket or start a new one, and we’ll be more than happy to assist.

    Thank you, and we’re here if you need us!

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