Reputation: 51
I am new magento. I try to play around structure block and content block. when I try to move "My Cart" block from right side to header section. It doesn't work. but once I move another block it works. ex:
<reference name="header">
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
this's work (it show on top page) but when I change reference to "head", this block just disappear. Please guild me.
here's the screenshot that I want.
http://awesomescreenshot.com/0002ivnb10
Upvotes: 0
Views: 284
Reputation: 421
You have to render the block manually by:
<?php echo $this->getChildHtml('extra_actions'); ?>
in cart phtml template file
Header, head & cart blocks are not core/text_list blocks means they will not render their children automatically
Upvotes: 1