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.5.0 |
Comparing to | |
See all releases |
Code changes from version 0.4.0 to 0.5.0
js/kh/cartqtybuttons/cartqtybuttons.js
CHANGED
@@ -59,7 +59,8 @@ KH.CartQtyButtons.Render.prototype = {
|
|
59 |
|
60 |
renderBothLeft : function(item, aIncrease, aDecrease)
|
61 |
{
|
62 |
-
var container = new Element('div'
|
|
|
63 |
|
64 |
// insert buttons
|
65 |
container.appendChild(aIncrease);
|
@@ -74,7 +75,8 @@ KH.CartQtyButtons.Render.prototype = {
|
|
74 |
|
75 |
renderBothRight : function(item, aIncrease, aDecrease)
|
76 |
{
|
77 |
-
var container = new Element('div'
|
|
|
78 |
|
79 |
// insert buttons
|
80 |
container.appendChild(aIncrease);
|
59 |
|
60 |
renderBothLeft : function(item, aIncrease, aDecrease)
|
61 |
{
|
62 |
+
var container = new Element('div');
|
63 |
+
container.addClassName('cartQtyButtonsContainer');
|
64 |
|
65 |
// insert buttons
|
66 |
container.appendChild(aIncrease);
|
75 |
|
76 |
renderBothRight : function(item, aIncrease, aDecrease)
|
77 |
{
|
78 |
+
var container = new Element('div');
|
79 |
+
container.addClassName('cartQtyButtonsContainer');
|
80 |
|
81 |
// insert buttons
|
82 |
container.appendChild(aIncrease);
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
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>
|
@@ -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-07-
|
19 |
-
<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="
|
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.5.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>
|
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-15</date>
|
19 |
+
<time>09:23:56</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="5a1ed924d95c8622026395d877ab6962"/></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="eaba075018e1581b3229550bd4e68674"/></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
@@ -9,7 +9,7 @@
|
|
9 |
}
|
10 |
|
11 |
/* used by both_left, bot_right */
|
12 |
-
|
13 |
float: left;
|
14 |
width: 9px;
|
15 |
}
|
@@ -36,7 +36,7 @@ div.cartQtyButtonsContainer {
|
|
36 |
width: 46px;
|
37 |
}
|
38 |
|
39 |
-
.cartQtyButtonsColumnLeft
|
40 |
padding-right: 1px;
|
41 |
}
|
42 |
|
@@ -45,7 +45,7 @@ div.cartQtyButtonsContainer {
|
|
45 |
width: 46px;
|
46 |
}
|
47 |
|
48 |
-
.cartQtyButtonsColumnRight
|
49 |
padding-left: 1px;
|
50 |
}
|
51 |
|
9 |
}
|
10 |
|
11 |
/* used by both_left, bot_right */
|
12 |
+
.cartQtyButtonsContainer {
|
13 |
float: left;
|
14 |
width: 9px;
|
15 |
}
|
36 |
width: 46px;
|
37 |
}
|
38 |
|
39 |
+
.cartQtyButtonsColumnLeft .cartQtyButtonsContainer {
|
40 |
padding-right: 1px;
|
41 |
}
|
42 |
|
45 |
width: 46px;
|
46 |
}
|
47 |
|
48 |
+
.cartQtyButtonsColumnRight .cartQtyButtonsContainer {
|
49 |
padding-left: 1px;
|
50 |
}
|
51 |
|