Returns attribute
The returns attributes are used to store information that is needed during the product return process. The default attributes include the condition of the returned product, the reason for the return, and a field that indicates how the return was resolved. The process to create a returns attribute is similar to creating a customer attribute.
Create a returns attribute
-
On the Admin sidebar, go to Stores > Attributes > Returns.
-
In the upper-right corner, click Add New Attribute.
img-md w-600 modal-image
Define the properties
-
To identify the attribute during data entry, set the Default Label.
-
For Attribute Code, enter a code that identifies the attribute within the system.
-
To determine the type of input control that is used for data entry, set Input Type to one of the following:
Text Field
Text Area
Dropdown
Yes/No
File
Image File
-
To make the field a required item, set Values Required to
Yes
. -
To assign an initial value to the field, enter a Default Value.
-
To validate the data entered into the field for accuracy before the record is saved, set Input Validation to one of the following:
None
Alphanumeric
Alphanumeric with Space
Numeric Only
Alpha Only
URL
Email
-
For the
Text Field
andText Area
input types, enter the Minimum Text Length and Maximum Text Length. -
To apply a preprocessing filter, set Input/Output Filter to one of the following:
None
Strip HTML Tags
Escape HTML Entities
-
To make the attribute visible to customers, set Show on Storefront to
Yes
in the Storefront Properties section. -
(Optional) For Sort Order, enter a number to determine where this attribute appears relative to the others in the same part of the page. (
0
= first,1
= second,2
= third, and so on.)
Manage the labels/options
-
In the left panel, choose Manage Labels/Options.
-
In the Manage Titles (Size, Color, etc.) section, enter the label for each store view.
img-md w-600 modal-image -
If the Input Type for the attribute is
Dropdown
, manage the options in the Manage Options (Values of Your Attribute) section.- To add an option, click Add Option and enter the label for Admin and each store view.
- To make an option the selected default, choose Is Default.
- To remove an option, click Delete.
-
To save changes, click Save Attribute.