Moving Magento mini-cart To Header

Moving Mini-cart to header in magento is really simple you just need to change your xml and place the magento getChildHtml() function in header section and you are done with it. below are steps by which we can move mini cart.

Step1. Open checkout.xml from location given below

/design/frontend/default/default/layout/checkout.xml

find the code below in file.

Step2. now open page.xml can be found at location given below

\design\frontend\default\default\layout\page.xml

in this file find the code given below

paste the the cart_sidebar block as shown below.

clear your var/cache folder and check you are done

Leave a Reply


*