
內容簡介
概述
使用PVB Contact Form 7 Calculator,您可以輕鬆將任何Contact Form 7 表單轉換為計算器。計算字段基於用戶輸入和表單中其他部分的選擇。該外掛可用於創建各種類型的計算器,例如理想體重計算器、卡路里計算器、酒店預訂報價計算器、汽車租賃報價計算器、抵押貸款計算器、稅收計算器、金融計算器、日期計算器等。
特點
高級計算 - 基於用戶輸入設置自定義公式,例如:
cost_per_day * days * (1 + (tax_percentage / 100))
隱藏計算字段 - 可以對用戶可見或不可見。您可以自行選擇!
服務器端計算 - 您不必洩露您的機密公式!計算在後台,通過服務器執行。
點擊按鈕進行計算 - 可以讓您的用戶觸發計算,而無需提交表單。
提交時計算 - 值始終在提交時計算,因此您可以在通知電子郵件中使用它們。
其他事件計算 - 您還可以從另一個腳本隨時觸發計算!
正確的浮點數學 - PVB Contact Form 7 Calculator Pro 正確處理十進制浮點數,不像許多在轉換為二進制和返回時引入舍入誤差的在線計算器,導致不正確的結果(例如 0.6 + 0.3 = 0.8999)。
多個計算字段(僅Pro版) - 可以在同一表單中擁有一樣多的計算器!
中間計算步驟(僅Pro版) - 計算字段可以基於其他計算字段。它們按順序從上到下進行評估。
將數值分配給文本字段(僅Pro版) - 例如,您可以為下拉菜單中的每個選項指定特定價格。
PayPal 和 Stripe 統合(僅Pro版) - 基於計算金額,從您的網站訪問者那裡接受付款。
貨幣轉換(僅Pro版) - 在您的公式中使用最新的貨幣匯率。
自定義 PHP 代碼(僅Pro版)- 計算器對您來說不夠高級?現在您可以在計算公式中運行任何 PHP 代碼。由於安全原因,此功能默認為禁用,您必須從“選項”頁面顯式啟用它。
參考外部試算表(僅Pro版)- 需要經常更新您的價格列表?計算器可以從各種格式的在線試算表中查找數據(Google Sheets、Excel、CSV 等)。
計算旅行距離和時間(僅Pro版)- 與 Google Maps API 整合允許您使用地址和位置。
示範
我們準備了示範,以讓您測試 PVB Contact Form 7 Calculator 的功能。
外掛標籤
開發者團隊
② 後台搜尋「PVB Contact Form 7 Calculator」→ 直接安裝(推薦)
原文外掛簡介
Overview
With PVB Contact Form 7 Calculator, you can easily turn any Contact Form 7 form into a calculator. Calculated fields are based on user input and selections in other parts of the form. The plugin can be used for creating various types of calculators, such as an ideal weight calculator, calorie calculator, quote calculator for hotel booking, car rental quote calculator, mortgage calculator, tax calculator, finance calculators, date calculator, etc.
Features
Advanced calculations – set your custom formula based on user input, for example:
cost_per_day * days * (1 + (tax_percentage / 100))
Hide calculated fields – they can be visible to the user or not. Your choice!
Server-side calculation – you don’t have to disclose your top secret formula! Calculations are performed behind the scenes, on the server.
Calculate on button click – you can let your users trigger the calculations without submitting the form.
Calculate on submit – values are always calculated on submit, so you can use them in your notification emails.
Calculate on other events – you can also trigger calculations from another script at any time!
Correct floating-point math – PVB Contact Form 7 Calculator Pro handles decimal floating-point math properly, unlike many online calculators that introduce rounding errors when converting to binary and back, yielding incorrect results (such as 0.6 + 0.3 = 0.8999).
Multiple calculated fields (Pro version only) – you can have as many as you like in the same form!
Intermediate calculation steps (Pro version only) – calculated fields can be based on other calculated fields. They are evaluated in order, from top to bottom.
Assign numeric values to text fields (Pro version only) – for example, you can assign a specific price to each choice in a drop-down menu.
PayPal and Stripe integration (Pro version only) – accept payments from your website visitors based on the calculated amount
Currency conversion (Pro version only) – use up-to-date currency exchange rates in your formulas.
Custom PHP code (Pro version only) – the calculator is not advanced enough for you? Now you can run any PHP code in your calculation formulas. For security reasons, this feature is disabled by default and you must explicitly enable it from the Options page.
Reference external spreadsheets (Pro version only) – need to update your price list frequently? The calculator can look up data from an online spreadsheet in various formats (Google Sheets, Excel, CSV…)
Calculate travel distance and time (Pro version only) – integration with Google Maps API allows you to work with addresses and locations.
Live demo
We have prepared a Live Demo to let you test the capabilities of PVB Contact Form 7 Calculator.
Video tutorial
Pro version
If you like PVB Contact Form 7 Calculator, please consider upgrading to our Pro version. It lets you have multiple calculated fields per form, calculations based on text values (such as drop-down menus), integrate your calculator with PayPal, Stripe and Google Sheets, and other great features scheduled for future releases.
WP Admin Notices
This plugin generates an Admin Notice in the WP Admin dashboard. It will invite you to rate our plugin or consider upgrading to the Pro version. These notices may annoy or confuse certain users, but are appreciated by the majority of our userbase, who understand that these notices support our free contributions to the WordPress community.
If you feel that these notices are too annoying, then we encourage you to consider our Pro version, or even consider developing your own plugins for WordPress, if supporting free plugin authors is too frustrating for you. A final alternative would be to place the defined constant mentioned below inside of your wp-config.php file to manually hide this plugin’s nag notices:
define('DISABLE_NAG_NOTICES', true);
Note: This defined constant will only affect the notices mentioned above, and will not affect any other notices generated by this plugin, such as one-time notices that communicate with admin-level users.
