kalicr/dynamic-cross-sell (1.0.0)
Published 2026-06-25 21:02:04 +00:00 by kalicr-packages
Installation
{
"repositories": [{
"type": "composer",
"url": " "
}
]
}composer require kalicr/dynamic-cross-sell:1.0.0About this package
Magento 2 module that replaces cart cross-sell items with dynamic category-based product selection.
Kalicr_DynamicCrossSell
Replaces Magento's cart cross-sell logic with dynamic category-based product selection.
Features
- Dynamic cross-sell — fills the cart cross-sell block with products from the same categories as cart items.
- Configurable maximum — limit the number of cross-sell items shown.
- Enable/disable toggle from admin configuration.
- Respects manual cross-sells — only fills when cross-sell is empty.
Installation
Via Composer
composer require kalicr/dynamic-cross-sell:^1.0
bin/magento module:enable Kalicr_DynamicCrossSell
bin/magento setup:upgrade
Manual (local debugging only)
Copy the module to app/code/Kalicr/DynamicCrossSell, then enable and upgrade.
Configuration
Located at Stores → Configuration → Kal-í CR → Dynamic Cross Sell:
| Field | Description |
|---|---|
| Enable | Enable/disable dynamic cross-sells |
| Max Items | Maximum number of cross-sell items to show |
Config path: kalicr_dynamic_crosssell/general/*
Dependencies
- Magento:
2.4.8-p4(Open Source / Adobe Commerce) - PHP:
^8.2 || ^8.3 - Modules:
Kalicr_Core,Magento_Checkout,Magento_Catalog - Packages:
kalicr/core
Technical Notes
Plugin/PluginCrosssell.php—aroundGetItemsonMagento\Checkout\Block\Cart\Crosssell.Helper/Data.phpreads enable flag and item limit from configuration.- Uses
$product->getCategoryIds()for category-based selection.
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 |
| magento/module-checkout | ^100.0 |
| php | ^8.2 || ^8.3 |