Guest User

addd

a guest
Mar 10th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <?php $_product = $this->getProduct(); ?>
  2. <?php $buttonTitle = Mage::helper('core')->quoteEscape($this->__('Add to Cart')); ?>
  3. <?php $buttonTitle1 = Mage::helper('core')->quoteEscape($this->__('create products')); ?>
  4. <?php if($_product->isSaleable()): ?>
  5. <div class="add-to-cart">
  6. <?php if(!$_product->isGrouped()): ?>
  7. <div class="qty-wrapper">
  8. <label for="qty"><?php echo $this->__('Qty:') ?></label>
  9. <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" />
  10. </div>
  11. <?php endif; ?>
  12. <div class="add-to-cart-buttons">
  13. <button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
  14. <?php echo $this->getChildHtml('', true, true) ?>
  15. </div>
  16.  
  17.  
  18. <!-- Add to cart 1 -->
  19. <div class="add-to-cart-buttons" style = "position:relative; top:50px; right:130px;">
  20. <button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" >
  21. <span><span><?php echo 'See <a href="/catalog/product/view/id/' . $product->getId() . '">created simple product</a>' ?>
  22. </span></span></button>
  23. <?php echo $this->getChildHtml('', true, true) ?>
  24. </div>
  25. </div>
  26. <?php endif; ?>
Add Comment
Please, Sign In to add comment