manospsyx / WooCommerce-Quantity-Increment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

=== Plugin Name ===
Contributors: woothemes, bryceadams
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@woothemes.com&item_name=Donation+for+WooCommerce
Tags: woocommerce, woothemes, quantity, quantity increment, quantity buttons
Requires at least: 3.6.1
Tested up to: 4.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

WooCommerce Quantity Increment re-adds the quantity buttons deprecated in WooCommerce 2.3

== Description ==

In WooCommerce 2.3, the quantity increment buttons have been deprecated, as most browsers now support `<input type="number" />`.

However, you may want to keep them. Simply install and activate this plugin to do so.

It optionally includes [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 it, add something like this to your `functions.php`:

`
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.

== Screenshots ==

1. The Quantity Increment buttons

== Changelog ==

= 1.0 =
* Initial Release

About


Languages

Language:CSS 45.0%Language:PHP 41.5%Language:JavaScript 13.5%