Skip to content

Bundle products limit in upsell collection on product detail page #31840

Closed
@vrielsa

Description

@vrielsa

Preconditions (*)

  1. Magento version: 2.4.1
  2. PHP version: 7.4

Steps to reproduce (*)

  1. Create a simple product, to be used in all bundle products
  2. Create +60 bundles with the simple product as child
  3. 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 (*)

  1. Upsell products are limited to the set limit quantity when defining it in catalog_product_view.xml

Actual result (*)

  1. 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”.

Metadata

Metadata

Labels

Issue: needs updateAdditional information is require, waiting for response

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions