In magento 1.9.2.4 Product details page, I want to keep a tab
to switch between contents like below:
But already In details page there is default tab (I inherited rwd theme) Like this:
In
app/design/frontend/<package>/<theme>/template/catalog/product/view.phtml
coding for this tab was like this:
<div class="product-collateral toggle-content tabs">
<?php if ($detailedInfoGroup = $this->getChildGroup('detailed_info', 'getChildHtml')):?>
<dl id="collateral-tabs" class="collateral-tabs">
<?php foreach ($detailedInfoGroup as $alias => $html):?>
<dt class="tab"><span><?php echo $this->escapeHtml($this->getChildData($alias, 'title')) ?></span></dt>
<dd class="tab-container">
<div class="tab-content"><?php echo $html ?></div>
</dd>
<?php endforeach;?>
</dl>
<?php endif; ?>
</div>
And in app/design/frontend/<package>/<theme>/layout/catalog.xml
it was like this:
<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
<action method="addToParentGroup"><group>detailed_info</group></action>
<action method="setTitle" translate="value"><value>Description</value></action>
</block>
so In order to keep like this tab I added this code in phtml file:
<div class="details-tab">
<div class="product-collateral toggle-content tabs">
<?php if ($miniDetailedInfoGroup = $this->getChildGroup('detail_info', 'getChildHtml')):?>
<dl id="collateral-tabs" class="collateral-tabs">
<?php foreach ($miniDetailedInfoGroup as $alias => $html):?>
<dt class="tab"><span><?php echo $this->escapeHtml($this->getChildData($alias, 'title')) ?></span></dt>
<dd class="tab-container">
<div class="tab-content"><?php echo $html ?></div>
</dd>
<?php endforeach;?>
</dl>
<?php endif; ?>
</div>
</div>
and added in xml file like this:
<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
<action method="addToParentGroup"><group>detail_info</group></action>
<action method="setTitle" translate="value"><value>Description</value></action>
</block>
But nothing displayed. Someone please help.