Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. <?php if ($this->getIsNeedToDisplaySideBar()):?><div class="block block-cart block-topcart"><?php $_cartQty = $this->getSummaryCount() ?>
  2. <div class="block-title">
  3. <span class="glyphicon glyphicon-shopping-cart"></span>
  4. <strong><span><?php echo $this->__('My Cart') ?></span></strong>
  5. <?php if ($_cartQty>0): ?>
  6. <div class="summary">
  7. <?php if ($_cartQty==1): ?>
  8.  
  9. <p class="amount"><?php echo $this->__('There is <a href="%s">1 item</a> in your cart.', $this->getUrl('checkout/cart')) ?>
  10. <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
  11. </p>
  12.  
  13. <?php else: ?>
  14.  
  15. <p class="amount"><?php echo $this->__('There are <a href="%s">%s items</a> in your cart.', $this->getUrl('checkout/cart'), $_cartQty) ?>
  16. <?php echo Mage::helper('checkout')->formatPrice($this->getSubtotal()) ?>
  17. </p>
  18.  
  19. <?php endif ?>
  20. </div>
  21. <?php else: ?>
  22. <p class="empty">
  23. <?php echo $this->__('You have no items in your shopping cart.') ?>
  24. </p>
  25. <?php endif ?>
  26. </div>
  27.  
  28. <!-- // block-title -->
  29. <div class="block-content">
  30. <?php if($_cartQty && $this->isPossibleOnepageCheckout()): ?>
  31.  
  32. <div class="actions">
  33. <?php echo $this->getChildHtml('extra_actions') ?>
  34.  
  35. <button type="button" title="<?php echo $this->__('Checkout') ?>" class="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')">
  36. <span><span><?php echo $this->__('Checkout') ?></span></span>
  37. </button>
  38. </div>
  39.  
  40. <?php endif ?>
  41.  
  42. <?php $_items = $this->getRecentItems() ?>
  43. <?php if(count($_items)): ?>
  44. <p class="block-subtitle">
  45. <?php echo $this->__('Recently added item(s)') ?>
  46. </p>
  47. <ol id="cart-sidebar" class="mini-products-list">
  48. <?php foreach($_items as $_item): ?>
  49. <?php echo $this->getItemHtml($_item) ?>
  50. <?php endforeach; ?>
  51. </ol>
  52. <script type="text/javascript">
  53. decorateList('cart-sidebar', 'none-recursive');
  54. </script>
  55. <?php endif ?>
  56. </div>
  57. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement