Magento 2 Cross Sell Rules for Cart and Product Page
SKU: CROSSSELLRULES1
- source and target: category, attribute, brand or price range
- only available items, sorted by bestseller, price or margin
- manual cross-sells keep priority over rules
- preview per product, shown in cart and on the product page
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 Cross Sell Rules: assign accessories without touching every product
With the Mironsoft Magento 2 cross sell rules you decide by rule which products appear as add-ons in the cart and on the product page. Instead of maintaining thousands of cross-sell products by hand, you write a sentence such as “Category Cameras goes with category Memory cards”. The module fills the recommendations from it and keeps them current when the catalogue changes. The display uses the existing cross-sell blocks of the Hyvä theme.
Source and target
A rule links a source (category, attribute, brand) with a target (category or attribute value).
Attribute matching
An attribute such as “Compatible with” links accessories to suitable main products, across categories too.
Filters
Only available products, only a price range relative to the main item, only certain attribute sets.
Sorting
Results by bestseller, price, margin, newness or random, limited to an adjustable number.
Priority for manual work
Manually assigned cross-sells stay, rules only fill the free slots.
Preview
Per product you see in advance which add-ons the rules would deliver.
Why Magento 2 cross sell rules replace single-product upkeep
Cross-selling is one of the cheapest ways to raise the cart value: the memory card goes with the camera, the drill bit set with the drill, the belt with the trousers. Merchants therefore look for Magento 2 cross sell rules, automatic accessories or recommendations in the cart. Magento allows cross-sells only as a manual assignment per product.
With small ranges that is feasible, with thousands of items it is not. New products get no add-ons, sold-out accessories stay linked. With rules the recommendation grows with the catalogue, and nobody has to remember it.
Create Magento 2 cross sell rules: from source to target
Each rule has a name, a source, a target and a priority. The source describes which products the rule applies to, for example all items of a category or brand. The target describes what is recommended: products of a category or with an attribute value. Several rules can apply to the same product, and priority and a maximum number decide which add-ons finally appear.
- Source: category, attribute, brand, attribute set or price range
- Target: category or attribute value, with maximum number
- Priority when several rules apply
Filters and sorting: show only sensible add-ons
To keep recommendations credible you filter by availability and by price. A rule of thumb such as “at most half of the main item” prevents a €10 cable from appearing next to a €20 device or the other way round. Products already in the cart are excluded. Sorting by bestseller, margin or price sets the order, and random order adds variety for large target sets.
- Only available products, items already chosen are excluded
- Price range relative to the main item
- Sorting by bestseller, margin, price, newness or random
Magento 2 cross sell rules in the cart and on the product page
In the cart the add-ons appear in the familiar cross-sell block below the items, on the product page as a section “Goes well with”. The module calculates the recommendations for all cart items together and removes duplicates. One click puts the add-on into the cart without a page change, the interface works with Alpine.js. Headings, number and layout are controlled via layout XML.
- Cart block and a section on the product page
- Duplicates removed, results of all items merged
- Adding without page change via Alpine.js
Calculation, priority and upkeep of Magento 2 cross sell rules in the admin
The assignments are calculated by cron and stored, so the frontend needs only a simple query. After a rule change one click triggers the recalculation. Manually assigned cross-sells have priority, rules fill the free slots first. The preview in the admin shows for a product which rule delivers which add-on. A log names products without a match so that gaps in the catalogue stand out.
- Calculation by cron with recalculation on click
- Manual assignment has priority
- Log for products without a match
Where Magento 2 cross sell rules help in daily shop work
Typical situations where Magento 2 cross sell rules enlarge the cart.
Electronics with accessories
Devices come with cables, cases and storage. One rule per category replaces upkeep on every single model.
Tools and consumables
Machines show matching drill bits, batteries and protective gear via the attribute “Compatible with”.
Fashion and accessories
Dresses go with bags, belts or scarves from defined categories, only in available sizes.
New products
An item created today gets matching add-ons tomorrow, with no rework.
Magento 2 cross sell rules: without and with the module compared
The difference to manual cross-sell upkeep.
| Topic | Without module | With Mironsoft Cross-Sell Rules |
|---|---|---|
| Assignment | By hand per product | Rules per category, attribute or brand |
| New products | No add-ons until someone maintains them | Get add-ons with the next calculation |
| Unavailable items | Stay linked | Excluded by filter |
| Sorting | Fixed order by hand | Bestseller, margin, price or random |
| Control | Result visible only in the frontend | Preview per product in the admin |
How we set up Magento 2 cross sell rules for you
The process after you place your order.
Briefing
You tell us the most important product groups and which add-ons should go with them.
Installation
We install the module, set up Magento 2 cross sell rules for your categories and check whether an attribute such as “Compatible with” exists in the catalogue.
First rules
Together with you we create source, target, filters and sorting for the first product groups.
Testing
We check preview, calculation, priority of manual assignments and the display in the cart. Magento 2 cross sell rules with several items in the cart are part of the test as well.
Handover
Your team gets an introduction to rules, log and preview.
How it differs from related products and purchase-data recommendations
The Mironsoft automatic related products deliver similar alternatives on the product page. Frequently bought together and “customers also bought” work with order data. Magento 2 cross sell rules instead fill the cart add-ons according to your logic and also work for new products without a purchase history.
All modules can be combined. The display runs on Alpine.js in the Hyvä theme, without jQuery and without an extra library. The calculation needs no personal data; the legal review of your shop remains with the operator.
No download, but personal setup
Cross-Sell Rules is not listed here as a ready-made download file to install yourself. The purchase is a commission: after the purchase we get in touch, install the module in your shop and define rules, filters and sorting together with you.
Frequently asked questions
Everything important about rules, filters, priority and how the purchase works.
How can I assign cross-sell products automatically in Magento 2?
How can I assign accessories by attribute in Magento 2?
Do manual cross-sells stay?
Are unavailable products recommended?
Do Magento 2 cross sell rules work without a purchase history?
Will the page become slower?
Can I see in advance what is recommended?
Do Magento 2 cross sell rules work with Hyvä?
How does this differ from related products?
Can I download and install the module myself?
Magento 2 Cross Sell Rules – Mironsoft Cross-Sell Rules