A dynamic total Refund Summary can be configured into the Returns Wizard, on both Fluent Store and Fluent OMS.
In order to configure the returns summary, to would need to enable to returns workflow, add the appropriate setting and modify the manifest.
Steps
Fluent Commerce
Overview
This guide is a reference solution for implementing a dynamic total Refund Summary into the Returns Wizard.
Who is this guide for?
This guide targets Configurers implementing a returns solution into Fluent Store or OMS. It is only relevant if you have the requirement to display summary information about the Return to the end user.
Prerequisites
Fluent Store enabled
A configured returns solution, by following the steps outlined in the Getting Started guide
Step 1. Define the Returns Summary
The Returns Summary is accessed via the `fc.mystique.fields.returns`setting. First enable this setting and start by adding a summary at the root level.Then choose a component to present the summary and a datasource. Finally specify the fields you'd like to display in the attribute array.For example, if you wanted to display a total refund amount you could do this by using the following sample:
If the fields in the `priceSummary` datasource do not cover your use case and you are using orderById to display pricing summaries, we recommend you utilize the Currency and Equation handlebars templates to present your data in a meaningful manner.
Step 2. Configuring the Returns Summary in Fluent Store
The reference returns solution provided in the Getting Started guide has the Returns field exist within a Wizard component. The Wizard Component has special properties which additionally allows a summary to be displayed. To do this, it can be added as a descendent of the wizard step. Doing so will place the Return Summary in the position you specify in the manifest.
The `fc.page.wizard.summary` is expected to be before the `fc.page.wizard.action`. There is a known issue where if the `fc.page.wizard.summary` is after the `fc.page.wizard.action` then the Configurer may witness issues with the layout of the components on the Wizard.
Step 3. Configuring the Returns Summary in Fluent OMS
In OMS Returns are completed within a drawer. This drawer determines the layout of the entire form itself. As a result, the summary will automatically appear pinned to the top of the drawer without being configured explicitly.