Total : 0.00 €

Woo Price Calculator User Manual

6 - How to create fields - WPC

Prior to creating the calculator which will be used on the product's page, the fields that will be used by the visitor to calculate a final price must be created.

You can create two kinds of fields on WooPrice Calculator:

  • Input Fields: The visitors will use these kinds of fields to input values. For example, you can use these fields to request the visitor to input Height and Width
  • Output Fields: The visitors will see the result in these kinds of fields. You don't need to create the output field "Price" because it's the default output field. For example, you can use the output field(s) to show the Weight calculated to the user by using Height and Width he previously entered.

To create a new field:

  1. Click on the "Fields" tab
  2. Click on "New Field", which will show you the field options. Input and Output fields could have different field options (See below).
  3. Insert the information relative to the field type chosen. See the Field Types chapter for more info.
  4. Click on "Save"

The following field options are the same both for Input and Output fields:

  • Field Name *: This is a read-only field. it's a unique identifier of your field which you can use inside your formulas and your themes as well.
  • Field Label *: This is the label that the field should have. The field will be shown in the product's folder, named with this label.
  • Short label: It's not mandatory, but you can write a short label for the field that will be shown in the cart. if empty the "Field Label" is used as default label.
  • Description: You can write a description here to help you remember what the field does.
  • Field Mode *: You can choose to create an input or an output field
  • Hide on cart if empty: If "Yes", it will hide the field on the cart if the field is empty (No value)
  • Hide on checkout if empty: If "Yes", it will hide the field on the checkout if the field is empty (No value)
  • Hide field on cart: If "Yes", it will hide the field on the cart
  • Hide field on checkout: If "Yes", it will hide the field on the checkout
  • Hide field on order: If "Yes", it will hide the field on the order

* means required field.

These are field options specific for Input fields:

  • Field Type *: The field type. See the Field Types chapter for more info.
  • Required: If "Yes" the visitor is required to put a value in the field (Also "0" is considered an empty value). If the field is empty, the error message "Required Error Message" will be shown to the visitor. If "Required Error Message" is not set, then a default error message will be shown.
  • Text after field: You can display some text by typing in this field. The text will be displayed right after the field.
  • Check Errors: If "Always", field errors are validated in Product Page, on Cart and on Add to cart. If "On cart and on Add to Cart", field errors are only validated on Cart and on Add to cart.

* means required field.

These are field options specific for Output fields:

Output fields can contain numbers or strings.

  • Hide field on product page: If "Yes", it will hide the field on the product page
  • Number of Decimals [Default is 2]: If the output is a number, it will be formatted with the number of decimals typed in
  • Thousand Separator: If the output is a number, it will be formatted with the thousand separator typed in
  • Decimal Separator [Default is . ]If the output is a number, it will be formatted with the decimal separator typed in

* means required field.

Image of adding a calculator field using WPC

Created fields could be used for different calculators. A field can be used by more calculators, therefore creating the same fields multiple times, such as "height" and "width", is not necessary.

The "Search" field can be used to find a field with certain characteristics.

In the "Actions" column you can:

  • Edit: Change the field options.
  • Clone: Duplicate the field, this will let you create a new field with the same options.
  • Delete: Delete the field. Please pay attention, because this action is not reversible.
Notes:
  • WPC Free and WPC Pro allow you to create unlimited fields.

Cart

Total : 0.00 €