SMNTCS WooCommerce Quantity Buttons

plugin banner

Display quantity buttons on WooCommerce product page

Author:Niels Lange (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.4.3
Plugin version:2.5
Added to WordPress repository:28-03-2018
Last updated:02-10-2023
Rating, %:90
Rated by:20
Plugin URI:https://github.com/nielslange/smntcs-quantity...
Total downloads:56 622
Active installs:3 000+
plugin download
Click to start download

Increment Quantity Buttons for WooCommerce adds two additional buttons to the quantity input field on the WooCommerce product page to easily increase and decrease the quantity via button click.

Compatible with

Filter

Since 1.13 it’s possible to flip the -/+ buttons to +/-. To do that, please add the corresponding filter to your functions.php file:

Flip quantity buttons:

add_filter( 'flip_quantity_buttons', '__return_true' );

Since 1.9 it’s possible to disable the plugin on the product page and/or the cart page. To do that, please add the corresponding filter to your functions.php file:

Disable plugin on product page:

add_filter( 'show_on_product_page', '__return_false' );

Disable plugin on cart page:

add_filter( 'show_on_cart_page', '__return_false' );

Since 2.2, it’s possible to use <button> instead of <input type="button"> for the quantity buttons. To do that, please add the corresponding filter to your functions.php file:

*** Use <button> instead of <input type="button"> ***

add_filter( 'use_html_buttons', '__return_true' );

Contribute

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


Screenshots
ChangeLog