[WordPress] 外掛分享: WooCommerce Quantity Increment

前言介紹

  • 這款 WordPress 外掛「WooCommerce Quantity Increment」是 2015-11-11 上架。
  • 目前有 300 個安裝啟用數。
  • 上一次更新是 2020-04-28,距離現在已有 1832 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.1 以上版本才可以安裝。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

greatwitenorth |

外掛標籤

spinner | quantity | woocommerce | quantity buttons | quantity increment |

內容簡介

WooCommerce 預設使用數字輸入框顯示購物車數量,因為現在大部分瀏覽器都支援 這個 HTML 標籤。

不過,如果您需要更多控制外觀,您可以安裝並啟用此外掛程式,使用 JavaScript 輸入框顯示數字。

此外掛程式可以選擇性地包含 Number Polyfill ,這是一個 HTML5 標籤的 polyfill,可以在還不支援該標籤的瀏覽器上使用。

若需要使用,只需在您的佈景主題的 functions.php 檔案中加入以下程式碼:

add_action( 'wp_enqueue_scripts', 'wcqi_enqueue_polyfill' );
function wcqi_enqueue_polyfill() {
wp_enqueue_script( 'wcqi-number-polyfill' );
}

原文外掛簡介

WooCommerce uses number inputs for the cart quantities by default, as most browsers now support .
However, you may want to have JavaScript powered inputs if you want greater control over appearance. Simply install and activate this plugin to do so.
It optionally includes a Number Polyfill, which is a polyfill for implementing the HTML5 element in browsers that do not currently support it.
To include this, add the following code to your theme’s functions.php file:
add_action( 'wp_enqueue_scripts', 'wcqi_enqueue_polyfill' );
function wcqi_enqueue_polyfill() {
wp_enqueue_script( 'wcqi-number-polyfill' );
}

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WooCommerce Quantity Increment」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.1 | 1.0.0 | 1.0.1 |

延伸相關外掛(你可能也想知道)

  • SMNTCS Quantity Increment Buttons for WooCommerce 》「Increment Quantity Buttons for WooCommerce」外掛在 WooCommerce 產品頁面的數量輸入欄位中加入了兩個額外的按鈕,以便透過按鈕點擊輕鬆增加和減少數量。...。
  • TG Product Quantity Plus Minus Button 》產品數量更新外掛將在產品數量輸入控制項旁加上數量增減按鈕,使用者可以在產品詳細介紹和購物車頁面上更改產品數量。該外掛與所有有數量控制的產品類型兼容...。
  • Easy Store Customizer 》總結:Easy Store Customizer 是一款輕量且易於使用的外掛程式,可以在不需要修改任何程式碼的情況下自訂您的 WooCommerce 商店。只需點擊幾下,即可調整商店...。

文章
Filter
Apply Filters
Mastodon