Home Forums WoodMart support forum Add another Additional tab

Add another Additional tab

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #117159

    rifatspir
    Participant

    Can I get any help from here to add another Additional tab ?

    Check the screenshot

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

    Hello,

    You have added everything correctly. What problem do you have? Please clarify the problem.

    One remark: if your delivery terms are common for all the products you would better add the same in the Theme Settings > Product page > Tabs. This tab is globally displayed in all the products and you do not need to enter each product and insert.

    Best Regards

    #117234

    rifatspir
    Participant

    Thanks for reply 🙂

    Actually, I wanted to mean how to add another additional tab that I can add more global tab.

    I got the below code in woocommerce and it solved my problem. I hope it will help other users who want to add more global tab with short-code.

    /**
     * Add a custom product data tab
     */
    add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );
    function woo_new_product_tab( $tabs ) {
    	
    	// Adds the new tab
    	
    	$tabs['test_tab'] = array(
    		'title' 	=> __( 'Change tab title here', 'woocommerce' ),
    		'priority' 	=> 60,
    		'callback' 	=> 'woo_new_product_tab_content'
    	);
    
    	return $tabs;
    
    }
    function woo_new_product_tab_content() {
    
    	// The new tab content
    
    	echo '<h2>Tab Title/h2>';
    	echo do_shortcode( '[html_block id="1234"]' );
    	
    #117306

    Hello,

    Thank you for sharing the information. If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘Add another Additional tab’ is closed to new replies.