WooCommerce Quantity Increment

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, 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.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

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.

Reviews

Adds 2 instead of 1 quantity

Looked everywhere for a solution but cannot find one, after activating this plugin, people can only add 2 quantity at a time to the cart. So it starts on 1, then 3 then 5 etc…

Работает через жопу

Добавляет плюс и минус, но старые стили не убирает. Получается винигрет.
А если надо ковыряться самому и допиливать – то нафига тогда вообще плагин ?

Worked perfectly

Plugin worked perfectly and brought back the +/- options on the quantity boxes. Thanks

Read all 19 reviews

Contributors & Developers

“WooCommerce Quantity Increment” is open source software. The following people have contributed to this plugin.

Contributors

“WooCommerce Quantity Increment” has been translated into these 2 locales: Japanese, Dutch. Thank you to the translators for their contributions.

Translate “WooCommerce Quantity Increment” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.

Changelog

1.1.0

  • Updated to work with the WooCommerce 2.6 cart ajax script.

1.0

  • Initial Release