CreateReturn container
The CreateReturn
container manages the creation of return requests. It supports custom return attributes and configurable validation through the Adobe Commerce Admin. This container consists of three sequential screens that guide users through the item return process:
- Select Items. The first screen displays a list of items eligible for return. The user can select items by checking the boxes next to them and specifying the quantity of each item they wish to return. Once the selection is complete, the user can click the Continue button to proceed to the next step.
- Return Reasons. The second screen shows the selected items. Below each item, an additional form is displayed that allows the customer can specify the reason for the return. This step helps gather information on why each item is being returned, which can be valuable for analytics and improving customer experience.
- Success Screen. The final screen displays a success message confirming the return process. It also includes a customizable button that allows redirection to any specified page on the website.
Prerequisites
Returns must be enabled. The Stores > Configuration > Sales > Sales > RMA Settings in the Adobe Commerce Admin.
If you need to add custom return attributes, add them at Stores > Attributes > Returns. You can optionally use the Input Validation field to define custom validation rules.
Configurations
The CreateReturn
container provides the following configuration options:
Example
The following example demonstrates how to render the CreateReturn
container: