You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This prevents undesired behavior when adding multiple variants of the same SKU
to the cart in a single request. Without cloning the product when adding to,
the product object set with the quote item is a referenced object. When adding
a n+1 cart item with same sku, but different options multiple cart items are
referencing the same instance of a product object. This causes
Item::representProduct to ignore custom option and variant differences.
Fixesmagento/graphql-ce#854
Copy file name to clipboardExpand all lines: dev/tests/api-functional/testsuite/Magento/GraphQl/ConfigurableProduct/AddConfigurableProductToCartTest.php
+72Lines changed: 72 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,78 @@ public function testAddConfigurableProductToCart()
0 commit comments