Skip to content

Commit 3c33e1b

Browse files
committed
MC-33400: [Improvement] Magento\Checkout\Model\Cart::addOrderItem
1 parent d90c7f9 commit 3c33e1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Sales/Model/Reorder/Reorder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ private function addItemsToCart(Quote $cart, ItemCollection $orderItems, string
189189
$collection->setStore($storeId);
190190
$collection->addIdFilter($orderItemProductIds);
191191
$collection->addStoreFilter();
192+
$collection->addAttributeToSelect('*');
193+
$collection->joinAttribute('status', 'catalog_product/status', 'entity_id', null, 'inner');
194+
$collection->joinAttribute('visibility', 'catalog_product/visibility', 'entity_id', null, 'inner');
195+
192196
$products = $collection->getItems();
193197

194198
// compare founded products and throw an error if some product not exists

0 commit comments

Comments
 (0)