【发布时间】:2012-05-02 14:18:55
【问题描述】:
我正在使用 Magento CE 1.6.2 并安装了一个扩展程序,该扩展程序显示“其他客户也购买了”,该扩展程序正好显示在选项卡下方。
现在我想将“最近浏览的产品”定位在产品页面的底部,就在页脚之前。
所以我想要这样的东西
Tabs
'other customers also bought'
'Recently Viewed products'
Footer Starts here...
但由于某种原因,我的“其他客户也购买了”与“最近浏览的产品”重叠
我尝试更改布局文件但没有成功
其他客户的布局文件也购买了otherbought.xml
<catalog_product_view>
<reference name="content">
<block type="relatedproducts/relatedproducts" name="catalog.product.awrelated.community" as="othersbought_products" after="info_tabs" template="catalog/product/list/awrelated.phtml">
<action method="setTarget">
<alias>community</alias>
</action>
</block>
</reference>
</catalog_product_view>
最近查看产品的布局报告.xml
<catalog_product_view translate="label">
<reference name="content">
<block type="reports/product_viewed" name="right.reports.product.viewed" as="recently_viewed" template="reports/product_viewed.phtml" />
</reference>
</catalog_product_view>
对于标签,我使用的是 EasyTabs 扩展,easytabs.xml
<reference name="product.info.additional">
<action method="unsetChild" ifconfig="easy_tabs/general/tagstabbed"><name>product_tag_list</name></action>
<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs">
<action method="setTemplate" ifconfig="easy_tabs/general/enabled"><template>easytabs/tabs.phtml</template></action>
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/descriptiontabbed"><alias>description_tabbed</alias><title>Description</title><block>catalog/product_view_description</block><template>easytabs/description.phtml</template></action>
</block>
</reference>
我猜before 或after 元素可以使用,但它不起作用。或者如果有什么方法可以直接在产品页面底部的页脚之前显示“最近浏览的产品”?
谢谢
【问题讨论】:
标签: php xml zend-framework magento