2016-06-12 114 views

回答

0

你的主题模板打开reports.xml。 (应用程序\设计\前台\主题\默认\布局\ reports.xml) 会有这样的代码

<block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" /> 

删除,清除缓存并刷新

0

尝试删除相关产品从阻止<catalog_product_view>的catalog.xml文件:

<reference name="right"> 
    <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/> 
</reference> 

删除块:

<block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/> 
0

尝试在您的商店中查找已查看的产品说明。然后,在yout主题的 local.xml中,使用正确的句柄将其从想要的部分中删除。

例如,如何删除产品图片Magento的基本主题默认指令:

<catalog_product_view> 
     <remove name="right.reports.product.viewed" /> 
    </catalog_product_view> 

下一个例子是我从我的店里,这是基于一个不同的主题删除它:

<catalog_product_view> 
     <remove name="product.info.viewed" /> 
    <catalog_product_view> 

清除缓存,你很好走!

这是推荐的方法。您应该避免复制或修改原始XML布局文件。请始终使用您的主题local.xml文件。

相关问题