[WordPress] 外掛分享: Quantity Plus Minus Button for WooCommerce

首頁外掛目錄 › Quantity Plus Minus Button for WooCommerce
WordPress 外掛 Quantity Plus Minus Button for WooCommerce 的封面圖片
10,000+
安裝啟用
★★★★
4.4/5 分(30 則評價)
23 天前
最後更新
0%
問題解決
WordPress 4.0.0+ PHP 5.4+ v2.0.5 上架:2020-06-30

內容簡介

這個 WooCommerce Quantity Plus/Minus Button 外掛能夠在商品頁面中的數量輸入欄位上添加美觀的數量增加/減少按鈕,同時支援自定義設計和小數數量功能。使用者可以自定義按鈕的顏色和樣式,並在任何地方添加這些按鈕,如單一頁面、迴圈中的數量輸入以及購物車等。

功能:

👉 支援數量步驟
👉 支援小數數量
👉 自定義按鈕設計
👉 可自定義按鈕背景色和懸停效果
👉 可自定義按鈕文字顏色和懸停效果
👉 可自定義邊框顏色和懸停效果
👉 可自定義邊框寬度
👉 可設置自訂邊框半徑
👉 提供即時客戶支援
👉 文件完備
👉 代碼註解完備
👉 代碼清晰易懂
👉 和所有主題相容
👉 和所有外掛相容
👉 和 Woo Product Table 相容
👉 相容於最新版本的 WordPress
👉 相容於最新版本的 WooCommerce

範例連結

篩選器

您可以使用此篩選器來驗證表單數據

add_filter( 'wqpmb_default_form_panel_validation', '__return_true' );

使用篩選器在管理頁面上啟用或禁用核取方塊

add_filter('wqpmb_checkbox_row_validation', '__return_true' );

使用篩選器驗證 CSS

add_filter('wqpmb_css_row_validation', '__return_true' );

使用預設 WooCommerce 設定

add_filter('wqpmb_show_validation', '__return_true');

在產品頁面上隱藏

add_filter('wqpmb_on_product_page', '__return_false');

在購物車頁面上隱藏

add_filter('wqpmb_on_cart_page', '__return_false');

在迷你購物車頁面上隱藏

add_filter('wqpmb_on_mini_cart_page', '__return_false');

使用以下勾子更改範本基本目錄

add_filter('wqpmb_template_base_dir', $template_base_dir);

操作

使用此操作 在核取方塊之後添加新的內容

do_action( 'wqpmb_checkbox_row', $our_data, $datas );

使用以下動作勾子新增 CSS 行

do_action( 'wqpmb_css_row' );

使用以下操作勾子添加新行

do_action( 'wqpmb_form_row' );

👷 榮譽貢獻者 – GitHub 👷

codersaiful (53 次提交 1,965 行 )
unikforceit (1 次提交 5 行 )
fazlebarisn (1 次提交 11 行)
autocircled (1 次提交 110 行 )
👉 點此加入

🥇 貢獻 🥇
歡迎您對此專案做出貢獻。加入我們

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Quantity Plus Minus Button for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Quantity Plus/Minus Button for WooCommerce plugin add beautifully designed quantity buttons for WooCommerce quantity input box on the product page which also support for decimal quantity. Easily add plus, minus button for WooCommerce Quantity Input box in everywhere. Such: Single Page, In Loop Quantity input, Cart page etc with custom design. User able to get custom/own color for his plus or minus button.
Features
👉 Quantity step supported
👉 Decimal quantity supported
👉 Customizable button design
👉 You can customize button background color and hover
👉 You can customize button text color and hover
👉 You can customize border color and hover
👉 You can customize border width
👉 You can set custom border radius
👉 Live customer support for any Issue.
👉 Well documented
👉 Well commented
👉 Clean code
👉 Compatible with all themes
👉 Compatible with all plugins
👉 Compatible with Woo Product Table
👉 Compatible with the latest version of WordPress
👉 Compatible with the latest version of WooCommerce
Demo Link
Filter
Enable Ajax add to cart for Single Product Page.
add_filter('wqpmn_ajax_cart_single_page', '__return_true' );

On off checkbox in admin page using filter
add_filter('wqpmb_checkbox_row_validation', '__return_true' );

CSS validation using filter
add_filter('wqpmb_css_row_validation', '__return_true' );

Use default WooCommerce template
add_filter('wqpmb_show_validation', '__return_true');

Hide on product page
add_filter('wqpmb_on_product_page', '__return_false');

Hide on cart page
add_filter('wqpmb_on_cart_page', '__return_false');

Hide on Mini Cart page
add_filter('wqpmb_on_mini_cart_page', '__return_false');

To Change Templae Base Directory, Use following Hook
In that directory, template files folder will be locate
add_filter(‘wqpmb_template_base_dir’, $template_base_dir);
👷 HONORABLE CONTRIBUTOR – GitHub 👷

codersaiful (53 commits 1,965 ++ )
unikforceit (1 commit 5 ++ )
fazlebarisn (1 commit 11 ++ )
autocircled (1 commit 110 ++ )
mdibrahimk48 (3 commit 5++)
👉 You can join here

🥇 CONTRIBUTE 🥇
You are welcome to contribute to this project. Join with us Fork Github repository. If you contribute 1 commit, We will add your name to our plugin’s Contributor table/list of WordPress Plugin too.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon