Change tab? - by djani1978 - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 10 years, 7 months ago ago by Eva Kemp

  • Avatar: djani1978
    djani1978
    Participant
    May 5, 2014 at 16:26

    Please tell me how places change tab

    help

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    May 5, 2014 at 20:09

    Hello,

    Please refer to woocommerce documentation: http://docs.woothemes.com/document/editing-product-data-tabs/#section-3

    Regards,
    Eva Kemp.

    Avatar: djani1978
    djani1978
    Participant
    May 10, 2014 at 19:32

    Here’s how I decided to question swap places tabs
    in file tabs.php have to beat to make changes

    <?php foreach ( $tabs as $key => $tab ) : ?>
    			<a href="#tab_<?php echo $key ?>" id="tab_<?php echo $key ?>" class="tab-title"><?php echo apply_filters( 'woocommerce_product_' . $key . '_tab_title', $tab['title'], $key ) ?></a>
    			<div class="tab-content" id="content_tab_<?php echo $key ?>">
    				<?php call_user_func( $tab['callback'], $key, $tab ) ?>
    			</div>
    		<?php endforeach; ?>
    		
            <?php if (etheme_get_custom_field('custom_tab1_title') && etheme_get_custom_field('custom_tab1_title') != '' ) : ?>
                <a href="#tab_7" id="tab_7" class="tab-title"><?php etheme_custom_field('custom_tab1_title'); ?></a>
                <div id="content_tab_7" class="tab-content">
            		<?php echo do_shortcode(etheme_get_custom_field('custom_tab1')); ?>
                </div>
            <?php endif; ?>	

    after change

    `
    <?php if (etheme_get_custom_field(‘custom_tab1_title’) && etheme_get_custom_field(‘custom_tab1_title’) != ” ) : ?>
    <a href=”#tab_additional_information” id=”tab_additional_information” class=”tab-title”><?php etheme_custom_field(‘custom_tab1_title’); ?></a>
    <div id=”content_tab_additional_information” class=”tab-content”>
    <?php echo do_shortcode(etheme_get_custom_field(‘custom_tab1’)); ?>
    </div>
    <?php endif; ?>

    <?php foreach ( $tabs as $key => $tab ) : ?>
    <a href=”#tab_<?php echo $key ?>” id=”tab_<?php echo $key ?>” class=”tab-title”><?php echo apply_filters( ‘woocommerce_product_’ . $key . ‘_tab_title’, $tab[‘title’], $key ) ?></a>
    <div class=”tab-content” id=”content_tab_<?php echo $key ?>”>
    <?php call_user_func( $tab[‘callback’], $key, $tab ) ?>
    </div>
    <?php endforeach; ?>`

    Avatar: Eva
    Eva Kemp
    Support staff
    May 11, 2014 at 17:22

    Hello,

    That’s great the issue has been fixed.
    Thank you for letting us know.

    If you have any questions don’t hesitate to contact us.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Change tab?’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.