這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Quote Calculator Constructor

描述

This plugin allow you to create WordPress quote system, loan calculators and other quotation and calculation systems.
Plugin have easy to use interface that will allow you to make calculation systems with few clicks.

WordPress plugin, that allow you to create instant quote calculator forms can be used in any niche of Web business.

So basicaly editor of Quote Form consists of rows, each row have columns, and inside each column you can add different blocks that perform data manipulations.

SO main types of datablocks are:
Text – this block can be used to output text data. Like some info text for user.
Input – input field with some info. Here user can enter some numerical value that will be used for calculations.
Select – list of predefined values, that can be used in calculations.
Output – this block is used to output calculation results. In this block you can enter formulas, using values for input fields and select fields.

You can see live example of calculator http://voodoopress.net/dummy-calculator/

New feature!

Version 1.2 have new feature – dynamica calculations functionality. Now you can add calculations to any forms you made. No need to use default forms editor. To use this feature you need to have pretty little CSS/HTML knowledge. SO you can apply calculations e.g. to mega popular plugin Contact Form 7.

Here http://voodoopress.net/cleaning-request/ you can find example of usage. You can find more detailed instruction for integration in FAQ and example of settings below form on this page http://voodoopress.net/cleaning-request/

螢幕截圖

  • Backend form editor
  • Front view of form

安裝

Installation is pretty simple:
1. Upload plugin
2. Activate plugin
3. Find new menu “Calculators”
4. Create calculators with Constructor interface
5. Use calculator shortcode to put it on pages.

常見問題

How to put calculator on page?

To put calculator on page you can use shortcode [custom_calculator id=’CALC_ID’]

What is correct way to make formulas?

Each field have ID inside. It is autogenerated on creation, but you can set any ID you like. Main thin – it should be no space lowercase string.
So e.g. if you have input field with ID: main_value. And have select with ID: select_value. Then in output block you can enter formula main_value+select_value to output summ of those values. Pretty easy.

How to apply calculation to custom form?

To apply calculations to forms you need to have – input blocks – like text input fields.
And output block – it should be any html tag like div or span.

So for all fields that you need take data from you need to set ID attribute.

For output block – you neeв to add there class output_container. SO script will know that you want to output data in this block and add there attribute data-formula with calculations inside.
So e.g. you have input with id=”input_1″ and input with id=”input_2″. And you need to output summ of those values – you need to set data-formula to data-formula=”input_1+input_2″

Thats all. You can see example with source of form here http://voodoopress.net/cleaning-request/

To put calculator on page you can use shortcode [custom_calculator id=’CALC_ID’]

評價

閱讀全部1個評價

貢獻者及開發者

“Quote Calculator Constructor” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Quote Calculator Constructor 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

V 1.2 Custom forms functionality