Try the Demo

Magento Forum

   
How to move mini cart to header in magento 1.7 CE
 
Ikko Buko
Member
 
Avatar
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
Guru
 
Total Posts:  644
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

 Signature 

MagenX - Magento and Nginx Performance Tuning Services
FPC InstallationMySQL TuningServer Optimizationnow 90 days Support included
http://www.magenx.com | | magento nginx config: http://nginxconfig.com || magento mysql settings -> my.cnf

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ikko Buko
Member
 
Avatar
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
Magento Community
Magento Community
    Back to top