6.2 - Field Types - WPC
WooPrice Calculator field types can be:
- Checkbox: A checkbox is shown, meaning the visitor can only choose between two values
- Numeric: The visitor can place a numeric value, both whole or with decimals
- List: The visitor can choose a value from a predetermined list. Warning: WPC doesn't support default Excel drop-down feature, so you should create the list manually using the "field list" inside the plugin.
- Text: The visitor can type in any sequence of characters in the desired font
- Date: The visitor can choose a date from the calendar
- Time: The visitor can choose a time from the calendar
- Date & Time: The visitor can choose the date and the time from the calendar
- Radio Group: Allows to place a group of choices "Radio Button" style
- Image List [Added from version 2.2.0]: Your customer can select an Image from a popup list of Images.
- Upload [Added from version 2.3.2]: An upload field gives the visitor the possibility to upload one or more files of different types. The memory limit is inherited from the one specified by the system itself or Wordpress settings.
Important: All these fields have some further specifications and details mentioned below. Please have a look and it will help you understand and use them in a better way.
In the case of a Checkbox it's possible to set:
- Default Status: If set to "Unchecked", the checkbox will be empty. Otherwise, it will have the check.
- Checked Value: The value that will be used by the calculator when the visitor checks the checkbox
- Unchecked Value: The value that will be sued by the calculator when the visitor leaves the checkbox unchecked
In the case of a Numeric type it's possible to set:
- Default Value: The value seen by the visitor when the page is opened. This parameter is also used to calculate the default price in the WooCommerce Shop Page.
- Maximum Value: The maximum numeric value allowed. Beyond this, an error message warning that the Maximum value has been reached will be displayed
- Maximum Value Error Message: Error seen if the Maximum Value is surpassed
- Minimum Value: The minimum numeric value allowed. Below this, an error message warning that the Minimum value has been reached will be displayed
- Minimum Value Error Message: Error seen if the Minimum Value is breached
- Number of Decimals: Number of decimals that the visitor can use. The default number of decimals is 2
- Decimal Separator: Decimal separator used in a numeric value. The default decimal separator is set to "."
In case of a List or Radio Group, it's possible to set the items that will be shown. Click on "Add" to add new items, or click on "x" to remove them from the list. An item can be edited by clicking on the "pen" icon, while the order in which they should be displayed can be changed by simply "dragging & dropping" them.
it's possible to set for each item:
- Label: The label of the item.
- Value: The value of the item. It can only be a numeric value.
- Default Option: Set an option which you want to show your customers as default selected value
- Order details: You can add additional information inside the customer order (WooCommerce Order) by writing in this field.
Using Radio Group you can also set an Image for each radio item.
In the case of a Text type, it's possible to set:
- Default Value: The value seen by the visitor when the page is opened. This parameter is also used to calculate the default price in the WooCommerce Shop Page.
- Validation Regex Rule: Regex rules are a powerful validation tool. A Regex rule can be used to validate a field; for example, if an email address has been typed in and so on, a rule can be set to check if all the letters placed are either capital letters or not.
- Regex Error Message: If the Regex rule is not respected, the error message placed here will be displayed
In case of an Image List field, you can add a new image by clicking on "Add". The following options let you:
- Image Field Width: Change the width of the image displayed on the product page.
- Image Field Height: Change the height of the image displayed on the product page.
- Image Popup Width: Change the width of the list of images displayed in the popup window.
- Image Popup Height: Change the height of the list of images displayed in the popup window.
In case of Date, Time, Date Time, the following options let you:
- Default Value: If "Empty" the date/time field will be empty. If "Spreadsheet Value" is selected, WPC gets the value from the Input Field mapped in your Spreadsheet. This way you can use formulas like "TODAY()" to get the actual date or time.
- Format: Change the date/time format