Skip to content

Commit 5924f9f

Browse files
author
Serhii Balko
committed
MC-38625: Storefront Order History product count is doubled if has more than 10 configurables
1 parent fb2f1a7 commit 5924f9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Sales/Block/Order/Items.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ protected function _prepareLayout()
7171

7272
$this->itemCollection = $this->itemCollectionFactory->create();
7373
$this->itemCollection->setOrderFilter($this->getOrder());
74+
$this->itemCollection->addFieldToFilter('parent_item_id', ['null' => true]);
7475

7576
/** @var \Magento\Theme\Block\Html\Pager $pagerBlock */
7677
$pagerBlock = $this->getChildBlock('sales_order_item_pager');

0 commit comments

Comments
 (0)