product tab as like modren theme in default theme

Magento is a feature rich e-commerce solution offering complete flexibility and control over the look, content and functionality of an online store.

product tab as like modren theme in default theme

Postby skimtiaz on Mon Mar 08, 2010 8:25 pm

To show modern type product tab in default theme we have to flow some procedure:
Copy and paste this code at line no:195 just below this tag : <block type="core/text_list" name="alert.urls" as="alert_urls" />

Code: Select all
<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs" template="catalog/product/view/tabs.phtml" >
                    <action method="addTab" translate="title" module="catalog"><alias>description</alias><title>Product Description</title><block>catalog/product_view_description</block><template>catalog/product/view/description.phtml</template></action>
               <action method="addTab" translate="title" module="catalog"><alias>additional</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action>
               <action method="addTab" translate="title" module="catalog"><alias>review</alias><title>Product's Review</title><block>review/product_view_list</block><template>review/product/view/list.phtml</template></action>
                    <action method="addTab" translate="title" module="catalog"><alias>upsell_products</alias><title>We Also Recommend</title><block>catalog/product_list_upsell</block><template>catalog/product/list/upsell.phtml</template></action>
                </block>

We also need these file in responding folder otherwise it shows fatal error; files are description.phtml, attributes.phtml, list.phtml, upsell.phtml all these file are found in attached file with this post.

Second phase is copy and paste this code:
Code: Select all
<?php echo $this->getChildHtml('info_tabs') ?>
where just instead of this code (remove this codes and paste the above code) in template/catalog/product/view.phtml
Code: Select all
<div class="product-collateral">
        <?php if ($_description = $this->getChildHtml('description')):?>
            <div class="collateral-box">
                <div class="head">
                    <h4><?php echo $this->__('Product Description') ?></h4>
                </div>
                <?php echo $_description ?>
            </div>
        <?php endif;?>
        <?php if ($_additional = $this->getChildHtml('additional')):?>
            <div class="collateral-box">
                <div class="head">
                    <h4><?php echo $this->__('Additional Information') ?></h4>
                </div>
                <?php echo $_additional ?>
            </div>
        <?php endif;?>
        <?php echo $this->getChildHtml('upsell_products') ?>
        <?php echo $this->getChildHtml('product_additional_data') ?>
    </div>
Attachments
tab.rar
(4.72 KiB) Downloaded 22 times
skimtiaz
 
Posts: 6
Joined: Mon Oct 19, 2009 4:00 pm

Return to Magento

Who is online

Users browsing this forum: No registered users and 1 guest

cron