Guest User

adddtocart1

a guest
Apr 5th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <?php $_product = $this->getProduct(); ?>
  2. <?php $buttonTitle = Mage::helper('core')->quoteEscape($this->__('Add to Cart')); ?>
  3. <?php if($_product->isSaleable()): ?>
  4. <div class="add-to-cart">
  5. <?php if(!$_product->isGrouped()): ?>
  6. <div class="qty-wrapper">
  7. <label for="qty"><?php echo $this->__('Qty:') ?></label>
  8. <input type="text" pattern="\d*" name="qty" id="qty" maxlength="12" value="<?php echo max($this->getProductDefaultQty() * 1, 1) ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Qty')) ?>" class="input-text qty" />
  9. </div>
  10. <?php endif; ?>
  11. <div class="add-to-cart-buttons">
  12. <button id="submit-editorApply-{{rand}}" type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
  13. <?php echo $this->getChildHtml('', true, true) ?>
  14. </div>
  15.  
  16. <!-- Wishlist -->
  17.  
  18. <div class="wishlist">
  19.  
  20. <a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>">
  21. <img src="<?php echo $this->getSkinUrl('images/wish.png');?>"/>
  22. </a>
  23.  
  24.  
  25. </div>
  26.  
  27. <!-- Wishlist -->
  28. </div>
  29. <?php endif; ?>
Add Comment
Please, Sign In to add comment