Version Notes
none
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Wyomind_QtySwitcher |
| Version | 1.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.1.1
app/code/community/Wyomind/Qtyswitcher/etc/config.xml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Wyomind_Qtyswitcher>
|
| 6 |
-
<version>
|
| 7 |
</Wyomind_Qtyswitcher>
|
| 8 |
</modules>
|
| 9 |
<frontend>
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Wyomind_Qtyswitcher>
|
| 6 |
+
<version>1.1.1</version>
|
| 7 |
</Wyomind_Qtyswitcher>
|
| 8 |
</modules>
|
| 9 |
<frontend>
|
app/design/frontend/default/default/template/qtyswitcher/qtyswitcher.phtml
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<fieldset class="qtyswitcher-add-to-cart-box ">
|
| 7 |
<div class="qtyswitcher-qty">
|
| 8 |
<?php if(!$_product->isGrouped()): ?>
|
| 9 |
-
<span id="qtyswitcher-qty-box"><label for="qty"><?php echo $this->__('Qty') ?></label></span>
|
| 10 |
<input type='button' id="qtyswitcher-oneless" class='qtyswitcher.btn' onclick="qtyswitcher.removeOne('qtyswitcher-qty','qtyswitcher-clone-qty')"/>
|
| 11 |
|
| 12 |
<?php if(!is_numeric($this->getMinimalQty($_product))) : $qty= 1; ?>
|
|
@@ -22,11 +22,11 @@
|
|
| 22 |
<script language="javascript">qtyswitcher.groupedInit("<?php //echo $this->__("Quantity"); ?>")</script>
|
| 23 |
<?php endif; ?>
|
| 24 |
|
| 25 |
-
<br /><br />
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
| 30 |
</div>
|
| 31 |
</fieldset>
|
| 32 |
<?php endif; ?>
|
| 6 |
<fieldset class="qtyswitcher-add-to-cart-box ">
|
| 7 |
<div class="qtyswitcher-qty">
|
| 8 |
<?php if(!$_product->isGrouped()): ?>
|
| 9 |
+
<span id="qtyswitcher-qty-box"><label for="qty"><?php //echo $this->__('Qty') ?></label></span>
|
| 10 |
<input type='button' id="qtyswitcher-oneless" class='qtyswitcher.btn' onclick="qtyswitcher.removeOne('qtyswitcher-qty','qtyswitcher-clone-qty')"/>
|
| 11 |
|
| 12 |
<?php if(!is_numeric($this->getMinimalQty($_product))) : $qty= 1; ?>
|
| 22 |
<script language="javascript">qtyswitcher.groupedInit("<?php //echo $this->__("Quantity"); ?>")</script>
|
| 23 |
<?php endif; ?>
|
| 24 |
|
|
|
|
| 25 |
|
| 26 |
+
|
| 27 |
+
<div id="qtyswitcher-btn-picto"> <button onclick="productAddToCartForm.submit(this)" class="button btn-cart" title="Add to Cart" type="button" id="addToCartButton"><span><?php echo $this->__('Add to Cart') ?></span></button>
|
| 28 |
+
|
| 29 |
+
|
| 30 |
</div>
|
| 31 |
</fieldset>
|
| 32 |
<?php endif; ?>
|
package.xml
CHANGED
|
@@ -1,23 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Wyomind_QtySwitcher</name>
|
| 4 |
-
<version>1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
-
<summary>Add a +/- button in the product pages that gives the customers the ability to change the quantity of product in their shopping cart
|
| 10 |
-
|
| 11 |
-
</summary>
|
| 12 |
-
<description>Add a +/- button in the product pages that gives the customers the ability to change the quantity of product in their shopping cart.
|
| 13 |
-

|
| 14 |
-
Not really a big improvement for Magento, but a real improvement for a better navigation experience.
|
| 15 |
-
</description>
|
| 16 |
<notes>none</notes>
|
| 17 |
-
<authors><author><name>Wyomind</name><user>
|
| 18 |
<date>2012-04-10</date>
|
| 19 |
-
<time>
|
| 20 |
-
<contents><target name="magecommunity"><dir name="Wyomind"><dir name="Qtyswitcher"><dir name="etc"><file name="config.xml" hash="
|
| 21 |
<compatible/>
|
| 22 |
-
<dependencies
|
| 23 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Wyomind_QtySwitcher</name>
|
| 4 |
+
<version>1.1.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GPL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
+
<summary>Add a +/- button in the product pages that gives the customers the ability to change the quantity of product in their shopping cart.</summary>
|
| 10 |
+
<description>Add a +/- button in the product pages that gives the customers the ability to change the quantity of product in their shopping cart.</description>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
<notes>none</notes>
|
| 12 |
+
<authors><author><name>Wyomind</name><user>auto-converted</user><email>contact@wyomind.com</email></author></authors>
|
| 13 |
<date>2012-04-10</date>
|
| 14 |
+
<time>14:05:03</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Wyomind"><dir name="Qtyswitcher"><dir name="etc"><file name="config.xml" hash="fa299a83251df8dc91a2cefc1b63e5fd"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wyomind_Qtyswitcher.xml" hash="9013e5d922a0a08383be63f40e6454be"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="qtyswitcher.xml" hash="4783e143e6078629049ff7e2c0e92042"/></dir><dir name="template"><dir name="qtyswitcher"><file name="qtyswitcher.phtml" hash="0f526fc1807f54f03053707899497951"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="qtyswitcher"><dir name="css"><file name="qtyswitcher.css" hash="7a283d6df2f7d8027c47170425bdcd3e"/></dir><dir name="images"><file name="less-2.gif" hash="77b8c602b547e4e2fbbe216efd08f617"/><file name="less.gif" hash="1868a0528c6fa3d532e3df073580a589"/><file name="more-2.gif" hash="89bb6914c23f1ab2caae39645440c225"/><file name="more.gif" hash="1b9db0e43571274cca8b181c389b85fb"/></dir><dir name="js"><file name="qtyswitcher.js" hash="b95ee851c68b7bfbcbb3a68f436df977"/></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
+
<dependencies/>
|
| 18 |
</package>
|
skin/frontend/default/default/qtyswitcher/css/qtyswitcher.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
| 1 |
#qtyswitcher-oneless{
|
| 2 |
border:none;
|
| 3 |
-
background:
|
| 4 |
width:15px;
|
| 5 |
height:20px;
|
| 6 |
cursor:pointer;
|
| 7 |
}
|
| 8 |
#qtyswitcher-onemore{
|
| 9 |
border:none;
|
| 10 |
-
background:
|
| 11 |
width:15px;
|
| 12 |
height:20px;
|
| 13 |
cursor:pointer;
|
| 14 |
}
|
| 15 |
.qtyswitcher-qty .clone-qty{
|
| 16 |
-
background:none repeat scroll 0 0
|
| 17 |
border:medium none;
|
| 18 |
color:#000000;
|
| 19 |
font-size:16px;
|
|
@@ -41,13 +41,13 @@
|
|
| 41 |
margin-top:3px;
|
| 42 |
}
|
| 43 |
.qtyswitcher-add-to-cart-box {
|
| 44 |
-
float:
|
| 45 |
margin:0;
|
| 46 |
}
|
| 47 |
|
| 48 |
.qtyswitcher-qty {
|
| 49 |
-float:right;
|
| 50 |
-
margin:0
|
| 51 |
}
|
| 52 |
.option-grouped{
|
| 53 |
|
| 1 |
#qtyswitcher-oneless{
|
| 2 |
border:none;
|
| 3 |
+
background:transparent url("../images/less.gif") 50% 50% no-repeat;
|
| 4 |
width:15px;
|
| 5 |
height:20px;
|
| 6 |
cursor:pointer;
|
| 7 |
}
|
| 8 |
#qtyswitcher-onemore{
|
| 9 |
border:none;
|
| 10 |
+
background:transparent url("../images/more.gif") 50% 50% no-repeat;
|
| 11 |
width:15px;
|
| 12 |
height:20px;
|
| 13 |
cursor:pointer;
|
| 14 |
}
|
| 15 |
.qtyswitcher-qty .clone-qty{
|
| 16 |
+
background:none repeat scroll 0 0 transparent;
|
| 17 |
border:medium none;
|
| 18 |
color:#000000;
|
| 19 |
font-size:16px;
|
| 41 |
margin-top:3px;
|
| 42 |
}
|
| 43 |
.qtyswitcher-add-to-cart-box {
|
| 44 |
+
float:left;
|
| 45 |
margin:0;
|
| 46 |
}
|
| 47 |
|
| 48 |
.qtyswitcher-qty {
|
| 49 |
-float:right;
|
| 50 |
+
margin:0 7px 0 0;
|
| 51 |
}
|
| 52 |
.option-grouped{
|
| 53 |
|
skin/frontend/default/default/qtyswitcher/js/qtyswitcher.js
CHANGED
|
@@ -30,13 +30,13 @@ qtyswitcher={
|
|
| 30 |
addOne: function(id,idClone){
|
| 31 |
count=Math.round($(id).value)+1;
|
| 32 |
$(id).writeAttribute('value',count);
|
| 33 |
-
$(idClone).writeAttribute('value',count);
|
| 34 |
},
|
| 35 |
removeOne: function(id,idClone){
|
| 36 |
count=Math.round($(id).value)-1;
|
| 37 |
-
if(count<
|
| 38 |
$(id).writeAttribute('value',count);
|
| 39 |
-
$(idClone).writeAttribute('value',count);
|
| 40 |
}
|
| 41 |
|
| 42 |
};
|
| 30 |
addOne: function(id,idClone){
|
| 31 |
count=Math.round($(id).value)+1;
|
| 32 |
$(id).writeAttribute('value',count);
|
| 33 |
+
$(idClone).writeAttribute('value',count); if(count<1) $('addToCartButton').disabled=true; else $('addToCartButton').disabled=false;
|
| 34 |
},
|
| 35 |
removeOne: function(id,idClone){
|
| 36 |
count=Math.round($(id).value)-1;
|
| 37 |
+
if(count<1)count=1;
|
| 38 |
$(id).writeAttribute('value',count);
|
| 39 |
+
$(idClone).writeAttribute('value',count); if(count<1) $('addToCartButton').disabled=true; else $('addToCartButton').disabled=false;
|
| 40 |
}
|
| 41 |
|
| 42 |
};
|
