Home Forums WoodMart support forum Setup Product describtion Tabs on Single product page

Setup Product describtion Tabs on Single product page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #606366

    prof.schnecki
    Participant

    I have description, more information and review tab on product single page.
    At Theme Setting-Single Product-Tabs i named a new tab called Collection Description.
    But i need different content for different Products in this Tab!
    Where can i setup different content for a tab here?

    And i need to change the order as they appear.

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

    Hung Pham
    Keymaster

    Hello prof.schnecki,

    Thanks for reaching to us.

    Try to use the code below instead of yours. Define the code in the functions.php file in your child theme.

    /**
     * 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
    
    	// Custom Tabs are from Product Settings
    	// $tabs['wd_custom_tab']['priority'] = 2; 
    	// $tabs['wd_custom_tab_2']['priority'] = 3;
    
    	// Additional Tabs are from Theme Settings
    	// $tabs['wd_additional_tab']['priority'] = 4;
    	// $tabs['wd_additional_tab_2']['priority'] = 5;
    
    	return $tabs;
    }

    Kind Regards

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