我已经安装了带有示例数据的 magento 1.9.0.1。尝试通过我的模块的布局 xml 更新布局来向产品页面添加其他选项卡。向我的模块的 xml 添加了以下更改,但它不起作用 - 这意味着我的选项卡未添加到产品页面。
<catalog_product_view>
<reference name="product.info">
<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>Discussions</alias><title>Product Discussions</title>
<block>discussions/discussions</block>
<template>discussions/discussions.phtml</template></action>
</block>
</reference>
</catalog_product_view>
另外,当我查看默认catalog.xml(app/design/frontend/base/default/layout/catalog.xml)时,我看不到任何选项卡块元素,但是当我浏览到产品页面时,有用于描述的默认选项卡,附加信息和评论。试图找到可以配置但没有成功的其他地方。