Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $count = $this->helper('checkout/cart')->getSummaryCount();
- $_items = $this->getRecentItems();
- ?>
- <a class="minibag" href="<?php echo Mage::helper('checkout/cart')->getCartUrl(); ?>"><span class="hidden-table"> <?php echo $this->__('My Bag') ?> | </span><span class="cart-header" id="header-text"> <span class="bag"><?php if($count==0){echo $this->__('0',$count);}if($count>1){echo $this->__('%s',$count);}?></span> </span> </a>
- if(typeof res.cartcount != 'undefined') {
- if(parseInt(res.cartcount)==0){
- document.getElementById("header-text").innerHTML = "<span class='bag'>0</span>";
- }else{
- document.getElementById("header-text").innerHTML = "<span class='bag'> "+ parseInt(res.cartcount) + " </span>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement