<?php $count = $this->helper('checkout/cart')->getSummaryCount(); //get total items in cart $total = $this->helper('checkout/cart')->getQuote()->getGrandTotal(); //get total price if($count==0) { echo $this->__('Items: %s',$count); } if($count==1) { echo $this->__(' Item: %s',$count); } if($count>1) { echo $this->__(' Items: %s',$count); } echo $this->__(' Total: %s', $this->helper('core')->formatPrice($total, false)); ?>
Friday, April 8
How to get Total Cart Item and total Price in magento
Subscribe to:
Post Comments (Atom)
Google Play
Magento Talks now available in Google Play. Please download it from Here
Followers
Hit Counter
Popular Posts
Blog Archive
-
▼
2011
(95)
-
▼
April
(7)
- How to call the static block inside the CMS Page i...
- How to call a static block from template file in M...
- How to get List of Sub Category by main Category I...
- How to filter all products by attribute value in M...
- How to get attribute name and value in Magento
- Allow Guests To Check Order Status in Magento
- How to get Total Cart Item and total Price in magento
-
▼
April
(7)
Feedjit
Subscribe via email
My Blog List
Powered by Blogger.
About Me
- Mohan Natarajan
- Chennai, Tamil Nadu, India
- Hi, this is Mohan Natarajan working as a Senior Software Engineer at DCKAP Technologies.I have completed BE Computer Science and Engineering in Ranipet Engineering College. I did my schooling in Govt Boys Hr Sec School Timiri.(Vellore Dist)
Categories
Text Widget
Pages
Mohan Natarajan Powered by Blogger
No comments:
Post a Comment