Magento_TargetRule (Related Product Rules)
Magento Modules:
- Magento_TargetRule
- Magento_TargetRuleGraphQl
Adobe Commerce Packages
- magento/module-target-rule
- magento/module-target-rule-graph-ql
Repository
Note: this repo is only accessible with a Hyvä Enterprise license or as a contributor.
For more details, see: https://www.hyva.io/hyva-enterprise.html.
https://gitlab.hyva.io/hyva-enterprise/commerce/magento2-ee-magento-target-rule
Features
All points are rated according to priority as P1 (critical), P2 (important), P3 (minor).
-
basic - does not break layout/design
Note: the below features all assume one or more rule based product relation has been configured for each relation type (related/upsell/cross-sell) under 'Marketing > Related Products Rules'.
Review/refactoring potnetially needed due to use of around plugin
/catalog/product/view/id/{id}/
)
Product Detail Page (Related Products
-
[P1] Rule based relations are supported in the related products section -
[P1] The relevant relations show as set in 'Stores Configuration' catalog/magento_targetrule/related_position_behavior
- Options:
- Both selected (manual) and rule-based
- Selected (manual) only
- Rule-based only
-
[P1] Products are only displayed from active rules -
[P1] Products are only displayed from rules that apply to related products -
[P1] Products are only displayed based on the conditions for products to match and display -
[P2] The maximum number of rule-based products displayed for a given rule is at as set on the 'Result Limit' field within each product relation rule -
[P2] Products are only included from rules if between the from/to dates (if set) -
[P2] Products are only included from rules for the selected customer segments (if set) -
[P2] The maximum number of products displayed (both manual and rule-based) is as set in 'Stores Configuration' catalog/magento_targetrule/related_position_limit
-
[P2] The rotation mode (and product ordering) works as set in 'Stores Configuration' catalog/magento_targetrule/related_rotation_mode
- Options:
- By priority (from rule), then by product ID
- By priority (from rule), then random
- Weighted random (not first by priority)
Upsell Products
-
[P1] Rule based relations are supported in the upsell products section -
[P1] The relevant relations show as set in 'Stores Configuration' catalog/magento_targetrule/upsell_position_behavior
- Options:
- Both selected (manual) and rule-based
- Selected (manual) only
- Rule-based only
-
[P1] Products are only displayed from active rules -
[P1] Products are only displayed from rules that apply to upsell products -
[P1] Products are only displayed based on the conditions for products to match and display -
[P2] The maximum number of rule-based products displayed for a given rule is at as set on the 'Result Limit' field within each product relation rule -
[P2] Products are only included from rules if between the from/to dates (if set) -
[P2] Products are only included from rules for the selected customer segments (if set) -
[P2] The maximum number of products displayed (both manual and rule-based) is as set in 'Stores Configuration' catalog/magento_targetrule/upsell_position_limit
-
[P2] The rotation mode (and product ordering) works as set in 'Stores Configuration' catalog/magento_targetrule/upsell_rotation_mode
- Options:
- By priority (from rule), then by product ID
- By priority (from rule), then random
- Weighted random (not first by priority)
/checkout/cart/
)
Cart (-
Cross-sell Products - displayed on cart page when set in matching rules
Cross-sell Products
-
[P1] Rule based relations are supported in the cross-sell products section -
[P1] The relevant relations show as set in 'Stores Configuration' catalog/magento_targetrule/crosssell_position_behavior
- Options:
- Both selected (manual) and rule-based
- Selected (manual) only
- Rule-based only
-
[P1] Products are only displayed from active rules -
[P1] Products are only displayed from rules that apply to upsell products -
[P1] Products are only displayed based on the conditions for products to match and display -
[P2] The maximum number of rule-based products displayed for a given rule is at as set on the 'Result Limit' field within each product relation rule -
[P2] Products are only included from rules if between the from/to dates (if set) -
[P2] Products are only included from rules for the selected customer segments (if set) -
[P2] The maximum number of products displayed (both manual and rule-based) is as set in 'Stores Configuration' catalog/magento_targetrule/crosssell_position_limit
-
[P2] The rotation mode (and product ordering) works as set in 'Stores Configuration' catalog/magento_targetrule/crosssell_rotation_mode
- Options:
- By priority (from rule), then by product ID
- By priority (from rule), then random
- Weighted random (not first by priority)
Contributors
Voting
Use
Edited by John Hughes