Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form>
- <?php $_product = $this->getProduct(); ?>
- <?php $buttonTitle = $this->__('Add to Cart'); ?>
- <?php if($_product->isSaleable()): ?>
- <div class="add-to-cart">
- <?php if(!$_product->isGrouped()): ?>
- <label class="qty_label" for="qty"><?php echo $this->__('Quantity') ?>:</label>
- <div class="qty_pan">
- <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
- </div>
- <?php endif; ?>
- <button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
- <?php echo $this->getChildHtml('', true, true) ?>
- </div>
- <?php endif; ?>
- </form>
- <?php echo $this->getBlockHtml('formkey'); ?>
- <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
- <form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form">
- <?php echo $this->getBlockHtml('formkey'); ?>
- <form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
- <?php echo $this->getBlockHtml('formkey'); ?>
Add Comment
Please, Sign In to add comment