Customize review forms for different products using Point of Sale dynamic review layouts. Map specific layouts to product classes to ensure a tailored review experience, improving user engagement and feedback quality.
Dynamic Review Layouts allows you to design write review layouts using the Layout Editor. With Field Mappings, you can map different write review layouts to different products.
Enable Product Ratings
The Product Ratings app config setting must be enabled to use Dynamic Review Layouts:
- Click EDIT CONFIG from the CMS homepage.
- Go to .
- Enable Product Ratings.
- Click SAVE.
Create a Dynamic Review Layout
The Dynamic Review Layouts is created as a normal layout.
- Go to
- Click Add Blank Layout
Product Title
To add the product image to the layout:
- Select a cell
- Select
Cell Settings (e.g., Font)
To configure the look and feel of the cell with the product title:
- Select the cell with the product title
- Select
- Configure the settings and click SAVE
Star Rating
The rating component allows the user to give a star rating.
- Select a cell
- Select
- Specify the field's key and fill color
- Click SET FIELD
Other User Inputs
Other user inputs like dropdown lists and text fields are configured as form elements. To add additional user inputs to the layout:
- Select a cell
- Select
- Configure the form element and click SET FIELD
These inputs are commonly used in a write review layout:
- Checkbox
- Dropdown List
- Photo Uploader
- Text Input
Submit Review Button
The submit review button is configured as a form element with a button action of "Submit Review."
- Select a cell
- Select
- Specify the button text (e.g., "SUBMIT REVIEW")
- For the Button Action select Submit Review
- Click SET FIELD
Field Mappings
The app locates a Dynamic Review Layout from the product attributes. This is accomplished by mapping the layout ID to the ReviewFormType target field in the product Field Mappings.
Locating the Layout ID
- Go to
- Locate the Dynamic Review Layout and click EDIT LAYOUT
-
Copy the layout ID from the end of the URL
Mapping One Dynamic Review Layout
To use one write review layout for all products:
- Go to
- Map ID to ReviewFormType
- Add a regex replace all transformation to the mapping (see below)
- Save the field mappings and run the feed
Regex Replace All
- Regex: ^.*$
- Replace: [LAYOUT_ID]
- Group Index: [empty]
Mapping Many Dynamic Review Layouts
To map different Dynamic Review Layouts to different products, the product feed needs to have the concept of a product class. Create a mapping of the product class field to the ReviewFormType field and use a composite (multiple operations) transformation:
- Go to
- Map the product class field to ReviewFormType
- Add a composite (multiple operations) transformation to the mapping (see below)
- Save the field mappings and run the feed
Let's say that your product class has two possible values, "1" or "2". Products with a class of "1" should be mapped to one layout ID and products with a class of "2" should be mapped to another. Here is what the transformation function would look like:
- Composite (Multiple Operations):
- Regex Replace All
- Regex: ^1$
- Replace: [Layout_ID_1]
- Group Index: 0
- Regex Replace All
- Regex: ^2$
- Replace: [Layout_ID_2]
- Group Index: 0