im looking for a solution for my magento shop how to include a shopping cart block like this one in the header.


When you click on this block it open a information how much products you have in your cart.

Whats the code for this solution. Maybe it is a extensions?

1 Answer 1


If you are using the rwd theme of magento1.9, it is already built in it else you will have to create it doing some css and jquery customization in Magento shopping basket left-bar widget.

You can make it following this tutorial Display Products in shopping cart in a drop down format in Magento

  • Many thanks for your answer, but i have do everything what stands in the tutorial, but it nothing work. I have created the new cart_top.phtml and put the jquery in the header of the file. Then i include the code getLayout()->createBlock(‘checkout/cart_sidebar’)->setTemplate(‘checkout/cart/cart_top.phtml’)->toHtml(); in my topmenu.phtml but nothing visible.
    – wolpersweb
    Oct 9, 2014 at 11:30
  • It should work because the screenshot you see is the implemted one and i have done that.. you might be going wrong somewhere
    – Dexter
    Oct 9, 2014 at 11:31
  • Okay i have find out how to convert the code to php. But my next problem is, that the jquery script isnt fired when i open the side. The block is always out.
    – wolpersweb
    Oct 9, 2014 at 12:26
  • there might be some jquery conflict on your website... i can't predict it but you can try using noconflict
    – Dexter
    Oct 9, 2014 at 12:32
  • Please look at my code here pastebin.com/MKszjWyb
    – wolpersweb
    Oct 9, 2014 at 12:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.