我正在使用NWDTHEMES的Ultratabs扩展,我从xml文件中得知的是它删除了Magento的默认选项卡并将其放在一个名为content的块中。
编辑:我想将当前产品标签从其他所有内容移到add-to-wishlist块的正下方。比如http://fyringe.com/index.php/whats-new-13/farlap-shirt-ruby.html
我已经按照扩展作者的指示调整了XML,但没有成功。有人可以帮帮我吗?
XML文件的内容:
<ultratabs_catalog_product_view>
<remove name="product.info.tabs" />
<reference name="product.info">
<action method="unsetChild"><name>description</name></action>
<action method="unsetChild"><name>additional</name></action>
<action method="unsetChild"><name>upsell_products</name></action>
<action method="unsetChild"><name>reviews</name></action>
<action method="unsetChild"><name>related_products</name></action>
<action method="unsetChild"><name>product_tag_list</name></action>
</reference>
<reference name="right">
<action method="unsetChild"><name>catalog.product.related</name></action>
</reference>
<reference name="product.info.additional">
<action method="unsetChild"><name>product_tag_list</name></action>
</reference>
<reference name="content">
<block type="ultratabs/ultratabs" name="product.info.ultratabs" as="ultratabs" after="-">
<action method="setTemplate" ifconfig="ultratabs_options/general/enabled"><template>nwdthemes/ultratabs/tabs.phtml</template></action>
<action method="addTab" translate="title" module="catalog" ifconfig="ultratabs_options/general/description_enabled">
<alias>description</alias>
<title>Description</title>
<block>catalog/product_view_description</block>
<template>catalog/product/view/description.phtml</template>
</action>
<action method="addTab" translate="title" module="catalog" ifconfig="ultratabs_options/general/additional_enabled">
<alias>additional</alias>
<title>Additional Information</title>
<block>catalog/product_view_attributes</block>
<template>catalog/product/view/attributes.phtml</template>
</action>
<action method="addTab" translate="title" module="catalog" ifconfig="ultratabs_options/general/upsell_enabled">
<alias>upsell</alias>
<title>We Also Recommend</title>
<block>catalog/product_list_upsell</block>
<template>catalog/product/list/upsell.phtml</template>
</action>
<action method="addTab" translate="title" module="catalog" ifconfig="ultratabs_options/general/related_enabled">
<alias>related</alias>
<title>Related Products</title>
<block>catalog/product_list_related</block>
<template>nwdthemes/ultratabs/related_tab.phtml</template>
</action>
<action method="addTab" translate="title" module="tag" ifconfig="ultratabs_options/general/tags_enabled">
<alias>tags</alias>
<title>Tags</title>
<block>tag/product_list</block>
<template>tag/list.phtml</template>
</action>
<action method="addTab" translate="title" module="catalog" ifconfig="ultratabs_options/general/review_enabled">
<alias>review</alias>
<title>Reviews</title>
<block>review/product_view_list</block>
<template>nwdthemes/ultratabs/review_tab.phtml</template>
</action>
<block type="review/form" name="product.review.form" as="review_form" />
</block>
</reference>
</ultratabs_catalog_product_view>
任何帮助将不胜感激!谢谢!
答案 0 :(得分:0)
您需要检查此行
<action method="unsetChild"><name>description</name></action>
<action method="unsetChild"><name>additional</name></action>
<action method="unsetChild"><name>upsell_products</name></action>
<action method="unsetChild"><name>reviews</name></action>
<action method="unsetChild"><name>related_products</name>/action>
<action method="unsetChild"><name>product_tag_list</name>/action>
您需要使用以下
更改以上行 <action method="setChild"><name>description</name></action>
<action method="setChild"><name>additional</name></action>
<action method="setChild"><name>upsell_products</name></action>
<action method="setChild"><name>reviews</name></action>
<action method="setChild"><name>related_products</name></action>
<action method="setChild"><name>product_tag_list</name></action>
刷新缓存后检查