I am unable to add custom tabs to my website and I am looking for a bit of help on how to proceed. The theme controls the tabs within it's own file /template/catalog/product/view/tabs.php so the normal ways seem not to work with it. Can anyone give me a helping hand?
The important part seems to be
<ul class="meigee-tabs">
<?php foreach ($this->getTabs() as $_index => $_tab): ?>
<?php if($this->getChildHtml($_tab['alias'])): ?>
<li id="product_tabs_<?php echo $_tab['alias'] ?>" class="<?php echo !$_index?' active first':''?>"><a href="#"><?php echo $_tab['title']?></a></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php foreach ($this->getTabs() as $_index => $_tab): ?>
<?php if($this->getChildHtml($_tab['alias'])): ?>
<div class="meigee-tabs-content" id="product_tabs_<?php echo $_tab['alias'] ?>_contents"><?php echo $this->getChildHtml($_tab['alias']) ?></div>
<?php endif; ?>
<?php endforeach; ?>
<?php foreach ($custom_tabs as $key) {
if(!empty($key)):
?>
<div class="meigee-tabs-content" id="<?php echo $key; ?>_contents"><?php echo $this->getLayout()->createBlock('cms/block')->setBlockId(trim($key))->toHtml() ?></div>
<?php endif; } ?>
If I was to add a tab to this with the tab header "Manufacturer" and the content pulled a CMS block <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($manu)->toHtml() ?>
My plan is define manufacturer attribute as
<?php $manufacturer = $_product->getAttributeText('manufacturer'); ?>
<?php $manu = strtolower("manufacturer-" . $manufacturer) ;?>
This is so I can then use it to pull an image and static CMS without issues. I just cannot get by the first hurdle...also when I place in <?php $manufacturer = $_product->getAttributeText('manufacturer'); ?>
It gives and error and cuts off the footer.