Hey - I don't know if anyone will find this usefull or not but I found a way to add tabs beside the Description tab and then populate them with custom fields which I add on the edit product page. The custom field will support shortcodes as well and the tab will not display if it is empty. Anyway, I had tried the info mentioned above but the link no longer works. Here is what I did ....
(now if only we could get away with adding new tabs and content in the product data box itself instead of using custom fields)
STEP 1
For each new Tab that you want you need to create 2 new pages. (My example below is creating a "Specifications" Tab)
Create new files here ... /plugins/woocommerce/templates/single-product/tabs/
One is for the Tab Label the other is for the Tab Content.
specifications.php <-contains tab contents
<?php
/**
* Specifications Tab
*/
global $woocommerce, $post;
$meta_content = apply_filters('the_content', get_post_meta($post->ID, 'specifications', true));
?>
<div class="panel" id="tab-specifications">
<?php $heading = apply_filters('woocommerce_product_specifications_heading', __('Product Specifications', 'woocommerce')); ?>
<h2><?php echo $heading; ?></h2>
<?php echo $meta_content; ?>
</div>
tab-specifications.php <-contains actual tab label text
<?php
// Get Custom Field "specifications" meta data and hide tab if empty
global $woocommerce, $post;
$meta_content = apply_filters('the_content', get_post_meta($post->ID, 'specifications', true));
if (!empty($meta_content)) { ?>
<li><a href="#tab-specifications"><?php _e('Specifications', 'woocommerce'); ?></a></li>
<?php } ?>
STEP 2
Add your tabs to the woocommerce template here ... /plugins/woocommerce/woocommerce-template.php
Starting at line 375 you should see function definitions for "Product page tabs" and "Product page tab panels".
Add your new tab and panel there ....
// THIS IS MY NEW SPECIFICATIONS TAB
if (!function_exists('woocommerce_product_specifications_tab')) {
function woocommerce_product_specifications_tab() {
woocommerce_get_template('single-product/tabs/tab-specifications.php');
}
}
// THIS IS MY NEW SPECIFICATIONS PANEL
if (!function_exists('woocommerce_product_specifications_panel')) {
function woocommerce_product_specifications_panel() {
woocommerce_get_template('single-product/tabs/specifications.php');
}
}
STEP 3
Add hooks to your new tabs here ... /plugins/woocommerce/woocommerce-hooks.php
Starting at line 73, add your backticks in the "Product page tabs" sections
add_action( 'woocommerce_product_tabs', 'woocommerce_product_specifications_tab', 40 );
add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_specifications_panel', 40 );
STEP 4
Edit your product and "Add New Custom Field" and its "Value"
That is it - you should be done!