Home Forums WoodMart support forum TAB order

TAB order

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #526182

    TRT
    Participant

    How can I change this tab, please see attachment

    Attachments:
    You must be logged in to view attached files.
    #526331

    Hello,

    Tabs are Woocommerce functionality and WoodMart does not have the option to change the tabs order.
    Please check this manual:
    https://woocommerce.com/document/editing-product-data-tabs/

    Best Regards.

    #526414

    TRT
    Participant

    Yes I know, my problem is that this specific tab that I showed is created in the woodmart template in product registration as you can see in the image .

    In other words, reverse the order of the standard woocommerce tabs, just enter this code for example, but how do I pull tab 1 to the description side?

    example

    add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
    function woo_reorder_tabs( $tabs ) {
    
    	$tabs['description']['priority'] = 5;		
            $tabs['Kit Completo']['priority'] = 10;			// Kit completo	
    	$tabs['additional_information']['priority'] = 15;
    
    	return $tabs;
    }

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #526509

    Hello,

    You need to take the tab class and set the order:
    https://ibb.co/qCrNCp1

    add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
    
    function woo_reorder_tabs( $tabs ) {
        $tabs['wd_additional_tab'] = array(
            'title'     => __( 'Additional Information', 'woocommerce' ),
            'priority'  => 5,
            'callback'  => 'custom_additional_tab_content', // Replace with your callback function
        );
    
        $tabs['more_seller_product'] = array(
            'title'     => __( 'More Seller Products', 'woocommerce' ),
            'priority'  => 10,
            'callback'  => 'custom_more_seller_product_tab_content', // Replace with your callback function
        );
    
        $tabs['seller'] = array(
            'title'     => __( 'Seller', 'woocommerce' ),
            'priority'  => 15,
            'callback'  => 'custom_seller_tab_content', // Replace with your callback function
        );
    
        $tabs['brand_tab'] = array(
            'title'     => __( 'Brand', 'woocommerce' ),
            'priority'  => 20,
            'callback'  => 'custom_brand_tab_content', // Replace with your callback function
        );
    
        // Add other tabs similarly...
        return $tabs;
    }
    
    // Define the callback functions
    function custom_additional_tab_content() {
        // Your additional tab content goes here
    }
    
    function custom_more_seller_product_tab_content() {
        // Your more seller products tab content goes here
    }
    
    function custom_seller_tab_content() {
        // Your seller tab content goes here
    }
    
    function custom_brand_tab_content() {
        // Your brand tab content goes here
    }

    insert the tab class, change 15 to 20, then 25, then 30 for each tab and set the order for each tab from your product page.

    Best Regards.

    #526523

    TRT
    Participant

    I understand, I’ve seen it…
    Thank you for your help

    #526645

    Sounds Great! that your issue has been solved.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘TAB order’ is closed to new replies.