【发布时间】:2013-10-16 15:02:32
【问题描述】:
我已经为 magento 使用了 mobileshoppe 主题,并尝试在产品详细信息页面上显示最近查看的产品列表,但有些无法正常工作...
在 catalog.xml 下面添加了代码
<catalog_product_view translate="label">
<reference name="content">
<block type="reports/product_viewed" name="product.recently.viewed" as="product_recently_viewed" template="reports/product_viewed.phtml"/>
</reference>
</catalog_product_view>
以下代码位于 app\design\frontend\default\mobileshoppe\template\catalog\product\ view.phtml
<?php echo $this->getChildHtml('product_recently_viewed') ?>
我用默认主题尝试过同样的方法,但它也不起作用,谁能帮我解决这个问题?
谢谢...
【问题讨论】: