Title: SMNTCS Quantity Increment Buttons for WooCommerce
Author: Niels Lange
Published: <strong>28 Tháng 3, 2018</strong>
Last modified: 27 Tháng 9, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/smntcs-woocommerce-quantity-buttons/assets/banner-772x250.jpg?
rev=3715188)

![](https://ps.w.org/smntcs-woocommerce-quantity-buttons/assets/icon-256x256.jpg?
rev=3715188)

# SMNTCS Quantity Increment Buttons for WooCommerce

 Bởi [Niels Lange](https://profiles.wordpress.org/nielslange/)

[Tải về](https://downloads.wordpress.org/plugin/smntcs-woocommerce-quantity-buttons.2.8.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/)

## Mô tả

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

 * [Min and Max Quantity for WooCommerce](https://wordpress.org/plugins/minmax-quantity-for-woocommerce/)
 * [WooCommerce Composite Products](https://woocommerce.com/products/composite-products/)
 * [WooCommerce Min Max Quantity & Step Control Single](https://wordpress.org/plugins/woo-min-max-quantity-step-control-single/)
 * [WooCommerce Min/Max Quantities](https://woocommerce.com/products/minmax-quantities/)
 * [WooCommerce Minimum and Maximum Quantity](https://wordpress.org/plugins/woo-min-max-quantity-limit/)
 * [WooCommerce Product Bundles](https://woocommerce.com/products/product-bundles/)

### 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](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/pulls)
and open a pull request.

## Ảnh màn hình

[⌊WooCommerce Quantity Buttons on the product page.⌉⌊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.⌉[

WooCommerce Quantity Buttons on the cart page.

## Cài đặt

 1. Upload `smntcs-quantity-buttons-for-woocommerce` to the `/wp-content/plugins/` 
    directory.
 2. Activate the plugin through the `Plugins` menu in WordPress.

## Hỏi đáp

### Where are the settings?

The plugin has no settings page. Activate it and the buttons appear on the product
page and in the classic cart. Use the filters described above to change its behaviour.

### Does it work with the Cart block?

The Cart and Checkout blocks already have their own plus and minus buttons, so the
plugin leaves them alone. It adds its buttons to the product page and to the classic
cart.

### The quantity changes by 2 instead of 1. What can I do?

Some themes add their own quantity buttons. Since version 2.7 the plugin stops those
scripts from changing the quantity a second time. Update to the latest version.

### Does it respect minimum, maximum and step values?

Yes. The buttons move in steps and stay between the minimum and maximum. Values 
that customers type in are rounded to the nearest allowed value, which makes the
plugin work with plugins such as Min/Max Quantities.

## Đánh giá

![](https://secure.gravatar.com/avatar/87ac9269a51f12b82c33eb37b7004de25dcb5f8ca8066d3d1b577278c67d827c?
s=60&d=retro&r=g)

### 󠀁[Minor CSS Bugs](https://wordpress.org/support/topic/minor-css-bugs/)󠁿

 [Diamond Digtial Marketing (HK) Ltd](https://profiles.wordpress.org/diamonddmext/)
15 Tháng 9, 2023

Hi, Basically satisfied with the plugin as it delivered what it mentioned. Just 
a minor bug that in [Cart Page] Desktop version the [Plus] and [Minus] Button will
be stuck together (i.e. [Plus] in the top and [Minus] at the bottom, instead of [
Plus] in left of [Quantity Field] and [Minus] at the right of [Quantity Field]. 
I tested it in local clean environment where only wordpress 6.3.1 and woocommerce
8.0 are installed (i.e. no more any other plugin related to frontend is installed)
Hope can fix the bug and appreciate your effort.

![](https://secure.gravatar.com/avatar/0e84c7c359a88d08276cc8f39bc2f8d2e3631498ca7d3d17c2a5148a965dc3f6?
s=60&d=retro&r=g)

### 󠀁[Just works](https://wordpress.org/support/topic/just-works-681/)󠁿

 [papermoose1](https://profiles.wordpress.org/papermoose1/) 18 Tháng 11, 2021

Tried 2-3 other plugins before this, all the other ones have styles that can't be
dequeued and are hard to override in my theme. This plugin just does what I need,
leaves me to style it how I want which was quick and easy. Perfect, thank you!

![](https://secure.gravatar.com/avatar/5840ebcaf9367bce26656a17b020e56a52093e385e0fe86ecddcb5749933239a?
s=60&d=retro&r=g)

### 󠀁[Well done!](https://wordpress.org/support/topic/well-done-608/)󠁿

 [salesman.bg](https://profiles.wordpress.org/johristov/) 13 Tháng 11, 2020 1 trả
lời

Great job, thank you! Works as supposed.

![](https://secure.gravatar.com/avatar/fac4069aee00a04d3ba1a6c9fd9d55a694b8b10d213cbcc921879c63355e6565?
s=60&d=retro&r=g)

### 󠀁[Nice plugin](https://wordpress.org/support/topic/nice-plugin-but-bug/)󠁿

 [dyin](https://profiles.wordpress.org/dyin/) 2 Tháng 4, 2020 7 trả lời

Hi, I really like the plugin. However I had to rollback from the last update (from
1.14 back to 1.13). On the shopping cart page suddenly the number displayed as purchased
amount was 0. The total price was still correct though. Any known issues? UPDATE:
no longer an issue in 1.15. super fast problem resolve by plugin maker

![](https://secure.gravatar.com/avatar/b882d70564dbb4d5e58e5c98c7a641e1a16f863da8ab9bce5d6da09096d173bc?
s=60&d=retro&r=g)

### 󠀁[Just works](https://wordpress.org/support/topic/just-works-543/)󠁿

 [prokops](https://profiles.wordpress.org/prokops/) 28 Tháng 2, 2020 1 trả lời

Works right out of the box, thanks Niels 🙂 🇩🇰🇩🇰

![](https://secure.gravatar.com/avatar/9e4ac3347882b103ade1091c198ad238a3f3fd8a2164fbcb3860c0c3e581772b?
s=60&d=retro&r=g)

### 󠀁[Does not work](https://wordpress.org/support/topic/does-not-work-1146/)󠁿

 [Altcheb](https://profiles.wordpress.org/altcheb/) 13 Tháng 12, 2019 1 trả lời

Installed the plugin. Nowhere shows the selection of the quantity of the goods

 [ Đọc tất cả 20 đánh giá ](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/)

## Người đóng góp & Lập trình viên

“SMNTCS Quantity Increment Buttons for WooCommerce” là mã nguồn mở. Những người 
sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Niels Lange ](https://profiles.wordpress.org/nielslange/)
 *   [ derweltbuerger ](https://profiles.wordpress.org/derweltbuerger/)
 *   [ Marc Queralt i Bassa ](https://profiles.wordpress.org/marcqueralt/)

“SMNTCS Quantity Increment Buttons for WooCommerce” đã được dịch qua 4 ngôn ngữ.
Cảm ơn [những người tham gia dịch](https://translate.wordpress.org/projects/wp-plugins/smntcs-woocommerce-quantity-buttons/contributors)
vì đóng góp của họ.

[Dịch “SMNTCS Quantity Increment Buttons for WooCommerce” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/smntcs-woocommerce-quantity-buttons)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/smntcs-woocommerce-quantity-buttons/),
check out [SVN repository](https://plugins.svn.wordpress.org/smntcs-woocommerce-quantity-buttons/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/smntcs-woocommerce-quantity-buttons/)
qua [RSS](https://plugins.trac.wordpress.org/log/smntcs-woocommerce-quantity-buttons/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 2.8 (2026.09.27)

 * Remove duplicated FAQ entries from the readme
 * Rewrite the plugin description and the filter documentation

#### 2.7 (2026.09.26)

 * Test up to WordPress 7.1
 * Update development dependencies and GitHub Actions
 * Test up to WooCommerce 11.1
 * Fix the quantity changing by 2 when the theme has its own quantity buttons
 * Round typed quantities to the nearest step, minimum and maximum
 * Keep the minus button, the quantity field and the plus button on one line
 * Give every quantity field its own ID and label, and add accessible button labels
 * Stop the HTML button variant from submitting the form
 * Declare compatibility with the Cart and Checkout blocks
 * Replace the deprecated node-sass with sass

#### 2.6 (2024.12.31)

 * Test up to WordPress 6.7

#### 2.5 (2023.10.01)

 * Test up to WordPress 6.4

#### 2.4 (2023.05.27)

 * Add High-Performance Order Storage (HPOS) support

#### 2.3 (2023.03.11)

 * Test up to WordPress 6.2

#### 2.2 (2023.01.01)

 * [Fix step increment when changing shipping methods](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/88)
 * [Add toggle to use `<button>` instead of `<input type="button">`](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/90)

#### 2.1 (2022.12.03)

 * Test up to WC 7.1
 * Test up to WordPress 6.1

#### 2.0 (2022.10.02)

 * Test up to WC 6.9
 * Test up to WordPress 6.0

#### 1.26 (2022.01.01)

 * Test up to WordPress 5.8
 * Add support for Twenty Twenty theme
 * Add support for Twenty Twenty-One theme

#### 1.25 (2020.03.28)

 * [Fix max quantity problem](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/70)

#### 1.24 (2020.03.28)

 * [Fix quantity bug on single product page](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/67)

#### 1.23 (2020.02.08)

 * [Ensure that multiple quantities can be adjusted](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/65)

#### 1.22 (2020.02.07)

 * Fix JS error for empty cart

#### 1.21 (2020.02.07)

 * [Fix Vanilla JS bug](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/61)
 * Test up to WordPress 5.6

#### 1.20 (2020.11.30)

 * Test up to WC 4.5
 * Replaced the jQuery code with Vanilla JS

#### 1.19 (2020.09.13)

 * Updated plugin description

#### 1.18 (2020.09.13)

 * Test up to WC 4.4
 * Test up to WordPress 5.5
 * Updated plugin icon

#### 1.17 (2020.05.20)

 * [Add SMNTCS Retro theme compatibility](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/34)
 * [Adjust button styles on Twenty Twenty cart page](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/33)
 * [Declaring required and supported WooCommerce version](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/30)
 * [Rename handlers](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/35)
 * [Rename plugin slug](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/36)

#### 1.16 (2020.04.04)

 * [Fix grouped products issue](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/21)

#### 1.15 (2020.04.02)

 * [Fix nulled product quantity after release 1.14](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/24)
 * [Rename plugin to “SMNTCS Quantity Buttons for WooCommerce”](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/25)

#### 1.14 (2020.03.31)

 * [Add compatibility for grouped products](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/21)

#### 1.13 (2020.03.11)

 * [Add filter to flip buttons](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/17)
 * Test up to WC 4.0
 * Test up to WordPress 5.4

#### 1.12 (2019.12.06)

 * [Add compatibility for Twenty Twenty theme](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/11)
 * [Validate markup](https://github.com/nielslange/smntcs-quantity-buttons-for-woocommerce/issues/10)

#### 1.11 (2019.11.18)

 * Test up to 5.3

#### 1.10 (2019.06.28)

 * Add compatibility to [WooCommerce Composite Products](https://woocommerce.com/products/composite-products/)
   and [WooCommerce Product Bundles](https://woocommerce.com/products/product-bundles/)
 * Add compatibility for steps
 * Add button class for styling purposes
 * Adjust styling of quantity field on cart page

#### 1.9 (2019.06.13)

 * Add filter to disable the plugin on product and/or cart page

#### 1.8 (2019.06.08)

 * Fix ‘maximum and minimum’ issue

#### 1.7 (2019.05.31)

 * Check maximum and minimum when adding or removing quantity
 * Test up to 5.2

#### 1.6 (2019.05.30)

 * Refactor based on PHPCS and WPCS

#### 1.5 (2019.02.28)

 * Fix ‘Update cart’ issue

#### 1.4 (2019.02.21)

 * Test up to 5.1

#### 1.3 (2019.01.12)

 * Enable quantity buttons on cart page

#### 1.2 (2018.11.08)

 * Add compatibility to other [WooCommerce](https://wordpress.org/plugins/woocommerce/)
   extensions

#### 1.1 (2018.03.31)

 * Hide HTML5 input spinner

#### 1.0 (2018.03.28)

 * Initial release

## Meta

 *  Phiên bản **2.8**
 *  Cập nhật lần cuối **1 tháng trước**
 *  Số lượt cài đặt **2.000+**
 *  Phiên bản WordPress ** 5.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [Dutch](https://nl.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/),
   [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/),
   [English (US)](https://wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/),
   [German](https://de.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/),
   và [German (Switzerland)](https://de-ch.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/).
 *  [Dịch sang ngôn ngữ của bạn](https://translate.wordpress.org/projects/wp-plugins/smntcs-woocommerce-quantity-buttons)
 * Thẻ
 * [cart](https://vi.wordpress.org/plugins/tags/cart/)[plus-minus](https://vi.wordpress.org/plugins/tags/plus-minus/)
   [quantity](https://vi.wordpress.org/plugins/tags/quantity/)[quantity buttons](https://vi.wordpress.org/plugins/tags/quantity-buttons/)
   [woocommerce](https://vi.wordpress.org/plugins/tags/woocommerce/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/smntcs-woocommerce-quantity-buttons/advanced/)

## Đánh giá

 4.5 trên 5 sao.

 *  [  17 5-star reviews     ](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/reviews/)

## Những người đóng góp

 *   [ Niels Lange ](https://profiles.wordpress.org/nielslange/)
 *   [ derweltbuerger ](https://profiles.wordpress.org/derweltbuerger/)
 *   [ Marc Queralt i Bassa ](https://profiles.wordpress.org/marcqueralt/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/smntcs-woocommerce-quantity-buttons/)