This topic has 4 replies, 2 voices, and was last updated 10 years, 7 months ago ago by Eva Kemp
Please tell me how places change tab
Hello,
Please refer to woocommerce documentation: http://docs.woothemes.com/document/editing-product-data-tabs/#section-3
Regards,
Eva Kemp.
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; ?>`
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.
The issue related to '‘Change tab?’' has been successfully resolved, and the topic is now closed for further responses