XGen AI offers a code-free visual merchandising tool, accessible under the 'Merchandising Rules' tab on the platform. This tool grants complete, searchable visual access to all products and their attributes, showcasing each distinct value for every property. It enables effortless creation of merchandising conditions based on these properties and values through user-friendly point-and-click options.
The Merchandising Rules page allows users to create a Filter and a Facet using the same ID.
Filters- Provides product display logic for use in XSearch experiences
Facets- Defines the related
property
that would be displayed to the users
Filters
Logic Types
Groups are used to group conditions together for more advanced logic.
NAME/TYPE | DESCRIPTION |
---|---|
and | or | An An |
Condition Types
Two types of product filters can be used in combination to build very specific display logic.
Catalog- A condition based on a catalog value
Context- A condition based on contextual variables
The following data points represents a condition that must be met in order for a product to be valid as a result.
NAME/TYPE | DESCRIPTION |
---|---|
string | The name of the product property to be used in the condition. |
string | The operator to be used in the condition (e.g. equals, contains, greater than, etc). |
string | number | boolean | The value to be used in the condition that will be compared to the product property. |
string | number | boolean | Variable represents a key from a context object that will be used to get a dynamic value to be used in the condition that will be compared to the product property. |
Operator Types
The following operators are available to be used in the conditions.
NAME/TYPE | DESCRIPTION |
---|---|
operator | The equals operator will check if the product property value is equal to the condition value. |
operator | The not equal operator will check if the product property value is not equal to the condition value. |
operator | The contains operator will check if the product property value contains the condition value. |
operator | The not contains operator will check if the product property value does not contain the condition value. |
operator | The greater than operator will check if the product property value is greater than the condition value. |
operator | The less than operator will check if the product property value is less than the condition value. |
operator | The greater than or equal operator will check if the product property value is greater than or equal to the condition value. |
operator | The less than or equal operator will check if the product property value is less than or equal to the condition value. |
operator | The matches regex operator will check if the product property value matches the condition value regex. |
Facets
Facets provide control over the property
types that are related to products displayed within an XSearch experience. Any Merchandising Rule can include both a Filter and a Facet. This property
can be passed to the frontend of your customer experience for further contextualization.
Adding a Facet
A new facet can hold multiple property
conditions. Simply click on the “Add Facet” Button and choose from the drop down list of properties available.
Preview your Merchandising Rule results on the right side pane.