How to get total price of items in your Magento cart

<pre><?php echo $this->helper('checkout')->formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal()); ?>
</pre>

for more magento tutorial visit: http://blog.free-extension.com/

Advertisements
  1. thnak you for the solutions

  2. If you work in a checkout-related template (such as sidebar.phtml),

    $this->helper(‘checkout’)->formatPrice($this->getQuote()->getGrandTotal());

    is sufficient.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: