如何从magento左面板中删除块?

时间:2022-09-24 23:09:12

I have changed magento signup page layout from 1column.phtml to 2columns-left.phtml in customer.xml. I need to display only one block on my magento Signup page left panel. All other blocks should be removed from the page. Currently I am getting three magento's default blocks on my left panel with my custom block. How to remove other blocks using xml? Anyone Please help.

我已将mangero注册页面布局从1column.phtml更改为customer.xml中的2columns-left.phtml。我需要在我的magento注册页面左侧面板上只显示一个块。应从页面中删除所有其他块。目前我的左侧面板上有三个magento的默认块和我的自定义块。如何使用xml删除其他块?任何人请帮助。

3 个解决方案

#1


10  

<remove name="block.name" />

in your layout.xml

在你的layout.xml中

#2


5  

within local.xml

<customer_account_login>
   <remove name="left.permanent.callout" />  

   <remove name="catalog.compare.sidebar" />  <!--product compare-->


   <remove name="left.reports.product.viewed" /> <!--recently viewed prod-->

</customer_account_login>"

this way you can remove whatever blocks you want to.

这样你可以删除你想要的任何块。

#3


1  

For this you have to have use remove tag with name of block in customer.xml in customer_account_login section

为此,您必须在customer_account_login部分的customer.xml中使用具有块名称的remove标记

#1


10  

<remove name="block.name" />

in your layout.xml

在你的layout.xml中

#2


5  

within local.xml

<customer_account_login>
   <remove name="left.permanent.callout" />  

   <remove name="catalog.compare.sidebar" />  <!--product compare-->


   <remove name="left.reports.product.viewed" /> <!--recently viewed prod-->

</customer_account_login>"

this way you can remove whatever blocks you want to.

这样你可以删除你想要的任何块。

#3


1  

For this you have to have use remove tag with name of block in customer.xml in customer_account_login section

为此,您必须在customer_account_login部分的customer.xml中使用具有块名称的remove标记