Magento: Merge Product Description and Addition Information Tab

前端 未结 3 1795
离开以前
离开以前 2020-12-16 08:40

I am using Modern theme which separates all information into tabs.

I want to merge some of the tabs as visitors hate clicking.

Spent hours searching but can\

相关标签:
3条回答
  • 2020-12-16 09:17

    For Remove Additional Information Tab comment following code from catalog.xml

    <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>  
    

    For display Additional Information in Product Description Tab paste following code in
    "catalog/product/view/description.phtml" file.

    <?php echo $this->getLayout()->createBlock('catalog/product_view_attributes', '', array('template'=> 'catalog/product/view/attributes.phtml'))->toHtml(); ?>
    

    Best Luck !!

    0 讨论(0)
  • 2020-12-16 09:26

    As far as I know the tabs are added via the layout xml (see catalog.xml) in your package by the method "addTab".

    Example:

    <action method="addTab" translate="title" module="catalog"><alias>upsell_products</alias><title>We Also Recommend</title><block>
    

    You could comment that line in catalog.xml and edit app/design/frontend/your_package/default/catalog/product/view.phtml and echo the information you want ;)

    0 讨论(0)
  • 2020-12-16 09:26

    My settings were inside /app/design/frontend/mytheme/default/layout/local.xml changing what's inside the title tags

    <block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs" template="catalog/product/view/tabs.phtml" >
    
                <!-- Product description -->
                <action method="addTab" translate="title" module="catalog"><alias>description</alias><title>Description</title><block>catalog/product_view_description</block><template>catalog/product/view/description.phtml</template></action>
    
                <!-- Product attributes -->
                <action method="addTab" translate="title" module="catalog"><alias>additional</alias><title>Specifications</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action>
    
    0 讨论(0)
提交回复
热议问题