User Tools

Site Tools


magento2:extensions:magento-2-customers-also-bought

Magento 2 Customers Also Bought Extension User Guide

For a shopper-friendly overview of features and setup, see the Magento 2 Customers Also Bought User Guide - Recommendations on the storefront. This wiki page remains the full technical documentation.

Extension context

This is a Toweringmedia Magento 2 extension guide for the current admin extension catalog.

Product page

Overview

This extension adds a “customers who bought this item also bought” recommendation block to Magento 2. Recommendations are derived from real order history rather than manually maintained related-product lists, and the block can be shown on the product page, the cart page, or both.

What this extension does

  • Generates recommendations from actual order history.
  • Displays a recommendation block on the product page and/or the cart page.
  • Configurable block title and maximum number of results.
  • Optional add-to-cart button directly in the recommendation block.

Requirements

  • Magento 2.4.x (Open Source or Adobe Commerce).
  • PHP: ^8.1 || ^8.2 || ^8.3 || ^8.4 (as declared by the published package).
  • A current Toweringmedia license and Composer credentials for https://composer.toweringmedia.com/.
  • Uses Magento's Catalog and Checkout modules, which are part of core Magento.

Installation

Install and validate in a staging environment before production rollout.

cd /path/to/magento
composer require toweringmedia/module-customers-also-bought
 
bin/magento module:enable Toweringmedia_CustomersAlsoBought
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Currently published versions at the time of writing:

  • toweringmedia/module-customers-also-bought — 1.0.3

Toweringmedia packages are served from the licensed Composer repository https://composer.toweringmedia.com/. If Composer reports that the package could not be found, your credentials are missing or the license does not cover this package yet. Retrieve your keys from My Account on toweringmedia.com, or contact support@toweringmedia.com.

General installation notes that apply to every Toweringmedia extension are in the installation guide.

Configuration

  • Stores > Configuration > Towering Media > Customers Also Bought (config section toweringmedia_customersalsobought).
  • Group general contains: enable, product page enabled, cart page enabled, block title, maximum results, and show add-to-cart.

Basic usage and what to expect

  1. Enable the module and choose whether the block appears on the product page, the cart page, or both.
  2. Set the block title and result limit, flush cache, then open a product that has order history.
  3. A store with little or no order history will produce few or no recommendations — this is expected behaviour, not a fault.

Validation checklist

  • bin/magento module:status shows the module(s) as enabled.
  • Extension configuration saves without errors in Admin.
  • The admin screens listed above are reachable and load without error.
  • Expected storefront/admin behavior is present after a cache flush.
  • No critical PHP/JS errors appear in var/log/ during the primary test flow.

Troubleshooting

  • Composer cannot find the package: confirm the https://composer.toweringmedia.com/ repository and your credentials are present in auth.json, and that your license covers this package.
  • Feature not visible: verify module status, flush cache, and redeploy static content.
  • Admin setting not applying: clear cache and confirm the config scope (default / website / store view).
  • Unexpected behavior: retest with only the required related modules enabled.

Support

magento2/extensions/magento-2-customers-also-bought.txt · Last modified: by 127.0.0.1