VirtueMart Frequently Bought Together – Version 1.0.7
✓ Joomla 6✓ VirtueMart 4
Shows on a VirtueMart product page which products customers really bought together with it, based on your own orders. No manual linking needed.
Free download (ZIP)Version 1.0.7, free to use. See the licence.
Tested on Joomla 6.2 with VirtueMart 4
VirtueMart Frequently Bought Together is a free site module for VirtueMart. It looks at the orders in your shop and shows, below a product, the products that were most often in the same order. VirtueMart itself only has related products that you link by hand, one product at a time. In a shop with hundreds of products nobody keeps that up, and your own guess is not always what customers actually combine.
How does the module work?
On a product page the module searches your orders for other products that were bought in the same order, also through child products and variants. The product that was combined most often comes first. Only orders with the statuses you choose count, by default confirmed, shipped and completed.
A young shop has few orders. You then choose what fills the remaining places: the related products you set in VirtueMart, the best sellers from the same category, first the related products and then the category best sellers, or nothing at all.
Products are loaded through VirtueMart itself, so photo, name and price follow your shop settings and currency. Unpublished products are skipped and visitors never see order numbers.
What is included?
- A site module that only shows on VirtueMart product pages. You can assign it to all pages.
- Number of products (1 to 12), minimum number of shared orders and the order statuses that count.
- Fill up with related products, category best sellers, related first and then category, or not at all.
- Optionally hide products that are out of stock.
- A simple card grid that adapts to the width of the page, two products per row on a phone, its own scoped styling and a Product details button in the style of your shop (can be switched off).
- English and Dutch included, automatic updates through the Joomla update system.
Good to know
The module can only find combinations that are in your orders. A shop with a few dozen orders will often show nothing from orders yet, so start with fill up switched on. Options in a drop-down list on a product (a custom field) are not separate order lines, so the module does not see them as bought together. Add them as related products if you want them shown.
If your product page already shows the VirtueMart block Related products, set fill up to related or hide the VirtueMart block, otherwise visitors see the same products twice.
In our tests on two live shops a product page took the same time with and without the module, around 0.4 seconds, on a shop with almost 500 products.
System Requirements
- Joomla 5.x or 6.x (tested on Joomla 6.2)
- VirtueMart 4.x (tested on 4.6)
- PHP 8.1 or higher
Installation Guide
- Download the ZIP file with the button above
- In the Joomla administrator, go to System > Install > Extensions and upload the ZIP
- Go to Content > Site Modules > New and choose "VirtueMart Frequently Bought Together"
- Pick a position that is visible below the product, set Menu Assignment to On all pages and publish
Frequently asked questions
Does the module change VirtueMart files?
No. It only reads the order tables and loads the products through VirtueMart. Unpublish the module and your shop is exactly as before.
Why does the module show nothing on some products?
Then there is no product yet that was bought together with it often enough, and fill up is switched off. Lower the minimum number of orders to 1 or choose a fill up option.
Does it work with VirtueMart 5?
VirtueMart 5 is still in beta and we have not tested it yet. We will test it once there is a stable release.
Released under the GNU General Public License version 3 or later. See the licence.