0

i want to add custom tab in frontend product detail pages, just next to short desc and want to show some content there, can i do this via

like detail, product tags, review, mycustom tab here

1: admin catalog > catagory custom design

2: via any module ?

i tried below code in custom layout update:

<action method="addTab" module="catalog" translate="title">
    <alias>info</alias>
    <title>Info</title>
    <block>catalog/product_view_attributes</block>
    <template>catalog/product/view/a.phtml</template>
</action>
3
  • magentocommerce.com/magento-connect/… for product page tab but you cant controll product tab from category layout
    – Amit Bera
    Nov 5, 2014 at 19:07
  • yeah but i want to learn how to do it now using any build in module
    – mcoder
    Nov 5, 2014 at 19:38
  • how i can add a class or id to new tab?
    – ale perez
    Oct 21, 2019 at 15:40

1 Answer 1

0

app/design/frontend/default/yourtheme/layout -> catalog.xml in section you need add:

<action method="addTab" translate="title" module="catalog">
    <alias>My New Custom Tab</alias>
    <title>My New Custom Tab</title>
    <block>core/template</block>
    <template>catalog/product/mynewcustomtab.phtml</template>
</action>

in mynewcustomtab.phtml you can output you info

6
  • but i do not want to do changes in code , can i do it via module or add custom design
    – mcoder
    Nov 5, 2014 at 18:27
  • i treid above code but i does not worked
    – mcoder
    Nov 5, 2014 at 22:08
  • above code is not working ???
    – mcoder
    Nov 10, 2014 at 16:27
  • what if i want to show it for configuravble products only ??.
    – mcoder
    Nov 12, 2014 at 6:57
  • can write the condition)
    – John Genry
    Nov 12, 2014 at 8:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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