Version Notes
- tested on magento 1.5.1.0
- works only with prototype 1.6.x
- works with integer and decimal item quantities
- takes advantage of global inventory configuration-option: "Qty Increments"
Download this release
Release Info
Developer | Kevin Horst |
Extension | KH_CartQtyButtons |
Version | 0.4.0 |
Comparing to | |
See all releases |
Code changes from version 0.3.0 to 0.4.0
js/kh/cartqtybuttons/cartqtybuttons.js
CHANGED
@@ -19,9 +19,13 @@ KH.CartQtyButtons.Render.prototype = {
|
|
19 |
render : function()
|
20 |
{
|
21 |
$$(this.settings.selector).each(function(item, index) {
|
22 |
-
var aIncrease = new Element('a'
|
|
|
|
|
23 |
.update(this.translator.translate('increase qty'));
|
24 |
-
var aDecrease = new Element('a'
|
|
|
|
|
25 |
.update(this.translator.translate('decrease qty'));
|
26 |
|
27 |
aIncrease.observe('click', function(event) {
|
@@ -107,4 +111,4 @@ KH.CartQtyButtons.Render.prototype = {
|
|
107 |
qtyInput.value = newValue;
|
108 |
form.submit();
|
109 |
}
|
110 |
-
};
|
19 |
render : function()
|
20 |
{
|
21 |
$$(this.settings.selector).each(function(item, index) {
|
22 |
+
var aIncrease = new Element('a')
|
23 |
+
.addClassName('cartQtyButtons')
|
24 |
+
.addClassName('cartQtyButtonsIncrease')
|
25 |
.update(this.translator.translate('increase qty'));
|
26 |
+
var aDecrease = new Element('a')
|
27 |
+
.addClassName('cartQtyButtons')
|
28 |
+
.addClassName('cartQtyButtonsDecrease')
|
29 |
.update(this.translator.translate('decrease qty'));
|
30 |
|
31 |
aIncrease.observe('click', function(event) {
|
111 |
qtyInput.value = newValue;
|
112 |
form.submit();
|
113 |
}
|
114 |
+
};
|
package.xml
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>KH_CartQtyButtons</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
<description>Fügt jeder Position im Warenkorb 2 Icons zum erhöhen/reduzieren der Menge hinzu.
|
11 |

|
12 |
Adds buttons for each item in cart to increase/decrease quantity by one mouse-click.</description>
|
@@ -15,9 +15,9 @@ Adds buttons for each item in cart to increase/decrease quantity by one mouse-cl
|
|
15 |
- works with integer and decimal item quantities
|
16 |
- takes advantage of global inventory configuration-option: "Qty Increments"</notes>
|
17 |
<authors><author><name>Kevin Horst</name><user>kevinhorst</user><email>info@kevinhorst.de</email></author></authors>
|
18 |
-
<date>2011-
|
19 |
-
<time>17:
|
20 |
-
<contents><target name="magecommunity"><dir name="KH"><dir name="CartQtyButtons"><dir name="Helper"><file name="Data.php" hash="092ca5215f187119b17038dac8a165f5"/></dir><dir name="Model"><dir name="Admin"><file name="NullBehavior.php" hash="5219ca2ef6da50c15255afc783d775cd"/><file name="Position.php" hash="d351b7e7025176d009a4a027825bf9df"/></dir></dir><dir name="etc"><file name="config.xml" hash="f47e61a4e794d59bc1b17bb611b68643"/><file name="system.xml" hash="f8c4ab222e8a867c3854a2a96a0cb9d8"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="cartqtybuttons.xml" hash="18e160ae42f92c7686fc05a05f561fd0"/></dir><dir name="template"><dir name="kh"><dir name="cartqtybuttons"><dir name="js"><file name="render.phtml" hash="9390c3eb44b3af6cf43d7c99be67bd80"/></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="KH_CartQtyButtons.csv" hash="43c80c8e282cc50f202029c25ec1dd17"/></dir><dir name="en_US"><file name="KH_CartQtyButtons.csv" hash="7cc439e15d4d4863978bf9df92f3e9b4"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="kh"><dir name="cartqtybuttons"><file name="cartqtybuttons.css" hash="
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
23 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>KH_CartQtyButtons</name>
|
4 |
+
<version>0.4.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>bugfix release (fixes some problems with ie7/8/9)</summary>
|
10 |
<description>Fügt jeder Position im Warenkorb 2 Icons zum erhöhen/reduzieren der Menge hinzu.
|
11 |

|
12 |
Adds buttons for each item in cart to increase/decrease quantity by one mouse-click.</description>
|
15 |
- works with integer and decimal item quantities
|
16 |
- takes advantage of global inventory configuration-option: "Qty Increments"</notes>
|
17 |
<authors><author><name>Kevin Horst</name><user>kevinhorst</user><email>info@kevinhorst.de</email></author></authors>
|
18 |
+
<date>2011-07-13</date>
|
19 |
+
<time>17:34:00</time>
|
20 |
+
<contents><target name="magecommunity"><dir name="KH"><dir name="CartQtyButtons"><dir name="Helper"><file name="Data.php" hash="092ca5215f187119b17038dac8a165f5"/></dir><dir name="Model"><dir name="Admin"><file name="NullBehavior.php" hash="5219ca2ef6da50c15255afc783d775cd"/><file name="Position.php" hash="d351b7e7025176d009a4a027825bf9df"/></dir></dir><dir name="etc"><file name="config.xml" hash="f47e61a4e794d59bc1b17bb611b68643"/><file name="system.xml" hash="f8c4ab222e8a867c3854a2a96a0cb9d8"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="cartqtybuttons.xml" hash="18e160ae42f92c7686fc05a05f561fd0"/></dir><dir name="template"><dir name="kh"><dir name="cartqtybuttons"><dir name="js"><file name="render.phtml" hash="9390c3eb44b3af6cf43d7c99be67bd80"/></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="KH_CartQtyButtons.csv" hash="43c80c8e282cc50f202029c25ec1dd17"/></dir><dir name="en_US"><file name="KH_CartQtyButtons.csv" hash="7cc439e15d4d4863978bf9df92f3e9b4"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="kh"><dir name="cartqtybuttons"><file name="cartqtybuttons.css" hash="88e9cac7d2dae9a9f9158fc49b76335d"/></dir></dir></dir><dir name="images"><dir name="kh"><dir name="cartqtybuttons"><file name="decrease.gif" hash="834c44fa616c3f8ac0393ec4f9d2a7ad"/><file name="increase.gif" hash="c6c10abdf3aa10937909ab3a437afb11"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="kh"><dir name="cartqtybuttons"><file name="cartqtybuttons.js" hash="b86e7c4483d7827ee74dd1524c896221"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="KH_CartQtyButtons.xml" hash="f1d2e0758a4f4bef5b71cfaf1aa6e4ac"/></dir></target></contents>
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
23 |
</package>
|
skin/frontend/default/default/css/kh/cartqtybuttons/cartqtybuttons.css
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
/* used by both_left, bot_right */
|
12 |
div.cartQtyButtonsContainer {
|
13 |
float: left;
|
|
|
14 |
}
|
15 |
|
16 |
.cartQtyButtonsColumn .cartQtyButtons {
|
@@ -61,4 +62,4 @@ div.cartQtyButtonsContainer {
|
|
61 |
.cartQtyButtonsColumnLeftRight .cartQtyButtonsDecrease{
|
62 |
margin: 5px 1px 0 0;
|
63 |
float: left;
|
64 |
-
}
|
11 |
/* used by both_left, bot_right */
|
12 |
div.cartQtyButtonsContainer {
|
13 |
float: left;
|
14 |
+
width: 9px;
|
15 |
}
|
16 |
|
17 |
.cartQtyButtonsColumn .cartQtyButtons {
|
62 |
.cartQtyButtonsColumnLeftRight .cartQtyButtonsDecrease{
|
63 |
margin: 5px 1px 0 0;
|
64 |
float: left;
|
65 |
+
}
|