Fluent Commerce Logo
Docs

Retailer Id Field Component

UI Component

Changed on:

15 July 2024

Overview

The Retailer ID Field Component is a component that allows users to provide Retailer ID on an OMX app.
No alt text provided
No alt text provided
No alt text provided
No alt text provided
No alt text provided
No alt text provided
Plugin NameCore
The standard library of mystique components. 
0000-00-00

v1.0.0

Initial changelog entry.

Alias

fc.attribute.retailerId, fc.mutation.retailerId, retailerId

Detailed technical description

This field's key feature is the possibility to add a Retailer Id only in situations when it is necessary. Let’s consider the following situations when a user is created:
  • When a new user with user type “RETAILER” is created, the Retailer Id is a required parameter.
  • When a user with another type is created, the primary Retailer Id is an optional parameter.
Retailer Id is a mandatory field from a backend perspective, but we must avoid System validation in the second case.The retailer Id field has two states:
  • Default state when + ADD RETAILER button is not pressed on
No alt providedValidation: there is no validation (for Primary Retailer) from the backend perspective when we click on the drawer's SUBMIT button.
  • + ADD RETAILER button is pressed on
a. When the retailer’s list contains one to three values:No alt providedb. When the retailer’s list contains more than three values:No alt providedValidation: When a user clicks on the drawer’s SUBMIT button, the field with the Retailer Id parameter will be validated as well as other fields (it is impossible to send an empty value).

Properties

N/A

Configuration example

1{
2    "overrides": {
3        "primaryRetailer": {
4            "component":"fc.attribute.retailerId"
5        }
6    }
7}

Version History

2024-06-05

v24.6.5

The retailer ID was moved to core and aliased under "fc.mutation.retailerId" and "retailerId". 
2023-07-31

v23.7.31

n/a

Recommended Placement

N/A