forked from woocommerce/WooCommerce-Quantity-Increment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
59 lines (41 loc) · 1.94 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
=== Plugin Name ===
Contributors: automattic, woothemes
Tags: woocommerce, quantity, quantity increment, quantity buttons, spinner
Requires at least: 7.3.0
Tested up to: 8.2.1
Stable tag: 1.2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
WooCommerce Quantity Increment adds JavaScript powered quantity buttons to your cart page.
== Description ==
WooCommerce uses number inputs for the cart quantities by default, as most browsers now support `<input type="number" />`.
However, you may want to have JavaScript powered inputs if you want greater control over appearance. Simply install and activate this plugin to do so.
It optionally includes a [Number Polyfill](https://github.com/jonstipe/number-polyfill), which is a polyfill for implementing the HTML5 `<input type="number">` element in browsers that do not currently support it.
To include this, add the following code to your theme's `functions.php` file:
`
add_action( 'wp_enqueue_scripts', 'wcqi_enqueue_polyfill' );
function wcqi_enqueue_polyfill() {
wp_enqueue_script( 'wcqi-number-polyfill' );
}
`
== Installation ==
1. Upload `woocommerce-quantity-increment` to the `/wp-content/plugins/` directory or search for 'WooCommerce Quantity Increment' from **Plugins > Add New**.
1. Activate the plugin through the 'Plugins' menu in WordPress
== Frequently Asked Questions ==
= I don’t want to use the plugin styles as it looks bad with my theme =
You can add the following to your `functions.php` file:
`
add_action( 'wp_enqueue_scripts', 'wcs_dequeue_quantity' );
function wcs_dequeue_quantity() {
wp_dequeue_style( 'wcqi-css' );
}
`
This will dequeue the plugin’s stylesheet.
== Changelog ==
= 1.2.0 23-10-2023 =
* Update to support the new woo single product setting "Limit purchases to 1 item per order"
* Update to support changing product items in the cart.
= 1.1.0 =
* Updated to work with the WooCommerce 2.6 cart ajax script.
= 1.0 =
* Initial Release