Directory / plugin

SMNTCS Quantity Increment Buttons for WooCommerce

v2.8 · by Niels Lange

Adds plus and minus buttons to the WooCommerce quantity field on product and cart pages.

About this plugin

SMNTCS Quantity Increment Buttons for WooCommerce adds minus and plus buttons around the quantity field on the product page and in the classic cart, so customers can change the quantity with one click. The buttons respect the minimum, maximum and step of each product, which makes the plugin work with quantity plugins such as Min/Max Quantities.

Compatible with

Filters

Add these lines to your theme’s functions.php file or a small plugin.

Swap the order of the buttons to plus, quantity, minus:

add_filter( 'flip_quantity_buttons', '__return_true' );

Turn the buttons off on the product page or on the cart page:

add_filter( 'show_on_product_page', '__return_false' );

add_filter( 'show_on_cart_page', '__return_false' );

Use <button> elements instead of <input type="button">:

add_filter( 'use_html_buttons', '__return_true' );<h3>Contribute</h3>

Contributions are more than welcome. Simply head over to GitHub and open a pull request.

Plugin tags