0
這是一個非常簡單的問題,但我無法解決它。如何將最近查看過的產品框添加到主頁上?
我試過如下:
添加布局XML來更新佈局場在後臺爲這個CMS頁:
<reference name="right">
<block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
</reference>
或local.xml中相同
<cms_index_index>
<reference name="right">
<block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
</reference>
</cms_index_index>
非常感謝,我知道它並不複雜,但我無法得到它。