Settings for Specific Option Types

While setting up product options, the following option types are available:

  • Select box
  • Radio group
  • Check box
  • Text
  • Text area
  • File

Different option types have their own settings and properties.

Text/Text Area

Text or Text Area option types

If you add an option of Text or Text area type, you will be able to specify:

  • RegExp—a regular expression used to validate the value entered by a customer. For example, if RegExp is set to ^[a-zA-Z]{3}[0-9]{2,3}$, then the customer will have to enter 3 letters and 2 or 3 digits.

    Hint

    More information about regular expressions is available in other sources; you can also download a PDF file with examples.

  • Inner hint—the text that will appear on the storefront in the text field; it may be used to show customers what values can be entered in the text field.

  • Incorrect filling message—the message that will be displayed when an incorrect value is entered. This may occur when a certain regular expression is set for the option. For example, if we use a regular expression from above:

    Note

    Please enter 3 letters and 2 or 3 digits (for example, abc123)

    This functionality can be used to validate telephone numbers, postal codes, dates, etc.

File

File option type

If the option type is File, customers can upload a file for this product. It is especially useful for customizable products like T-shirts, mugs, or postcards, where customers can use their own graphic image.

For an option of the file type, you can specify the following additional parameters:

  • Allowed extensions—specify which file formats can be uploaded by customers. Separate the extensions with commas like this: jpg,bmp,gif,pdf. To allow customers to upload files of any format, leave this field empty.
  • Max uploading file size—limit the size of the uploaded file (for example, 100 is equal to 100 Kb) or leave this field empty to allow uploading files of any size.
  • Multiupload—if you tick this checkbox, customers will be able to upload several files.

Select Box/Radio Group/Check box

If the option type is Select box, Radio group, or Check box, it means that customers will be offered to choose from multiple existing variants.

When you are creating or editing an option, you will see the Variants tab, where you can edit the properties of variants.