I have created an attribute with "Product Details" as Textarea in admin panel.
Now I need to make it display as "Product Details" next to description tab in product detail page for each and every product.
Any suggestions please.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI have created an attribute with "Product Details" as Textarea in admin panel.
Now I need to make it display as "Product Details" next to description tab in product detail page for each and every product.
Any suggestions please.
Just add this code after Description
block in catalog.xml
files
<block type="catalog/product_view_attributes" name="Your_attribute_name" as="additional" template="catalog/product/view/attributes.phtml">
<action method="addToParentGroup"><group>detailed_info</group></action>
<action method="setTitle" translate="value"><value>Your tab name</value></action>
</block>
you can add in the above way for any number of tabs needed hope this helps.
catalog.xml
in theme's layout ofcourse yes editing in local.xml
is best thing forever.
app/design/frontend/*/default/layout/*.xml
files. By copying these files from base/default or rwd/default to you're local theme you are losing ALL upgrade instructions from an ENTIRE core module when you perform Magento upgrades. If this is what you're looking for then edit away. There isn't anything in these files that cannot be appended to / modified / removed with instructions from local.xml.
Jan 17, 2015 at 17:12
Create the file app/frontend/design/{packageName}/{themeName}/layout/local.xml
if it does not exist already.
Note: {packageName} is most likely "default" or "rwd", depending on your site setup. {themeName} should be a folder you created to use as the theme for your site, which extends the "default" theme.
In that local.xml file, include the following: (If this file already exists for you, just add the contents within the 'catalog_product_view' layout handle).
<?xml version="1.0"?>
<layout>
<catalog_product_view>
<reference name="product.info">
<block type="catalog/product_view_attributes" name="product_details" template="catalog/product/view/attributes.phtml">
<action method="addToParentGroup"><group>detailed_info</group></action>
<action method="setTitle" translate="value"><value>Product Details</value></action>
</block>
</reference>
</catalog_product_view>
</layout>