这个问题与我的previous question有关。我希望“最近浏览”部分显示我(作为访问者)最近查看的产品。那样的话,每个访问者都会在该部分看到他们最近浏览过的产品。
是否magento为此功能提供任何默认功能或者我必须按照我在上一个问题中提到的方式来执行此操作。Magento:显示游客最近浏览的产品
1
A
回答
2
是Magento的有它的默认功能 转到app/design/frontend/default/(yourtheme)/tempalte/reports
文件夹
如果你不能看到该文件夹中的主题时,只要将其复制并保存到你的主题文件夹
可以使用以下代码布局以显示文件
<block type="reports/product_viewed" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
要在CMS网页(主页)调用
{{block type="reports/product_viewed" name="left.reports.product.viewed" template="reports/product_viewed.phtml"}}
要呼叫PHTML文件
<?php echo $this->getLayout()->createBlock('reports/product_viewed')->setTemplate('reports/product_viewed.phtml')->tohtml(); ?>
1
yes , you can by simply use this
<cms_index_index>
<reference name="content">
<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
</cms_index_index>
相关问题
- 1. 目录产品浏览页面未显示magento中的特定产品?
- 2. Magento:缺货中显示产品类别页最后的产品
- 3. 类别/产品浏览量Magento
- 4. Magento - 显示个别产品
- 5. Magento - 最近浏览获取缓存
- 6. Magento:将“最近浏览”移动到产品页面会产生奇怪的缓存错误
- 7. Magento的1.4 - 显示所有产品
- 8. Magento显示空的分组产品
- 9. Magento - 显示所有产品的总价
- 10. 如何显示特定数量的产品为客人在magento
- 11. 最近购买的产品
- 12. 最近查看的产品在产品列表页面的底部-magento
- 13. Magento - 如何创建链接按产品品牌浏览
- 14. Magento的相关产品没有显示产品页面
- 15. 如何删除产品页面中最近查看过的产品magento
- 16. 如何更改Bigcommerce最近查看的产品显示选项?
- 17. WordPress Woocommerce:按随机顺序显示最近的产品
- 18. 最近查看过的产品没有显示
- 19. 根据客户群(Magento)显示自定义产品属性
- 20. Magento的1.7让游客选择隐藏脱销产品
- 21. Magento按类别显示产品
- 22. 在list.phtml中显示产品属性 - Magento
- 23. 下载Magento Frontpage显示所有产品
- 24. Magento - 在后台显示产品费用
- 25. Magento:捆绑产品不显示选项
- 26. 产品未显示在前端magento
- 27. magento bundle产品显示为缺货
- 28. Magento Pager没有显示在产品list.phtml
- 29. Magento 2产品集合显示查询
- 30. 显示商店特定产品magento
救了我一小时 谢谢! –