Closed
Description
Preconditions (*)
- Magento version: 2.4.1
- PHP version: 7.4
Steps to reproduce (*)
- Create a simple product, to be used in all bundle products
- Create +60 bundles with the simple product as child
- Visit the product detail of the simple products -> you'll notice that all bundles will be shown as upsell products
When taking Magento\Catalog\Block\Product\ProductList\Upsell and looking at the method _prepareData we'll notice that the following event is fired:
$this->_eventManager->dispatch( 'catalog_product_upsell', ['product' => $product, 'collection' => $this->_itemCollection, 'limit' => null] );
The limit being set on the block should be passed to the 'limit' parameter. So the observer Magento\Bundle\Observer\AppendUpsellProductsObserver can take it under consideration.
Expected result (*)
- Upsell products are limited to the set limit quantity when defining it in catalog_product_view.xml
Actual result (*)
- FPM crashes due to high load and out of memory
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.