Guest User

full code

a guest
Mar 16th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php $collections = $this->getCollection(); ?>
  2.  
  3. <?php $_product = $this->getProduct(); ?>
  4. <?php $buttonTitle = Mage::helper('core')->quoteEscape($this->__('Add to Cart')); ?>
  5.  
  6. <?php foreach ($collections as $key => $product) {
  7.  
  8. echo $product->getName().' <br>';
  9. ?>
  10. <form action="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product);?>" method="post">
  11. <div class="add-to-cart-buttons">
  12.  
  13. <button type="submit" title="<?php echo $buttonTitle ?>" class="button btn-cart" >
  14. <span><span>
  15. <?php echo $buttonTitle ?>
  16. </span></span>
  17. </button>
  18.  
  19. <?php echo $this->getChildHtml('', true, true) ?>
  20.  
  21. </div>
  22. </form>
  23. <hr style='display:inline-block; width:100%;'>
  24. <?php
  25.  
  26. }
  27. ?>
Add Comment
Please, Sign In to add comment