Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $collections = $this->getCollection(); ?>
- <?php $_product = $this->getProduct(); ?>
- <?php $buttonTitle = Mage::helper('core')->quoteEscape($this->__('Add to Cart')); ?>
- <?php foreach ($collections as $key => $product) {
- echo $product->getName().' <br>';
- ?>
- <form action="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product);?>" method="post">
- <div class="add-to-cart-buttons">
- <button type="submit" title="<?php echo $buttonTitle ?>" class="button btn-cart" >
- <span><span>
- <?php echo $buttonTitle ?>
- </span></span>
- </button>
- <?php echo $this->getChildHtml('', true, true) ?>
- </div>
- </form>
- <hr style='display:inline-block; width:100%;'>
- <?php
- }
- ?>
Add Comment
Please, Sign In to add comment