{"data":{"id":"magento2-36878","source":"github-pr","sourceRef":"magento/magento2#36878","title":"Set price on quote item instead of base_price","pr":{"number":36878,"url":"https://github.com/magento/magento2/pull/36878","author":"hostep","mergedAt":"2025-07-02T13:10:14Z","mergeCommit":"06b2026416dff29463519630bcbf26e1347d2c6c","headCommit":"203f2c21adce0e12d39170b18e066392a733c82d","baseRef":"2.4-develop","diffSha256":"d0db63b1e2476b067605ecd3ee2ec87d338319e41538cab3e3ab53c4f3f98654"},"issues":[{"number":38094,"url":"https://github.com/magento/magento2/issues/38094","title":"[Issue] Set price on quote item instead of base_price","labels":["Area: Cart & Checkout","Component: DB","Component: Frontend","Issue: Confirmed","Priority: P2","Progress: PR in progress","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x"],"kind":"pr-derived"}],"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-checkout","magento/module-tax"],"files":[{"path":"app/code/Magento/Checkout/CustomerData/DefaultItem.php","change":"modified","package":"magento/module-checkout"},{"path":"app/code/Magento/Tax/Model/Sales/Total/Quote/CommonTaxCollector.php","change":"modified","package":"magento/module-tax"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":5,"mergeBatched":false,"excluded":null,"sections":{"description":"For some unknown reason, a quote item's price gets incorrectly set to the base_price instead of the price.\nWhich means that if you have multiple currencies in one website on the frontend, both price & base_price are stored in the database in the base currency. We would expect the price to be in the other currency and not the base currency.","stepsToReproduce":"1. Have 2 storeviews\n2. Configure \"Stores > Configuration > General > Currency Setup\" so that one of the 2 storeviews use different currency then the \"default\" values\n3. Check in backoffice under \"Stores > Currency > Currency Rates\" that the 2 currencies aren't exactly the same rate, if they are the same, manually add some dummy exchange rate\n4. Create a new product, give it a price of 100\n5. Reindex, flush caches\n6. In frontend, visit the product on the 2 different storeviews, you should see 2 different prices and currencies if all goes well.\n7. On the storeview where the currency isn't the same as the \"default\" value, put the product in the cart\n8. Now inspect the database, the table `quote_item`, the columns `price` and `base_price`\n9. It's expected that the values aren't the same, the `base_price` should contain `100`, the `price` should contain the value from the other currency.","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Cart & Checkout"],"component":["DB","Frontend"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":["Shopping Cart"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"ff8dbc94a753583ee1917ebd9724317893566072caf8dea17923e75ca7cc90b4","isBugfix":0.9693,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9752,"feature":0.0038,"refactor":0.0101,"tests_only":0.0042,"docs_only":0.0037,"dependency":0.003},"confidence":0.9414},"scope":{"score":0.6535,"probabilities":{"0":0.4885,"1":0.3695,"2":0.142},"confidence":0.093},"risk":{"score":1.3909,"probabilities":{"0":0.2232,"1":0.1626,"2":0.6142},"confidence":0.1802},"area":{"choice":"checkout","probabilities":{"catalog":0.0092,"checkout":0.9394,"customer":0.0063,"admin":0.0065,"graphql_api":0.0033,"framework":0.0087,"frontend":0.0157,"other":0.0109},"confidence":0.8664},"securityRelevant":0.0067,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0048,"2.4.0-p1":0.0049,"2.4.1":0.0049,"2.4.1-p1":0.0042,"2.4.2":0.0071,"2.4.2-p1":0.0062,"2.4.2-p2":0.0087,"2.4.3":0.0094,"2.4.3-p1":0.0121,"2.4.3-p2":0.0132,"2.4.3-p3":0.0073,"2.4.4":0.0148,"2.4.4-p1":0.0099,"2.4.4-p10":0.0072,"2.4.4-p11":0.0087,"2.4.4-p12":0.0075,"2.4.4-p13":0.0074,"2.4.4-p14":0.0089,"2.4.4-p15":0.0066,"2.4.4-p16":0.0075,"2.4.4-p17":0.0067,"2.4.4-p18":0.0061,"2.4.4-p2":0.0039,"2.4.4-p3":0.0043,"2.4.4-p4":0.0046,"2.4.4-p5":0.0044,"2.4.4-p6":0.0054,"2.4.4-p7":0.0048,"2.4.4-p8":0.0055,"2.4.4-p9":0.0046,"2.4.5":0.013,"2.4.5-p1":0.0092,"2.4.5-p10":0.0067,"2.4.5-p11":0.0107,"2.4.5-p12":0.0101,"2.4.5-p13":0.0074,"2.4.5-p14":0.0084,"2.4.5-p15":0.0064,"2.4.5-p16":0.007,"2.4.5-p17":0.007,"2.4.5-p2":0.004,"2.4.5-p3":0.0056,"2.4.5-p4":0.0054,"2.4.5-p5":0.0053,"2.4.5-p6":0.0068,"2.4.5-p7":0.007,"2.4.5-p8":0.0053,"2.4.5-p9":0.0047,"2.4.6":0.029,"2.4.6-p1":0.0156,"2.4.6-p10":0.0088,"2.4.6-p11":0.0105,"2.4.6-p12":0.0102,"2.4.6-p13":0.0102,"2.4.6-p14":0.0119,"2.4.6-p15":0.0091,"2.4.6-p2":0.0057,"2.4.6-p3":0.0092,"2.4.6-p4":0.009,"2.4.6-p5":0.0072,"2.4.6-p6":0.0102,"2.4.6-p7":0.0084,"2.4.6-p8":0.0062,"2.4.6-p9":0.0054,"2.4.7":0.0169,"2.4.7-p1":0.0117,"2.4.7-p10":0.0096,"2.4.7-p2":0.0082,"2.4.7-p3":0.0117,"2.4.7-p4":0.0147,"2.4.7-p5":0.0118,"2.4.7-p6":0.0146,"2.4.7-p7":0.0127,"2.4.7-p8":0.0101,"2.4.7-p9":0.007,"2.4.8":0.0165,"2.4.8-p1":0.0148,"2.4.8-p2":0.0169,"2.4.8-p3":0.0143,"2.4.8-p4":0.0151,"2.4.8-p5":0.0133,"2.4.9":0.0187,"unspecified":0.2532},"confidence":0.0611},"backportWorthy":{"score":1.3545,"probabilities":{"0":0.1213,"1":0.4029,"2":0.4758},"confidence":0.1052}},"curated":{"title":"Fixes quote item price stored in the base currency on another currency store","description":"With multiple currencies in one website on the frontend, a quote item price gets set to the base_price, so both price and base_price in quote_item are stored in the base currency. CommonTaxCollector updateItemTaxInfo now will setPrice from itemTaxDetails, not baseItemTaxDetails, and the Checkout CustomerData DefaultItem mini cart data calls setConvertedPrice with the item price.","categories":["Shopping Cart"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-36878 details"}