php - magento add custom tab to frontend product detail page not working -
i tried add together custome tab next product tab in product detail pages not see , how can activate it.
what did
catalog > manage category > add together custom layout update >
add below xml , click apply product
<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs" template="catalog/product/view/tabs.phtml" > <action method="addtab" translate="title" module="catalog"> <alias>description</alias> <title>product description</title> <block>catalog/product_view_description</block> <template>catalog/product/view/mycustomtab.phtml</template> </action> </block>
1) think should add together custom tab product view handle , or specific product via admin manage product.
2) can seek native magento methods this:
<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> <action method="settitle" translate="value"><value>description</value></action> </block>
3) if want utilize method should utilize reference instead of block, 1 time again product
<reference name="product.info.tabs"> <action method="addtab" translate="title" module="tag"> <alias>product.tags</alias> <title>product tags</title> <block>tag/product_list</block> <template>tag/list.phtml</template> </action> </reference>
php magento
No comments:
Post a Comment