Start adding fields to your product by clicking on the button “Add a new field”.
Each field has various properties:

Name: This property is used to identify the field in the Price Formula
It must be a simple name containing only alphabetic and numeric characters in addition to underscore.

Label: The label is displayed in the product page and can be translated to every language in your shop.
This will also be displayed in the cart, the order summary, invoices and emails.

Type: The field type will determine how the field is treated by the module.
User Input : will be displayed in front office along with its unit.
Fixed Value : can hold a value and be used in the formula but will not be converted by currency.
Unit Price : like the Fixed Value type but will be converted depending on the client currency.
Text : will be displayed as a text input
Date : will be displayed as a date picker
Image : will show a file input to allow image uploads. Two variables representing the width and height will be added
Dropdown : will show a select input with several options
Image List: will show a list of image icons similar to the standard PrestaShop color/texture attributes
Checkbox : The value of the checkbox in the formula is either 1 or 0. To make the checkbox checked by default, set the initial value to 1
Dynamic variable : Declared in the allocations file associated with the product
File : will show a file input to allow file uploads.
Slider : will be displayed in front office along with its unit.

Value: This will be used as the initial value of User Input and the actual value for other types.

Unit: This drop-down will display the default unit of each unit group.
The module will display the Preferred Unit from the same group if available.

Unit Values: Click on the list icon to enter various values for each unit in the same unit group as the current unit.

Each unit having its own values is generally much better than using converted values which may be inconvenient for your clients.
Initially, converted values will be displayed in order to help you decide how to modify them.

Min, Max: The boundaries of accepted values for this field.

Step: This value will define the allowed accuracy for this field.
For example, if you don’t want to allow values like 10.01 but accept values like 10.1, then set the Step as 0.1

Image: Each field can have an explanatory image which will be displayed on the product page.
Here’s an example:

Status: controls whether or not to display the field to the client.

Delete: This button will delete the field. Make sure to remove the field from the formula to avoid calculation errors.

Reorder Handle: You can reorder the fields by dragging the rows up or down.


Was this article helpful to you? Yes No 2