Guest User

Untitled

a guest
Mar 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <form>
  2. <?php $_product = $this->getProduct(); ?>
  3. <?php $buttonTitle = $this->__('Add to Cart'); ?>
  4. <?php if($_product->isSaleable()): ?>
  5. <div class="add-to-cart">
  6. <?php if(!$_product->isGrouped()): ?>
  7. <label class="qty_label" for="qty"><?php echo $this->__('Quantity') ?>:</label>
  8. <div class="qty_pan">
  9. <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
  10. </div>
  11. <?php endif; ?>
  12. <button 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. <?php endif; ?>
  16. </form>
  17.  
  18. <?php echo $this->getBlockHtml('formkey'); ?>
  19.  
  20. <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
  21.  
  22. <form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form">
  23. <?php echo $this->getBlockHtml('formkey'); ?>
  24.  
  25. <form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
  26. <?php echo $this->getBlockHtml('formkey'); ?>
Add Comment
Please, Sign In to add comment