Magento: Merge Product Description and Add Information
I am using a modern theme that separates all information from the tabs.
I want to merge some of the tabs as visitors hate clicks.
Spent hours searching, but can't get what really works.
Here is an example of what I want to achieve.
http://www.teasta.com/chocolate-mint-rooibos-herbal-tea-4oz-tin.html
You can see the description appearing above the additional information (attributes)
How do I do this in Magento 1.7.0?
Thank.
source to share
To remove additional information, paste a comment in the following code from the directory. 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>
To display additional information in the product description Insert the following code into the
"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 !!
source to share
As far as I know, tabs are added via the xml layout (see the .xml directory) to your package using the "addTab" method.
Example:
<action method="addTab" translate="title" module="catalog"><alias>upsell_products</alias><title>We Also Recommend</title><block>
You can comment out this line in catalog.xml file and edit app/design/frontend/your_package/default/catalog/product/view.phtml
and repeat the required information;)
source to share
My settings were inside /app/design/frontend/mytheme/default/layout/local.xml changing what's inside the header 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>
source to share