kalicr/custom-upsell-products (1.0.0)
Published 2026-06-25 21:02:27 +00:00 by kalicr-packages
Installation
{
"repositories": [{
"type": "composer",
"url": " "
}
]
}composer require kalicr/custom-upsell-products:1.0.0About this package
Magento 2 module that automatically fills empty upsell products from the same category.
Kalicr_CustomUpsellProducts
Automatically fills empty upsell products with items from the same category.
Features
- Automatic upsell — observes
catalog_product_upsellevent and fills empty upsells with same-category products. - Two selection modes — Random or Most recent (
created_at). - Configurable limit — maximum number of auto-upsell products.
- Respects manual upsells — only acts when no manual upsells are assigned.
- Silent try-catch logging for robustness.
Installation
Via Composer
composer require kalicr/custom-upsell-products:^1.0
bin/magento module:enable Kalicr_CustomUpsellProducts
bin/magento setup:upgrade
Manual (local debugging only)
Copy the module to app/code/Kalicr/CustomUpsellProducts, then enable and upgrade.
Configuration
Located at Stores → Configuration → Kal-í CR → Productos recomendados:
| Field | Description |
|---|---|
| Enable | Enable/disable auto-upsell |
| Mode | Aleatorio (random) or Más recientes (most recent) |
| Limit | Maximum number of upsell products |
Config path: kalicr_customupsellproducts/configuration/*
Dependencies
- Magento:
2.4.8-p4(Open Source / Adobe Commerce) - PHP:
^8.2 || ^8.3 - Modules:
Kalicr_Core,Magento_Catalog - Packages:
kalicr/core
Technical Notes
Observer/Related.php— listens tocatalog_product_upsellevent.Model/Config/Source/Mode.php— source model for selection mode.Helper/Data.php— reads configuration values.
Changelog
See CHANGELOG.md.
License
Proprietary KaliCR commercial license. See LICENSE.md.
Support
Dependencies
Dependencies
| ID | Version |
|---|---|
| kalicr/core | ^0.2.0 |
| magento/framework | ^103.0 |
| magento/module-catalog | ^104.0 |
| php | ^8.2 || ^8.3 |