跳到内容

SMNTCS Quantity Increment Buttons for WooCommerce

v2.8

Niels Lange · 2018年3月28日 上架

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

正在使用
2,000+
评分
4.5 / 5
累计下载
7 万
最近更新
2026年9月27日
20 条评价需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+

截图

WooCommerce Quantity Buttons on the product page.
WooCommerce Quantity Buttons on the product page.
WooCommerce Quantity Buttons on the cart page.
WooCommerce Quantity Buttons on the cart page.

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums