Guest User

ferfer

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