Quantity Increment Buttons for WooCommerce

Description

In WooCommerce 2.3, the quantity increment buttons have been depreciated, 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, 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', 'wcqib_enqueue_polyfill' );
function wcqib_enqueue_polyfill() {
    wp_enqueue_script( 'wcqib-number-polyfill' );
}

Installation

  1. Upload woocommerce-quantity-increment-buttons to the /wp-content/plugins/ directory or search for ‘Quantity Increment Buttons for WooCommerce’ 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', 'wcqib_dequeue_quantity' );
function wcqib_dequeue_quantity() {
    wp_dequeue_style( 'wcqib-css' );
}

This will dequeue the plugin’s stylesheet.

Contributors & Developers

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

Contributors

Changelog

1.1

  • WC 2.6 cart compatibility

1.0.1

  • fixed whitespace issue

1.0

  • Initial Release