Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 Cross Sell Rules for Cart and Product Page

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
Auf Lager
€129.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

6 features

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 rules instead of single upkeep

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.

01Rule structure

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
Stores › Configuration › Mironsoft › Cross-Sell Rules
Rule 1 · source
category Cameras (example)
Rule 1 · target
category Memory cards (example)
Maximum · priority
4 · 10 (example values)
Cross-Sell Rules › Filters
Available only
yes
Price relative to main item
up to 50 % (example value)
Sorting
bestseller first
02Filters and sorting

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
03Display

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
Frontend · cart
Goes well with (example text)
Memory card 64 GB (example)Add to cart
Camera bag (example)Add to cart
Cross-Sell Rules › Preview
Product
Camera A (example)
Rule 1 · memory card2 matches
Manually assigned1 match
04Calculation and upkeep

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
Use cases

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.

Comparison

Magento 2 cross sell rules: without and with the module compared

The difference to manual cross-sell upkeep.

TopicWithout moduleWith Mironsoft Cross-Sell Rules
AssignmentBy hand per productRules per category, attribute or brand
New productsNo add-ons until someone maintains themGet add-ons with the next calculation
Unavailable itemsStay linkedExcluded by filter
SortingFixed order by handBestseller, margin, price or random
ControlResult visible only in the frontendPreview per product in the admin
Setup

How we set up Magento 2 cross sell rules for you

The process after you place your order.

1

Briefing

You tell us the most important product groups and which add-ons should go with them.

2

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.

3

First rules

Together with you we create source, target, filters and sorting for the first product groups.

4

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.

5

Handover

Your team gets an introduction to rules, log and preview.

Scope

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.

05How the purchase works

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.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

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?
With Magento 2 cross sell rules you define source and target, for example category Cameras to category Memory cards. The module fills the cross-sells from it.
How can I assign accessories by attribute in Magento 2?
Through an attribute such as “Compatible with”. The rule links products that carry the same value, across categories too.
Do manual cross-sells stay?
Yes, manually assigned products have priority. The rules only fill the free slots up to the maximum number.
Are unavailable products recommended?
Not if you activate the filter “available only”. Products already in the cart are excluded as well.
Do Magento 2 cross sell rules work without a purchase history?
Yes, the rules work with category, attributes and price. New products get add-ons immediately.
Will the page become slower?
No. The Magento 2 cross sell rules are calculated by cron and stored, the frontend needs only a simple query.
Can I see in advance what is recommended?
Yes, the preview in the admin shows per product which rule delivers which add-on.
Do Magento 2 cross sell rules work with Hyvä?
Yes, the display uses the Hyvä blocks and Alpine.js and needs no additional library.
How does this differ from related products?
Related products show alternatives on the product page. Cross-sells are add-ons that appear in the cart and are created by your rules.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module for you personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 Cross Sell Rules – Mironsoft Cross-Sell Rules
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 Cross Sell Rules – Mironsoft Cross-Sell Rules

Magento 2 Cross Sell Rules – Mironsoft Cross-Sell Rules

€129.00