Skip to main content

Creating a Cart Similar Block

The Cart Similar block recommends products similar to those that the user has already added to their cart. Unlike the Wishlist Similar, the source is the cart itself, not the favorites.

1. Creating the Block​

To create the block, enter a name in the Name field, select "Similar Products to Cart Block" in the "Type" field, and specify the

Marker
. After clicking the Add button, the block will appear in the table.

2. Editing the Block​

The block settings screen includes:

  • Details — Name* and Marker
  • Block settings (the card Settings for 'Similar to Your Cart' block, next to it is the Help button with a detailed explanation): Maximum items, Exclude items from cart, Fallback to trending when cart is empty
  • Audience filter
  • Automatic matching by attributes (Match by attributes)
  • Selection of similar products (Selection of similar products)
  • Preview

Automatic Matching by Attributes​

The main section of the block. Here you select the attributes by which similar products will be matched:

  • Set of attributes — a set of attributes from which characteristics for comparison are taken.
  • Attributes for comparison — the attributes themselves, by which similar products are matched.
  • Minimum matches — how many attributes from the selected ones must match for a product to be included in the output.
💡Tip

For clothing and footwear, set Minimum matches = 1 — otherwise, few products will be included in the selection. For strict selections (e.g., spare parts and compatibility), increase the value to the number of selected attributes.

The block includes a Found products section — a preview of the list of products under the current settings. Under each product, a caption Matched by: Brand: ONE, Color: White is displayed — next to the value is the name of the attribute by which the match occurred.

Selection of Similar Products​

Under the Match by attributes section is the Selection of similar products section — the same as in the automatic similar products block. Similar products are matched for each product in the cart based on the meaning of its description and are recalculated with each request: if the cart changes, the selection will change as well.

  • How important is a close price — a slider from 0 to 1: the higher the value, the more products with prices far from the original product's price are pushed down the list; 0 means price is not considered.
  • What kind of product should be to get into the block — mandatory conditions: a product will only be included in the block if all conditions are met. The "matches" condition compares with the value of the original product. There is also a checkbox Non-indexed products — whether to include products that have not yet been indexed.
  • Show as a single card products that match by — characteristics by which variations of a product (sizes, colors) are shown as a single card: checkbox Title and attributes by sets. If nothing is checked, each product is shown as a separate card.
  • Where to search for similar products — categories from which similar products are taken. If nothing is selected, the search is conducted in the categories of the product itself; selected categories completely replace this area.

Below the settings, diagnostics for the saved block are displayed: how many products are in the catalog, how many models remain after merging, and how many products will have fewer than two similar items.

The preview of Found products is built based on the Test cart (product IDs) field in the Context for preview section — product IDs separated by commas (up to 50).

Audience Filter​

The audience for the block is set by a separate editor — see Audience Filter.

Preview​

The "Open in modal" button opens the Block preview with the Basic, Explanation, and Investigate tabs.