前言介紹
- 這款 WordPress 外掛「Order Tip for WooCommerce」是 2020-08-17 上架。
- 目前有 2000 個安裝啟用數。
- 上一次更新是 2025-02-04,距離現在已有 88 天。
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 15 人給過評分。
- 論壇上目前有 3 個提問,問題解答率 33%
外掛協作開發者
外掛標籤
tip | order | donation | ecommerce | woocommerce |
內容簡介
Order Tip for WooCommerce 是一款外掛,允許顧客為 WooCommerce 訂單添加小費或捐款。小費以 WooCommerce 費用的形式添加。
它允許小費是訂單總額的百分比或固定的自定義金額,還提供現金小費選項,該選項將小費標記為價值為0,但您應該在顧客交付產品或在提取訂單時期望小費。
還有一個添加自定義小費的選項,它會彈出一個文本框,顧客能夠輸入自定義金額,並隨後將其添加到訂單中。
小費可以根據 WooCommerce 中當前的稅務選項設置是否向稅收,它具有6種標準小費率(5,10,15,20,25,30),可以通過篩選器進行擴展-請參見開發人員部分以下內容。
它在 WooCommerce 設置面板的訂單提示選項卡中具有各種配置選項。
外掛的後端已翻譯為德語,瑞士德語,西班牙語,法語,意大利語,羅馬尼亞語。
荷蘭語支持已添加,感謝 Roel Mehlkopf(@mhlkpf)。
此處查看演示:
實時預覽
觀看安裝和使用該插件的視頻
重要提示:
此插件即插即用,基本上不需要任何主題上的編程技能。然而,它使用 JavaScript 添加小費到訂單中。如果由於某些原因它未按預期工作,請檢查您的瀏覽器控制台是否有任何 JS 錯誤或在支持選項卡頁面留下您的網站鏈接。
使用 Astra 或 Neve 主題的網站應該避免使用“客戶詳細信息位置”來顯示小費表單。它可能破壞佈局,導致訂單審核側欄落在客戶詳細信息之下。
開發人員
如果需要擴展或編輯核心功能,可以使用幾個篩選器連接到:
wc_order_tip_title - 接受1個字符串變量,其中包含在表單之前顯示的標題;
wc_order_tip_rates - 接受1個數組變量,其中包含預定義的標準小費率的數值。您應返回一個簡單的數組,其中包含您希望添加的值。例如:array(10, 15, 30);
還有一些用於從不同的插件或活動主題動態更改各種字符串的篩選器:
wc_order_tip_title - 更改小費表單標題;
wc_order_tip_cash_label - 更改現金小費按鈕標籤;
wc_order_tip_custom_label - 更改自定義小費按鈕標籤;
wc_order_tip_custom_enter_tip_placeholder - 更改自定義小費字段占位符;
wc_order_tip_display_form - 防止在頁面上顯示小費表單。
還有一個後台的篩選器:
wc_order_tip_reports_date_time_format - 允許更改報告訂單創建日期/時間的日期格式。格式需要符合 PHP 日期格式,詳見此處:https://www.php.net/manual/en/function.date.php
原文外掛簡介
Order Tip for WooCommerce is a plugin that allows customers to add a tip or donation to a WooCommerce order. The tip is added under the form of a WooCommerce fee.
It allows the tip to be a percentage of the order total or a fixed custom amount. Cash tip is also available which marks the tip as 0 in value, but you should expect a tip on the delivery of your products or on the pickup of the order by the customer.
There is also an option for adding a custom tip which brings up a text field where the customer is able to type in a custom amount and which is subsequently added as a fixed amount to the order.
The tip can also be set to be taxed or not as per your current Tax options set in WooCommerce. It features 6 standard tip rates (5, 10, 15, 20, 25, 30) that can be extended through a filter – see below under the Developers section.
It features various configuration options in the WooCommerce Settings panel under the tab Order Tip.
The plugin’s backend is translated in German, Swiss German, Spanish, French, Italian, Romanian.
Dutch language support was added, thanks to Roel Mehlkopf (@mhlkpf).
Check out a demo here:
Live Preview
Check out a video on installing and using the plugin
Important Notes
The plugin works out of the box, with no coding skills required on basically any theme. However, it uses JavaScript for adding the tip to the order. If for some reason it doesn’t work as expected, please check your browser’s console for any JS errors or drop a line here in the Support tab providing a link to your website.
Websites using the Astra or Neve theme should avoid using the “After customer details position” to display the tip form. It may break the layout causing the order review sidebar to fall under the customer details one.
Developers
There are a couple of filters you can hook into should you need to extend or edit the core functionality:
wc_order_tip_title – takes in 1 string variable which holds the title of the form which appears before the form;
wc_order_tip_rates – takes in 1 array variable which holds the values of the predefined standard tip rates. You should return a simple array containing the values you wish to add. Eg: array( 10, 15, 30 );
And a few other filters for changing various strings dynamically, from a different plugin or the active theme:
wc_order_tip_title – changes the tip form title;
wc_order_tip_cash_label – changes the Cash tip button label;
wc_order_tip_custom_label – changes the Custom tip button label;
wc_order_tip_custom_enter_tip_placeholder – changes the Custom tip field placeholder;
wc_order_tip_display_form – prevents the tip form from being displayed on the page.
And one filter for the backend:
wc_order_tip_reports_date_time_format – allows changing the date format of the reports order created date/time. The format needs to comply with the PHP date format. See more here
CSS classes and IDs that allow customization:
#wooot_order_tip_form – main form container
#wooot_order_tip_form button.woo_order_tip – regular tip buttons
#wooot_order_tip_form button#woo_order_tip_cash – cash tip button
#wooot_order_tip_form button#woo_order_tip_custom – custom tip button
#wooot_order_tip_form p.woo_order_tip_custom_text_field – row for the custom tip input box
#wooot_order_tip_form input.woo_order_tip_custom_text – custom tip input box
#wooot_order_tip_form button.woo_order_tip_apply – tip apply button
#wooot_order_tip_form button.woo_order_tip_remove – tip remove button
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Order Tip for WooCommerce」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.1 | 1.0.0 | 1.0.1 | 1.1.1 | 1.1.2 | 1.2.0 | 1.2.1 | 1.2.2 | 1.3.0 | 1.3.1 | 1.4.0 | 1.4.1 | 1.4.2 | 1.5.0 | 1.5.1 | 1.5.2 | trunk |
延伸相關外掛(你可能也想知道)
GiveWP – Donation Plugin and Fundraising Platform 》GiveWP 是為 WordPress 設計的最高評價、下載次數最多和支援最好的捐款外掛。不論您需要簡單的捐款按鈕或是針對線上捐款進行優化的強大捐款平台,GiveWP 都能...。
Donations via PayPal 》此外掛會在 WordPress 中新增 PayPal 捐款的短代碼和側邊欄小工具。使用選項選單可以設定 PayPal ID 和一些其他可選設定。你可以選擇要使用哪個捐款按鈕,或...。
Accept Donations with PayPal & Stripe 》總覽, 這個外掛可以讓您在您的網站上收取 PayPal 捐款。, 觀看這個簡短的 1 分鐘影片,了解此外掛如何運作:, , 您可以將 PayPal 捐款按鈕放置在您希望收款的...。
Charitable – Donation Plugin for WordPress – Fundraising with Recurring Donations & More 》pliant in just a few clicks with Charitable. Your donors’ data is protected and encrypted at all times., Charitable is also flexible and extensible...。
Donorbox – Free Recurring Donation Plugin and Fundraising Platform 》Donorbox是一款強大且安全的WordPress捐款管理外掛程式。我們是唯一提供快速且功能豐富解決方案的WordPress捐款外掛程式,任何人都可以募集資金。, 如果你正...。
Payment Button for PayPal 》Payment Button for PayPal外掛(也叫做 WP PayPal)讓你可以輕鬆建立PayPal的立即購買、加入購物車、捐款、或訂閱等按鈕。它會透過短碼產生動態按鈕,在你的...。
Donation Platform for WooCommerce: Fundraising & Donation Management 》最快成長的捐贈系統,適用於您的慈善機構、非政府組織或個人籌款活動, 示範 | 文件 | 入門, Donation Platform for WooCommerce(WooCommerce 捐贈平台)發揮...。
Buy Me a Coffee – Button and Widget Plugin 》「Buy Me a Coffee」這個 WordPress 外掛讓你更輕鬆地從你的博客、網站、或是專案訪客接受捐助,並且鼓勵他們成為你的付費支持者。, 只需幾分鐘的時間設置外...。
Better Payment – Instant Payments Through PayPal & Stripe 》Better Payment 可以讓您透過一個按鈕輕鬆地在 WordPress 站點上管理自己的付款結帳頁面,不會有任何麻煩。Better Payment 與 Elementor 完美整合,讓您可以...。
Paymattic – Secure, Simple Payment & Donation with Subscription Payments, Recurring Donations, Customer Management 》使用者指南 | 演示 | API, 想要在 WordPress 中接受簡單的付款和使用者輸入嗎?那麼 Paymattic 就是最適合您的外掛。, 利用 Stripe 結帳及內建的表單建立功能...。
WP Crowdfunding 》WP Crowdfunding 是一個基於 WooCommerce 的外掛,可讓任何人使用 WordPress 內容管理系統創建群眾募資網站。它非常易於使用和管理。大多數基本的 WP Crowdfu...。
Paytium: Mollie payment forms & donations 》ou can view the full list at Mollie., Mollie has an easy and straightforward setup process, and you can start accepting payments within 15 minutes....。
WP EasyPay – Create Your Payment Forms to Pay with Square – Square for WordPress Plugin: Integrate Square with WordPress to Collect Payments 》ent., , WP EasyPay 是一款快捷而安全的 WordPress 外掛,旨在簡化您的網站接受 Square 支付的方式。有了這個外掛,您可以立即開始接受網上信用卡支付,省略...。
Paystack Payment for Give 》Give 是其中一個最主要的 WordPress 捐款外掛程式之一。它功能強大、靈活且易於使用。, Paystack Payment for Give 讓尼日利亞、迦納、南非和肯亞的網站擁有...。
Potent Donations for WooCommerce 》Donations for WooCommerce 外掛可讓您透過 WooCommerce 商店接受各種不同的捐贈金額。它添加了一個「捐贈」商品類型,供最終用戶自訂價格。, 如果您喜歡這個...。