Attribute input types
When viewed from the Admin, attributes are the fields that you complete when you create a product. The input type that is assigned to an attribute determines the type of data that can be entered and the format of the field or input control. From the standpoint of the customer, attributes provide information about the product, and are the options and data entry fields that must be completed to purchase a product.
Input types
Note: Depending on your system configuration, Admin users can enter dates directly into a field or select a date from the calendar or list. For information about specifying date and time values, see Date and time options.
Yes
and No
.Price
, Special Price
, Tier Price
, and Cost
. The currency used is determined by your system configuration.Date and time options
You can customize the format of date and time fields, and select the input control that is used for data entry. Dates values can be selected from a drop-down list, or pop-up calendar.
To format date/time fields:
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the panel on the left, expand Catalog and click the Catalog subitem.
-
Expand the Date & Time Custom Options section.
{width="600" modal="regular"}
For a detailed listing of these options, see Date & Time Custom Options in the Configuration Reference.
-
To use a popup calendar as the input control for date fields, set Use JavaScript Calendar to
Yes
. -
To establish the Date Fields Order, set the order of each part of the date field as needed:
- Month
- Day
- Year
-
To set your preferred time format, set Time Format to one of the following:
12h AM/PM
24h
-
To establish the Year Range for the drop-down values, enter the year (YYYY) to set the from and to dates.
If blank, the field defaults to the current year.
-
When complete, click Save Config.