{"data":{"id":"magento2-37625","source":"github-pr","sourceRef":"magento/magento2#37625","title":"Custom Price of 0 gets reset to original price on reorder.","pr":{"number":37625,"url":"https://github.com/magento/magento2/pull/37625","author":"ianitsky","mergedAt":"2025-12-10T13:12:37Z","mergeCommit":"981635802e0f1ee990a39631b171fb811ee1c726","headCommit":"b88f076ded33f7d33c6a63b84f9a85ace4c0906b","baseRef":"2.4-develop","diffSha256":"4de134efdc7423d6aec0f0a6e5dd2be544a5ddc364fb67d4e9f49489609fc467"},"issues":[{"number":36970,"url":"https://github.com/magento/magento2/issues/36970","title":"Custom Price of 0 gets reset to original price on reorder.","labels":["Area: Order","Component: Pricing","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: PR in progress","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10","2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/module-quote"],"files":[{"path":"app/code/Magento/Quote/Model/Quote/Item/Processor.php","change":"modified","package":"magento/module-quote"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":2,"mergeBatched":false,"excluded":null,"sections":{"description":"The changed product has its original price.","stepsToReproduce":"Create an order in admin panel.\nSet custom price to 0 for one product.\nPlace the order.\nReorder the same order.","expectedResult":"Expect the changed product to have a custom price of 0.","actualResult":"The changed product has its original price.","source":"issue"},"signatures":[],"labels":{"area":["Order"],"component":["Pricing"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":["Order/Checkout","Price/Tax"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"a25b45253372b1a30cc875aaeae6bd5de5c285f8f6a23cca0b2e1086b94ffc13","isBugfix":0.9788,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9741,"feature":0.0054,"refactor":0.0092,"tests_only":0.0049,"docs_only":0.003,"dependency":0.0034},"confidence":0.9389},"scope":{"score":0.1981,"probabilities":{"0":0.8414,"1":0.1191,"2":0.0395},"confidence":0.5855},"risk":{"score":0.8656,"probabilities":{"0":0.5108,"1":0.1128,"2":0.3764},"confidence":0.123},"area":{"choice":"checkout","probabilities":{"catalog":0.0084,"checkout":0.9241,"customer":0.0052,"admin":0.0192,"graphql_api":0.0152,"framework":0.0076,"frontend":0.0058,"other":0.0145},"confidence":0.8342},"securityRelevant":0.0074,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0074,"2.4.0-p1":0.0091,"2.4.1":0.0071,"2.4.1-p1":0.0062,"2.4.2":0.0081,"2.4.2-p1":0.0082,"2.4.2-p2":0.011,"2.4.3":0.0106,"2.4.3-p1":0.0112,"2.4.3-p2":0.0109,"2.4.3-p3":0.0071,"2.4.4":0.0123,"2.4.4-p1":0.0084,"2.4.4-p10":0.0065,"2.4.4-p11":0.0077,"2.4.4-p12":0.0068,"2.4.4-p13":0.0076,"2.4.4-p14":0.0093,"2.4.4-p15":0.006,"2.4.4-p16":0.0073,"2.4.4-p17":0.0067,"2.4.4-p18":0.0055,"2.4.4-p2":0.0034,"2.4.4-p3":0.0034,"2.4.4-p4":0.0036,"2.4.4-p5":0.0036,"2.4.4-p6":0.0039,"2.4.4-p7":0.004,"2.4.4-p8":0.0045,"2.4.4-p9":0.0044,"2.4.5":0.0113,"2.4.5-p1":0.0096,"2.4.5-p10":0.007,"2.4.5-p11":0.0099,"2.4.5-p12":0.0093,"2.4.5-p13":0.0067,"2.4.5-p14":0.0067,"2.4.5-p15":0.006,"2.4.5-p16":0.0061,"2.4.5-p17":0.0079,"2.4.5-p2":0.0033,"2.4.5-p3":0.0053,"2.4.5-p4":0.005,"2.4.5-p5":0.0053,"2.4.5-p6":0.0054,"2.4.5-p7":0.0063,"2.4.5-p8":0.0042,"2.4.5-p9":0.0039,"2.4.6":0.0146,"2.4.6-p1":0.0127,"2.4.6-p10":0.0102,"2.4.6-p11":0.0096,"2.4.6-p12":0.0082,"2.4.6-p13":0.008,"2.4.6-p14":0.008,"2.4.6-p15":0.0071,"2.4.6-p2":0.004,"2.4.6-p3":0.0064,"2.4.6-p4":0.0087,"2.4.6-p5":0.0075,"2.4.6-p6":0.0073,"2.4.6-p7":0.0059,"2.4.6-p8":0.0054,"2.4.6-p9":0.0046,"2.4.7":0.0124,"2.4.7-p1":0.0088,"2.4.7-p10":0.0077,"2.4.7-p2":0.0063,"2.4.7-p3":0.0103,"2.4.7-p4":0.0138,"2.4.7-p5":0.0093,"2.4.7-p6":0.0117,"2.4.7-p7":0.0098,"2.4.7-p8":0.0068,"2.4.7-p9":0.0055,"2.4.8":0.0125,"2.4.8-p1":0.0107,"2.4.8-p2":0.0123,"2.4.8-p3":0.0116,"2.4.8-p4":0.0129,"2.4.8-p5":0.0099,"2.4.9":0.0128,"unspecified":0.3557},"confidence":0.1216},"backportWorthy":{"score":1.5486,"probabilities":{"0":0.0717,"1":0.3079,"2":0.6204},"confidence":0.2272}},"curated":{"title":"Custom price of 0 gets reset to the original price on the quote item","description":"When the custom price of a product is set to zero, for example on reorder from the admin panel or through graphql, the product has its original price and the free payment method becomes unavailable. Quote Item Processor::prepare used empty() on the custom price, which validates 0 as true. The change sets the custom price when it is not null and the product has no parent product.","categories":["Order/Checkout","Price/Tax"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-37625 details"}