plugin-icon

SMNTCS Quantity Increment Buttons for WooCommerce

作者:Niels Lange·
Display the quantity increment buttons on the WooCommerce product page and the WooCommerce cart page.
评级
4.5/5
版本
2.6
活跃安装
3K
最后更新
Dec 31, 2024
SMNTCS Quantity Increment Buttons for WooCommerce

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.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.7.4
这个插件是可用的下载,适用于您的站点。