-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.txt
226 lines (135 loc) · 6.83 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
=== SMNTCS Quantity Increment Buttons for WooCommerce ===
Contributors: nielslange, derweltbuerger, marcqueralt
Tags: quantity buttons, quantity, quantity increment, woocommerce quantity
Stable tag: 2.5
Tested up to: 6.4
Requires PHP: 5.6
Requires at least: 5.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Display the quantity increment buttons on the WooCommerce product page and the WooCommerce cart page.
== Description ==
Increment Quantity Buttons for WooCommerce adds two additional buttons to the quantity input field on the WooCommerce product page to easily increase and decrease the quantity via button click.
=== Compatible with ===
* [Min and Max Quantity for WooCommerce](https://wordpress.org/plugins/minmax-quantity-for-woocommerce/)
* [WooCommerce Composite Products](https://woocommerce.com/products/composite-products/)
* [WooCommerce Min Max Quantity & Step Control Single](https://wordpress.org/plugins/woo-min-max-quantity-step-control-single/)
* [WooCommerce Min/Max Quantities](https://woocommerce.com/products/minmax-quantities/)
* [WooCommerce Minimum and Maximum Quantity](https://wordpress.org/plugins/woo-min-max-quantity-limit/)
* [WooCommerce Product Bundles](https://woocommerce.com/products/product-bundles/)
== Filter ==
Since 1.13 it's possible to flip the -/+ buttons to +/-. To do that, please add the corresponding filter to your functions.php file:
**Flip quantity buttons:**
`
add_filter( 'flip_quantity_buttons', '__return_true' );
`
Since 1.9 it's possible to disable the plugin on the product page and/or the cart page. To do that, please add the corresponding filter to your functions.php file:
**Disable plugin on product page:**
`
add_filter( 'show_on_product_page', '__return_false' );
`
**Disable plugin on cart page:**
`
add_filter( 'show_on_cart_page', '__return_false' );
`
Since 2.2, it's possible to use `<button>` instead of `<input type="button">` for the quantity buttons. To do that, please add the corresponding filter to your functions.php file:
*** Use `<button>` instead of `<input type="button">` ***
`
add_filter( 'use_html_buttons', '__return_true' );
`
== Contribute ==
Contributions are more than welcome. Simply head over to [Github](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/pulls) and open a pull request.
== Installation ==
1. Upload `smntcs-quantity-buttons-for-woocommerce` to the `/wp-content/plugins/` directory.
2. Activate the plugin through the `Plugins` menu in WordPress.
== Screenshots ==
1. WooCommerce Quantity Buttons on the product page.
2. WooCommerce Quantity Buttons on the cart page.
== Change log ==
= 2.5 (2023.10.01) =
- Test up to WP 6.4
= 2.4 (2023.05.27) =
- Add High-Performance Order Storage (HPOS) support
= 2.3 (2023.03.11) =
- Test up to WP 6.2
= 2.2 (2023.01.01) =
- [Fix step increment when changing shipping methods](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/88)
- [Add toggle to use `<button>` instead of `<input type="button">`](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/90)
= 2.1 (2022.12.03) =
- Test up to WC 7.1
- Test up to WP 6.1
= 2.0 (2022.10.02) =
- Test up to WC 6.9
- Test up to WP 6.0
= 1.26 (2022.01.01) =
- Test up to WP 5.8
- Add support for Twenty Twenty theme
- Add support for Twenty Twenty-One theme
= 1.25 (2020.03.28) =
- [Fix max quantity problem](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/70)
= 1.24 (2020.03.28) =
- [Fix quantity bug on single product page](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/67)
= 1.23 (2020.02.08) =
- [Ensure that multiple quantities can be adjusted](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/65)
= 1.22 (2020.02.07) =
- Fix JS error for empty cart
= 1.21 (2020.02.07) =
- [Fix Vanilla JS bug](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/61)
- Test up to WP 5.6
= 1.20 (2020.11.30) =
- Test up to WC 4.5
- Replaced the jQuery code with Vanilla JS
= 1.19 (2020.09.13) =
- Updated plugin description
= 1.18 (2020.09.13) =
- Test up to WC 4.4
- Test up to WP 5.5
- Updated plugin icon
= 1.17 (2020.05.20) =
- [Add SMNTCS Retro theme compatibility](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/34)
- [Adjust button styles on Twenty Twenty cart page](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/33)
- [Declaring required and supported WooCommerce version](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/30)
- [Rename handlers](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/35)
- [Rename plugin slug](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/36)
= 1.16 (2020.04.04) =
- [Fix grouped products issue](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/21)
= 1.15 (2020.04.02) =
- [Fix nulled product quantity after release 1.14](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/24)
- [Rename plugin to "SMNTCS Quantity Buttons for WooCommerce"](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/25)
= 1.14 (2020.03.31) =
- [Add compatibility for grouped products](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/21)
= 1.13 (2020.03.11) =
- [Add filter to flip buttons](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/17)
- Test up to WC 4.0
- Test up to WP 5.4
= 1.12 (2019.12.06) =
- [Add compatibility for Twenty Twenty theme](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/11)
- [Validate markup](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/10)
= 1.11 (2019.11.18) =
- Test up to 5.3
= 1.10 (2019.06.28) =
- Add compatibility to [WooCommerce Composite Products](https://woocommerce.com/products/composite-products/) and [WooCommerce Product Bundles](https://woocommerce.com/products/product-bundles/)
- Add compatibility for steps
- Add button class for styling purposes
- Adjust styling of quantity field on cart page
= 1.9 (2019.06.13) =
- Add filter to disable the plugin on product and/or cart page
= 1.8 (2019.06.08) =
- Fix 'maximum and minimum' issue
= 1.7 (2019.05.31) =
- Check maximum and minimum when adding or removing quantity
- Test up to 5.2
= 1.6 (2019.05.30) =
- Refactor based on PHPCS and WPCS
= 1.5 (2019.02.28) =
- Fix 'Update cart' issue
= 1.4 (2019.02.21) =
- Test up to 5.1
= 1.3 (2019.01.12) =
- Enable quantity buttons on cart page
= 1.2 (2018.11.08) =
- Add compatibility to other [WooCommerce](https://wordpress.org/plugins/woocommerce/) extensions
= 1.1 (2018.03.31) =
- Hide HTML5 input spinner
= 1.0 (2018.03.28) =
- Initial release