Merchandising Rules

Prev Next

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.

  1. Filters- Provides product display logic for use in XSearch experiences

  2. 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

logic

and | or

An and group must have all conditions met in order for the product to be valid.

An or group needs any condition to be met in order for the product to be valid.

Condition Types

Two types of product filters can be used in combination to build very specific display logic.

  1. Catalog- A condition based on a catalog value

  2. 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

property

string

The name of the product property to be used in the condition.

operator

string

The operator to be used in the condition (e.g. equals, contains, greater than, etc).

value

string | number | boolean

The value to be used in the condition that will be compared to the product property.

variable

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

equals

operator

The equals operator will check if the product property value is equal to the condition value.

not equal

operator

The not equal operator will check if the product property value is not equal to the condition value.

contains

operator

The contains operator will check if the product property value contains the condition value.

not contains

operator

The not contains operator will check if the product property value does not contain the condition value.

greater than

operator

The greater than operator will check if the product property value is greater than the condition value.

less than

operator

The less than operator will check if the product property value is less than the condition value.

greater than or equal

operator

The greater than or equal operator will check if the product property value is greater than or equal to the condition value.

less than or equal

operator

The less than or equal operator will check if the product property value is less than or equal to the condition value.

matches regex

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.