The Comparison feature allows the website visitor to select up to X boxes in order to group them in a side by side view in a modal overlay. By doing so, it is possible to compare a defined set of values of the boxes next to each other in order to make a choice for e.g. a promoted product or offer.
To set up the feature in GEM, besides the Page Teaser Boxes themselves, it is necessary to configure the Comparison Sets Configuration Page (to be found under /configuration), the Comparison Configuration Page component (to be found in the Page Teaser Configuration of a Standard Content Page) and the Comparisons Sets element in the Box Filter Container component.
As a first step, a Comparison Set has to be created. In this set, the WHAT FIELDS shall be compared with each other is defined. These fields consist of a label and a type, such as Text, Number or Percentage. So the type defines how the values to be compared with shall be displayed. Once the set is set-up, the WHERE is defined by adding the set to the Box Filter Container component where the acutal comparing takes place. Additionally, some labels have to be filled in. As a third step, the WHAT VALUES shall be compared must be defined. So for every Teaser Box, that shall be available for Comparison, the comparable values can be set in the Page Teaser Configuration.
Once everything is set up properly, for every box that offers the Comparison, the Add To Compare checkbox is displayed on the bottom of the box. As soon as more than 1 box is added, the Compare button becomes active. Pressing the button opens a modal overlay where the defined values of the chosen boxes can be compared with each other. The title displayed over each column is the Page Title itself and the label of the action button below is set in the tab Labels of the Box Filter Container.