02 | $count = $this->helper('checkout/cart')->getSummaryCount(); //get total items in cart |
03 | $total = $this->helper('checkout/cart')->getQuote()->getGrandTotal(); //get total price |
04 | if($count==0) |
05 | { |
06 | echo $this->__('Items: %s',$count); |
07 | } |
08 | if($count==1) |
09 | { |
10 | echo $this->__(' Item: %s',$count); |
11 | } |
12 | if($count>1) |
13 | { |
14 | echo $this->__(' Items: %s',$count); |
15 | } |
16 | echo $this->__(' Total: %s', $this->helper('core')->formatPrice($total, false)); |
17 | ?> |
No comments:
Post a Comment