Skip to content

Commit ae5c89e

Browse files
committed
GraphQL cannot add product with customizable option to cart #37599
1 parent adc4105 commit ae5c89e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Quote/Model/Quote.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,8 @@ public function addProduct(
16471647
);
16481648
}
16491649

1650+
$productId = $product->getId();
1651+
$product = clone $this->productRepository->getById($productId, false, $this->getStore()->getId());
16501652
$cartCandidates = $product->getTypeInstance()->prepareForCartAdvanced($request, $product, $processMode);
16511653

16521654
/**

0 commit comments

Comments
 (0)