This one is crazy with magneto because sometimes it works and sometimes it just shows blank page. Once it gave me a real hard time. Finally found solution somewhere.

$_cart = Mage::getModel('checkout/cart');
print_r($_cart->debug());
Advertisements