
內容簡介
「Increment Quantity Buttons for WooCommerce」外掛在 WooCommerce 產品頁面的數量輸入欄位中加入了兩個額外的按鈕,以便透過按鈕點擊輕鬆增加和減少數量。
相容性
Min and Max Quantity for WooCommerce
WooCommerce Composite Products
WooCommerce Min Max Quantity & Step Control Single
WooCommerce Min/Max Quantities
WooCommerce Minimum and Maximum Quantity
WooCommerce Product Bundles
篩選器
從 1.13 版以後,可以翻轉 -/+ 按鈕為 +/-。請加入以下篩選器至您的 functions.php 檔案:
翻轉數量按鈕:
add_filter( 'flip_quantity_buttons', '__return_true' );
從 1.9 版以後,可以在產品頁面和/或購物車頁面停用外掛。請加入以下篩選器至您的 functions.php 檔案:
在產品頁面停用外掛:
add_filter( 'show_on_product_page', '__return_false' );
在購物車頁面停用外掛:
add_filter( 'show_on_cart_page', '__return_false' );
從 2.2 版以後,可以使用 <button> 替代 <input type="button"> 來製作數量按鈕。 請加入以下篩選器至您的 functions.php 檔案:
*** 使用 <button> 替代 <input type="button"> ***
add_filter( 'use_html_buttons', '__return_true' );
貢獻
歡迎貢獻。請前往Github提出 Pull Request。
外掛標籤
開發者團隊
② 後台搜尋「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
Min and Max Quantity for WooCommerce
WooCommerce Composite Products
WooCommerce Min Max Quantity & Step Control Single
WooCommerce Min/Max Quantities
WooCommerce Minimum and Maximum Quantity
WooCommerce Product Bundles
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
Contribute
Contributions are more than welcome. Simply head over to Github and open a pull request.
