8

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.

  • Can you please show catalog.xml code thus i can check – Amit Bera Jan 9 '15 at 7:48
  • which theme you use? which version of magento? are u using easytabs extension or u r using ur custom theme? – Pavan Kumar Jan 9 '15 at 7:55
  • <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> </block> – Raj Jan 9 '15 at 8:42
  • I am using SNS Toronto and not using any extensions. Magento version is 1.9.1 – Raj Jan 9 '15 at 8:45
  • I want to add a tab similar to what Description does. – Raj Jan 9 '15 at 8:48
11

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.

  • @dh47 catalog.xml should not be edited directly, this should go in local.xml – Darren Felton Jan 16 '15 at 15:14
  • @Meogi we can edit catalog.xml in theme's layout ofcourse yes editing in local.xml is best thing forever. – dh47 Jan 17 '15 at 4:01
  • @dh47 Yes you "can" edit it these files however you're asking for upgrade issues by editing any 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. – Darren Felton Jan 17 '15 at 17:12
  • @dh47 Unknowingly did it. Recasting my vote. – Raj Jan 23 '15 at 9:22
  • Also see the comment @Meogi posted – Raj Jan 23 '15 at 9:23
4

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>

protected by Community Feb 13 '18 at 7:28

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.