Well, I pulled up my sleeves and got to the dirty work myself.
So for anyone who's interested in putting in a tab that is repeated on many (but not all) products, here is the solution that I used.
First, I created the html content for the new tab and saved it as a file in the html includes folder. In my case, I was creating a size chart. So I saved it as:
includes/languages/english/html_includes/apple_zen/define_size_chart.php
I use the apple_zen template. Adapt your code where necessary.
Then I altered the tpp file:
includes/modules/tabbed_products_pro.php
In the Custom Tab - Tab Contents section, find this code:
Code:
if ($bMainImageOnTab == true && $f == 1) {
$tabcontent .= $fmtMainIm; // pre-loaded Main Image
}
Directly after that, insert this code:
Code:
if ( $sName[$f] == "Size Chart" ) {
$tabcontent .= get_include_contents('includes/languages/english/html_includes/apple_zen/define_size_chart.php');
}
The code that was used looks specifically for "Size Chart"
Adapt your code where necessary.
Then find this code:
Code:
function AddHeader ($sHeaderName, $iTabNum, $bHeadersEnabled)
Directly before that line, insert this code:
Code:
function get_include_contents($filename) {
if (is_file($filename)) {
ob_start();
include $filename;
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
return false;
}
Those are all the changes for tabbed_products_pro.php.
Of course, in each product description where I want to display the size chart, I need to use this line:
Code:
<!--%Size Chart%-->
Again, change yours to suit your needs.
I hope this helps some people.
Cheers.

Bookmarks