Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to move mini cart to header in magento 1.7 CE
 
asdf asdff
Member
 
Total Posts:  32
Joined:  2009-09-23
 

Hi,

I’m having trouble in moving the mini cart from sidebar to header. I’ve tried all the tutorials available in the internet but it doesn’t work.

I also tried adding this in the header block of layout\page.xml

<block type="checkout/cart_sidebar" name="cart_sidebar" as="topcart" template="checkout/cart/sidebar.phtml"

And then in my page\html\header.phtml, I use the code below to call the cart but nothing happened.

<?php echo $this->getChildHtml('topcart'); ?>

The solution above works in magento 1.6, but not in version 1.7

Thanks in advance guys

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagenX
Enthusiast
 
Total Posts:  791
Joined:  2008-05-26
Dublin
 

best way to understand how it works (in any version anyway)
get theme with cart in header.
take a look at files, and you will see whats going on.

there are lots of packages , use google :0

 
Magento Community Magento Community
Magento Community
Magento Community
 
asdf asdff
Member
 
Total Posts:  32
Joined:  2009-09-23
 

I think the key to master this magento theming is to be familiar with its XML layout system.

There’s a good resources here http://magebase.com/magento-tutorials/demystifying-magentos-layout-xml-part-1/

I’ve made it work now, thanks for the reply.

 
Magento Community Magento Community
Magento Community
Magento Community
 
baspol
Jr. Member
 
Total Posts:  5
Joined:  2013-01-14
 

And how did you manage that?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top