• Resolved lybrajs

    (@lybrajs)


    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 5 replies - 1 through 5 (of 5 total)
  • M Haseeb

    (@haseeb0001)

    @lybrajs Hi

    I hope you are doing well.

    Sorry at the moment in our plugin, there is no option to change the location of the license key tab, you can get your developer help to do this customization and achieve this.

    Thanks

    Thread Starter lybrajs

    (@lybrajs)

    Hello @haseeb0001,

    Thank you for your reply. My initial approach was to achieve the solution programmatically. I searched through the plugins to find a specific location where maybe an action is called on a WooCommerce hook, which I could then remove and add to another hook, specifically the ‘woocommerce_order_details_after_order_table’ hook.

    Do you have any suggestions on how I could achieve this?

    Thank you.

    M Haseeb

    (@haseeb0001)

    @lybrajs let me discuss it with my team and get back to you soon.

    Thread Starter lybrajs

    (@lybrajs)

    @haseeb0001 Just saw that now, thanks a lot!

    M Haseeb

    (@haseeb0001)

    @lybrajs

    Use this code and change then location of your license keys tab.

    add_filter( ‘woocommerce_account_menu_items’, ‘misha_menu_links_reorder’ );

    function misha_menu_links_reorder( $menu_links ){
    return array( ‘view-license-keys’ => ( ‘License Keys’, ‘woocommerce’ ), ‘dashboard’ => ( ‘Dashboard’, ‘woocommerce’ ), ‘downloads’ => ( ‘My Files’, ‘mishadomain’ ), ‘orders’ => ( ‘Orders’, ‘woocommerce’ ), //’edit-address’ => ( ‘Addresses’, ‘woocommerce’ ), ‘edit-account’ => ( ‘Account details’, ‘woocommerce’ ), ‘customer-logout’ => __( ‘Logout’, ‘woocommerce’ ) );

    }

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Location of Licence Keys on Thank You Page’ is closed to new replies.