• Resolved rajnishk

    (@rajnishk)


    Hi,

    I want to change the order in which the information is displayed. I got the following code snipped from woocommerce:

    /**
    * Reorder product data tabs
    */
    add_filter( ‘woocommerce_product_tabs’, ‘woo_reorder_tabs’, 98 );
    function woo_reorder_tabs( $tabs ) {

    $tabs[‘reviews’][‘priority’] = 5; // Reviews first
    $tabs[‘description’][‘priority’] = 10; // Description second
    $tabs[‘additional_information’][‘priority’] = 15; // Additional information third

    return $tabs;
    }

    Could you please tell me what identifier should I use instead of ‘additional_information’ so as to access tab?

    Thanks,

    Rajnish

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dotstore

    (@dots)

    Hello @rajnishk,

    Thanks for reaching out to us.

    You need to add below line for set the priority.

    $tabs[‘wcpoa_product_tab’][‘priority’] = 2; // Additional information third

    Which will display the first tab as a attachment information.

    I hope this helps.

    Thanks,

    Plugin Author Dotstore

    (@dots)

    Hello @rajnishk,

    Greetings!!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reorder’ is closed to new replies.