SHARE
TWEET

addt

a guest Apr 8th, 2017 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Magento
  4.  *
  5.  * NOTICE OF LICENSE
  6.  *
  7.  * This source file is subject to the Academic Free License (AFL 3.0)
  8.  * that is bundled with this package in the file LICENSE_AFL.txt.
  9.  * It is also available through the world-wide-web at this URL:
  10.  * http://opensource.org/licenses/afl-3.0.php
  11.  * If you did not receive a copy of the license and are unable to
  12.  * obtain it through the world-wide-web, please send an email
  13.  * to license@magento.com so we can send you a copy immediately.
  14.  *
  15.  * DISCLAIMER
  16.  *
  17.  * Do not edit or add to this file if you wish to upgrade Magento to newer
  18.  * versions in the future. If you wish to customize Magento for your
  19.  * needs please refer to http://www.magento.com for more information.
  20.  *
  21.  * @category    design
  22.  * @package     rwd_default
  23.  * @copyright   Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
  24.  * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  25.  */
  26. ?>
  27. <?php $_product = $this->getProduct(); ?>
  28. <?php $buttonTitle = Mage::helper('core')->quoteEscape($this->__('Add to Cart')); ?>
  29. <?php if($_product->isSaleable()): ?>
  30.     <div class="add-to-cart">
  31.         <?php if(!$_product->isGrouped()): ?>
  32.         <div class="qty-wrapper">
  33.             <label for="qty"><?php echo $this->__('Qty:') ?></label>
  34.             <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" />
  35.         </div>
  36.         <?php endif; ?>
  37.        
  38.        
  39. <div class="add-to-cart-buttons">
  40. <button onclick="productAddToCartForm.submit(this)" id="submit-editorApply-add-to-cart" type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" ><span><span><?php echo $buttonTitle ?></span></span></button>
  41. <?php echo $this->getChildHtml('', true, true) ?>
  42. </div>
  43.  
  44.           <!-- Wishlist -->
  45.  
  46.    <div class="wishlist">
  47.                            
  48.       <a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>">
  49.          <img src="<?php echo $this->getSkinUrl('images/wish.png');?>"/>
  50.       </a>
  51.                          
  52.  
  53.   </div>
  54.  
  55.                             <!-- Wishlist -->
  56.     </div>
  57. <?php endif; ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top