Weehuu, finally I figured something out…
How do I show the quantity of a cart in my header?
Add the following code to app/design/frontend/[theme]/default/template/page/html/header.phtml:
How do I show the total price of a cart in my header?
I have only found a solution for the subtotal, and to show this, you need to add the following to app/design/frontend/[theme]/default/template/page/html/header.phtml (or wherever you need it):
How do I show the total shipping price in my header?
Still trying to figure this out…
I search hi and low before I found a solution and then had to do a lot of tweeking before it worked but here is what I did:
1. Add an action method to get the subtotal in the checkout.xml file (found in app/design/frontend/default/[YOUR THEME]/layout)
And change to
Notice all I did was to add
2. Open links.php found in app/code/core/Mage/Checkout/Block) and Add a function to get the cart subtotal
public function ADDSUBTOTALCODE ()
3. Save files and upload them back to the server.
**Please ntoe to first make a backup of all the files being updated before changes are made as core files are being changed**