Product selection rules
General information
Basic settings for identifying and managing the rule.
- Internal name: a descriptive name used internally to identify the rule. Customers will not see this value on the storefront.
Products selection conditions
Defines the data sources and conditions the extension uses to generate product recommendations.
-
Primary source: determines where related product data comes from. Available options:
-
Whole catalog: all available products (products from the current product page, last added product in the cart, any already purchased products, possible related products).
-
Bought together (same order): previous orders (products from current product page, the last added product in the cart, any already purchased products, possible related products were bought in the same order).
-
Also bought (same customer): previous orders (the same customer bought products from the current product page, the last added product in the cart, any already purchased products, possible related product).
-
Viewed together: previous product viewing history (the same customer viewed products from current product page, the last added product in the cart, any already purchased products, possible related product).
-
Recently viewed: displays recently viewed products. A logged-in customer sees the products they viewed themselves; a guest sees products recently viewed in the store.
NoteWhen using the Viewed together and Recently viewed rules for product blocks, keep in mind the following:
-
This rule updates related product lists only if the option Enable product view report is active.
-
To enable it, go to: Stores > Configuration > Reports > first turn on Enable reports, then enable Product view report.
-
Viewed together is built only from the product views of logged-in customers. Guests' views are not counted, but the block is shown to all visitors.
-
Recently viewed is built from the views of both guests and logged-in customers. A logged-in customer sees the products they viewed themselves (on full-page-cached product and category pages since version 1.6.2). Guests, and customers with no browsing history yet, see a list built from the views of all visitors of the store.
-
The Recently viewed data is built from the latest 1,000 product views in the store within the Recently viewed in the last days period (Stores > Configuration > Mirasvit > Related Products > Indexing). On a busy store, older views of a customer may not be included.
-
The lists are built by the Related Products Index (
mst_related_index), which is not updated automatically. It has no cron job and does not react to new product views, even in the Update by Schedule mode. Until you run the reindex, a Recently viewed block stays empty and new product views do not appear in it. Run the reindex after you set up the rule, and then regularly, for example once a day with a server cron job:php -f bin/magento indexer:reindex mst_related_indexThe same applies to the Bought together, Also bought and Viewed together sources. See Command line interface.
-
-
Condition builder: allows you to refine product selection with additional rules. Conditions are grouped by:
- Product Attribute: any product attribute (e.g., Attribute Set, Category, custom attributes).
- Product: an extra, non-attribute condition - currently only Product has image (Yes/No), to include or exclude products that have (or don't have) an image assigned.
ExampleIf ALL of these conditions are TRUE:
Attribute Set is not Current Product “Attribute Set”
Excludes products from the same attribute set as the one being viewed.