{"data":{"id":"ACSD-66963","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the estimateTotals mutation returned null for discounts when a discount code was applied to a cart containing virtual products.","categories":["GraphQL","Shopping Cart","Price/Tax"],"components":["magento/module-quote-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-68/acsd-66963-estimatetotals-mutation-returns-null-for-discounts-on-virtual-products","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-68/acsd-66963-estimatetotals-mutation-returns-null-for-discounts-on-virtual-products.md","blobSha":"dcd6354315e4aa1f38744260e6bbad458b1aa7a9","description":"The estimateTotals mutation returns null for discounts when a discount code is applied to a cart containing only virtual products.","stepsToReproduce":"1. Create a cart containing only virtual products. 1. Apply a discount code: mutation { estimateTotals( input: { cart_id: \"cart_id\", address: { country_code: US, postcode: \"78732\", region: { region_code: \"TX\" } }, shipping_method: { carrier_code: \"{$shipping}\", method_code: \"{$shipping}\" } } ) { cart { prices { discounts { amount { value currency } label coupon { code } applied_to type } } } } }","introducedInQpt":"1.1.68","createdFor":["2.4.7-p4"],"documentedRange":"2.4.7 - 2.4.7-p6","scheduledFixRelease":null},"files":[{"package":"magento/magento2-base","constraint":">=2.4.7 <2.4.8","path":"patches/os/ACSD-66963_2.4.7-p4.patch","blobSha":"b2be0b823fc2e6990b0c016db73e25de3cd0609c","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-66963_2.4.7-p4.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-quote-graph-ql/Model/GetDiscounts.php","change":"modified","package":"magento/module-quote-graph-ql"}],"packages":["magento/module-quote-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"magento-commerce":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"magento-commerce":["2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-66963 details"}