• Resolved woozdigital

    (@woozdigital)


    Hello my friends!

    It’s possible change the order with tabs natives from Woocommerce?

    Actually: Description > Add Info > Custom Tab > Reviews

    What I need: Description > Custom Tab > Add Info > Reviews

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @woozdigital,

    I’m going to copy an answer I gave to a very similar thread (located here: https://wordpress.org/support/topic/reorder-3/).

    You need to use custom code in order to change the order of the tabs.

    This is an example of a code snippet that will move the additional information tab to the behind a tab with the title “Return Policy.”

    add_filter( 'woocommerce_product_tabs', 'yikes_woo_reorder_tabs', 98, 1 );
    
    function yikes_woo_reorder_tabs( $tabs ) {
    
    	if ( isset( $tabs['additional_information'] ) ) {
    		$tabs['additional_information']['priority'] = 10;
    	}
    
    	if ( isset( $tabs['return-policy'] ) ) {
    		$tabs['return-policy']['priority'] = 2;
    	}
    
    	return $tabs;
    }

    Let me know if you have any questions with the code or how to apply it.

    Thank you,
    Kevin.

    For more information, take a look at WooCommerce’s article on this subject: https://docs.woocommerce.com/document/editing-product-data-tabs/#section-3.

Viewing 1 replies (of 1 total)
  • The topic ‘Change Order: Description > Custom Tab > Add Info > Reviews’ is closed to new replies.