#
Field Types
The plugin comes with several built-in fields to be used on the product page. Please contact us if you need to add new field types. We are working on the ability to build custom fields as extensions for the plugin. We would like to meet your expectations as much as possible.
Each field has its own parameters, but some parameters are the same for every field. See the list below:
Field's HTML code can be modified
See Templates section to know how to modify HTML code of any field.
#
Number
Number Field is the basic field to use in the plugin. It is standard single-line input field, which takes a numeric value and can be used in a formula/expression.
This field is required by default.
<input type="number"...>
#
Select
Select Field is a standard dropdown field. You must define numeric value of options, because this field is used in the formula/expression.
This field is required by default.
<select...>
<option value="1.50">Option A</option>
<option value="3.00">Option B</option>
<option value="5.50">Option C</option>
</select>
#
Checkbox
<input type="checkbox"...>
#
Color Picker
Color Picker is a standard input text field with jQuery wpColorPicker and IRIS. JS files are bundled in the Wordpress Core.
#
Date Picker
Date Picker is a standard input text field with jQuery UI Datepicker. JS files are bundled in the Wordpress Core.
#
Range Date Picker
Range Date Picker includes two Date Picker fields connected with each other.
#
Dropdown
Dropdown field is almost the same as Select field. This field accepts text values.
<select...>
<option value="Option A">Option A</option>
<option value="Option B">Option B</option>
</select>
#
Text
Note that defining Min. length greater than zero makes the field required. Even if you have not checked Required option.
<input type="text"...>
#
Textarea
Note that defining Min. length greater than zero makes the field required. Even if you have not checked Required option.
<textarea...></textarea>
#
E-mail
E-mail field is used to get e-mail address from the Customer input. This field has an e-mail validation test.
<input type="email"...>
#
Radio
Radio field is used to display a group of radio buttons. It has similar funcationality to the Select field, so u can use option's values in the formula/expression.
This field is required by default.
<label for="..."><input type="radio"...>Option A</label>
<label for="..."><input type="radio"...>Option B</label>
<label for="..."><input type="radio"...>Option C</label>
#
Checkbox Group (Multi Checkbox)
Checkbox Group is used to display a group of checkboxes. It is possible to define selection limit (i.e. customer can choose max 2 options).
Multi Checkbox can be used in the expression, for example: is_selected({multi_cb}; 10)
checks if user selected the option with value "10". You can also use built-in variables {multi_cb:min}
(minimal selected value), {multi_cb:max}
(maximal selected value), {multi_cb:sum}
(sum of selected values)
#
Color Swatches
Color Swatches are shown as square thumbnails, which may be selected by a customer. Each options has a numeric value to use in a formula.
#
Image Swatches
Image Swatches works like Color Swatches, but you can define images instead of colors.
#
Image Select
Image Select works similar to Image Swatches, but you can define Caption/Title for each image option.
#
Static: HTML
Displays content from a HTML code. It is filtered by wp_kses_post
.
You can use dynamic expression in the contents, for example: {={field_1}*{field_2}/1000}
#
Static: Attachment
You can add file/media attachment, to be downloaded by the Customer on product page.
#
Static: Heading
You can add heading h1-h6 in product page
#
Static: Paragraph
You can add text in paragraph tag in product page.
You can use dynamic expression in the contents, for example: {={field_1}*{field_2}/1000}
You can add hidden input fields to store predefined values. This field does not accept user input.
<input type="hidden"...>
#
Static: Link
You can add link to any website, file attachment, URL.
#
Image upload
You can get image file from the customer. Files are saved in customer directory on checkout. Go to Settings Page to set cron jobs invervals. Files are uploaded to the temp directory and will be deleted after time. Files will be kept longer if the customer places an order. Customer files will be deleted after 360 days (default option), but you can set your own interval.
You can use {field_name:size}
variable in formulas to get uploaded image file size in [MiB]
#
Special: Formula Value
This field is not showed on the product page. You can write your own formula and save the value in order item meta data. Value of the field may be displayed on user's cart. Hint: you can use {total_price}
in your formula to get total product price calculated by WCK plugin.
⚡ Donate ⚡
This plugin is absolutely FREE with PRO features. It will always be free, so please donate if you like it!