Do not delete block I switch the display of Wishlist_Sidebar from right to left using the following codes, ...">

Magento: <action method = "unsetChild"> Do not delete block

I switch the display of Wishlist_Sidebar from right to left using the following codes, but the sidebar remains in the right and left sidebars.

 <reference name="right"> <action method="unsetChild"><name>wishlist_sidebar</name></action> //..... </reference> <reference name="left"> <action method="insert"><blockName>wishlist_sidebar</blockName></action> </reference> 

How to solve this problem

+7
source share
1 answer

I think the unsetChild function can work using an alias ( as attribute, not name attribute). Try using ...

 <reference name="right"> <action method="unsetChild"><name>wishlist</name></action> //..... </reference> 
+24
source

All Articles