{"data":{"id":"ACSD-57643","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where products with custom options are incorrectly added to the shopping cart via GraphQL.","categories":["GraphQL","Shopping Cart"],"components":["magento/module-quote"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-49/acsd-57643-products-with-custom-options-are-incorrectly-added","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-49/acsd-57643-products-with-custom-options-are-incorrectly-added.md","blobSha":"75dc01505f6992fe8464dbf8299353bce0ed0a26","description":"Products with custom options are incorrectly added to the shopping cart via GraphQL.","stepsToReproduce":"1. Create a custom option type field for the product. 1. Generate a customer token using GraphQL. 1. Create an empty cart. 1. Add the product to the cart using the below payload: mutation { addProductsToCart( cartId: \"wNVOTaE6sDCJoObZCCqikHQI3GyFaVif\" cartItems: [ { quantity: 1 sku: \"24-MB01\" entered_options: [{ uid:\"Y3VzdG9tLW9wdGlvbi8x\", value:\"product1 option1 \" }] }, { quantity: 1 sku: \"24-MB01\" entered_options: [{ uid:\"Y3VzdG9tLW9wdGlvbi8x\", value:\"product2 option1\" }] } { quantity: 3 sku: \"24-MB01\", entered_options: [{ uid:\"Y3VzdG9tLW9wdGlvbi8x\" value:\"product3 option1\" }] } ] ) { cart { items { product { name sku } ... on SimpleCartItem { customizable_options { customizable_option_uid label values { customizable_option_value_uid value } } } quantity } } user_errors { code message } } } 1. You will see that the product is added only once: { \"data\": { \"addProductsToCart\": { \"cart\": { \"items\": [ { \"product\": { \"name\": \"Joust Duffle Bag\", \"sku\": \"24-MB01\" }, \"customizable_options\": [ { \"customizable_option_uid\": \"Y3VzdG9tLW9wdGlvbi8x\", \"label\": \"Option1\", \"values\": [ { \"customizable_option_value_uid\": \"Y3VzdG9tLW9wdGlvbi8x\", \"value\": \"product1 option1\" } ] } ], \"quantity\": 5 } ] }, \"user_errors\": [] } } }","introducedInQpt":"1.1.49","createdFor":["2.4.6-p3"],"documentedRange":"2.4.6 - 2.4.6-p7","scheduledFixRelease":null},"files":[{"package":"magento/magento2-base","constraint":">=2.4.6 <2.4.7","path":"patches/os/ACSD-57643_2.4.6-p3.patch","blobSha":"6c279ca5cbb49ffb45718846ce3a173ae6bd5848","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-57643_2.4.6-p3.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-quote/Model/Cart/AddProductsToCart.php","change":"modified","package":"magento/module-quote"}],"packages":["magento/module-quote"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-57643 details"}