Attribute Value Field Types
page last edited on 15 July 2019
X-Cart supports four field types of attribute values:
When configuring an attribute, select the field type that best suits your needs. Below we provide detailed explanation of each type.
Choose this field type if you need the attribute value to be a word/phrase of your choice.
You can use Plain field to specify such properties of a product as color, size, ISBN (for books), etc.: it is good for almost anything, provided you can describe it in a couple of words.
For example, we used it to specify the dimensions of a bag:
Plain field type can be used to specify multiple values for one attribute.
These attributes can also display differently in the storefront.
This field type allows for a longer text length than Plain field and can be used to provide lengthier descriptions.
For example, we used it to add detailed information about the fabric of t-shirt:
Starting with X-Cart 5.1, the Textarea attribute value field type can be used to add personalization options for products (i.e. provide an editable text area on the product page on the storefront so buyers can use it to enter their own custom text).
For details, see Personalization Options (Editable Textarea).
This field type is intended for attribute values that emphasize the presence or absence of some property or feature.
For example, we used it to emphasize the wirelessness of the headphones:
The Yes/No field type can also be used to specify “Yes or No” options for products.
For details, see Multi-Value Attributes (Product Options).
This field type allows to add hidden global attributes to a product that can be seen and used by a store administrator only (e.g. to add some product info that should not be displayed to customers in the storefront but can be used for maintenance purposes like Google Product Feed module configuration).
Hidden field attribute unlike any other type of global attributes is displayed in a store Admin area only. If a hidden attribute is assigned to a product it can be checked in a special tab of the Attributes section on the product details page (Attributes -> Hidden attributes):
For details on the hidden field attribute configuration, see the guide Hidden Global Attributes.
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.