WordPress form builder plugin, which you can create Price Calculator & Cost Estimation forms.
Caution
Since AForms v2.0.0, settings file (.toml file) is no longer supported.
Although uncommon for WordPress plugins, AForms has a settings file.
We, AForms developers, assume that the site creator and the site owner are separate.
The fact that the design can be customized with scss, comes from the same idea. Usually, the site owner cannot edit scss.
So, making “the creator of the site create a better site faster” is one of the hidden goals that AForms aims for.
When a site creator wants to control the behavior of AForms, it is the settings file to do so in the easiest way.
The settings file exists to change the default behavior of AForms. AForms works fine without the settings file.
AForms comes with a sample settings file. It is located at:
wp-content/plugins/aforms/aforms.toml.sample
Use this as a template for your settings file. To enable it, change the file name to aforms.toml
.
The settings file is in toml format.
name = value
. name
is the parameter name, and value
is the parameter value. To setup AForms, both should be enclosed in "
.[secion]
format. Sections are to separate parameters for their groups.# comment
format.See below for details on toml format:
https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md
The AForms settings file has the general
section and the words
section.
The general
section is for general settings for AForms. There is only one parameter that can be set in the general
section.
stylesheet
: In words
section you can set the wording used in AForms. There are a lot of parameters because you can set all the words used in the form.
The name of the parameter is the “text itself” enclosed in "
. Since the AForms text was originally written in English, the parameter name is in English.
Write the word you want to display in the parameter value.
"""
. It is OK if there is a line break in between."
in the parameter value: \"
instead of "
.The list of words that can be set is listed in List of words that can be set.
The configuration file should be placed in the theme folder of the active theme or in the AForms plugin folder.
We highly recommend the former.
The file name is aforms.toml
.
By default, the form submit button is labeled “Submit”, but this is not always appropriate. In this example, let’s change the label of the submission button to “Apply with this quote”.
"Submit" = "Apply with this quote"
Add the above parameter to the [words]
section of the settings file.
To change the currency notation, change the units displayed before and after the price. the euro symbol is usually written before the amount, while some currency is written after the amount.
"$pricePrefix" = "€"
"$priceSuffix" = ""
In addition, it is necessary to change the detail line of the thank-you email.
The following parameter is special because it instructs how to combine words. Please watch the following line with imagine: In the place %s
is written, the product name, quantity and price will be entered.
"%s (x %s) $%s" = "%s (x %s) €%s"
Write the above three settings in the [words]
section of the settings file.