{"data":{"id":"magento2-37899","source":"github-pr","sourceRef":"magento/magento2#37899","title":"Currency code not change in New product widget","pr":{"number":37899,"url":"https://github.com/magento/magento2/pull/37899","author":"rogerdz","mergedAt":"2024-05-28T15:06:27Z","mergeCommit":"e6f56b1bc8a53348309aae9484b2e001fa6f1127","headCommit":"2b1ed878787fd5f6dd0e328ea719997878176856","baseRef":"2.4-develop","diffSha256":"d85fcb80ae5215e4996e4b0e7449e5e7fb57527ff4dbf4571fc5401475d7958b"},"issues":[{"number":37898,"url":"https://github.com/magento/magento2/issues/37898","title":"Currency code not change in New product widget","labels":["Area: Catalog","Component: CatalogWidget","Issue: Confirmed","Priority: P2","Progress: done","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","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":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","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"],"components":["magento/module-catalog"],"files":[{"path":"app/code/Magento/Catalog/Block/Product/Widget/NewWidget.php","change":"modified","package":"magento/module-catalog"}],"stripped":{"tests":["dev/tests/integration/testsuite/Magento/Catalog/Block/Product/NewTest.php"],"docs":[],"outsideCode":[]},"linesChanged":18,"mergeBatched":false,"excluded":null,"sections":{"description":"Currency code not change when change currency in frontend","stepsToReproduce":"1. Setup multi currency in admin in Stores -> Configuration -> General -> Currency Setup\n2. Add new product widget in homepage cms: {{widget type=\"Magento\\Catalog\\Block\\Product\\Widget\\NewWidget\" display_type=\"new_products\" show_pager=\"0\" products_count=\"10\" template=\"product/widget/new/content/new_grid.phtml\"}} \n3. Change value attribute Set Product as New From with current date for some random product\n4. In frontend change currency in header","expectedResult":"Currency code product in widget displays the same as the currency selected in frontend","actualResult":"Currency code not change when change currency in frontend","source":"issue"},"signatures":[],"labels":{"area":["Catalog"],"component":["CatalogWidget"],"priority":"P2","severity":null,"reportedOn":[]},"categories":["Catalog/Product"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"0463d0b07d1c07c20d7d15c4b75786e90260837d6a831bc24ef98309ab78bfcc","isBugfix":0.9759,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9752,"feature":0.0046,"refactor":0.0088,"tests_only":0.006,"docs_only":0.0024,"dependency":0.003},"confidence":0.9414},"scope":{"score":0.765,"probabilities":{"0":0.3494,"1":0.5363,"2":0.1143},"confidence":0.1341},"risk":{"score":0.4095,"probabilities":{"0":0.6878,"1":0.2149,"2":0.0973},"confidence":0.293},"area":{"choice":"catalog","probabilities":{"catalog":0.7814,"checkout":0.0125,"customer":0.0065,"admin":0.0218,"graphql_api":0.0062,"framework":0.0198,"frontend":0.1365,"other":0.0153},"confidence":0.5778},"securityRelevant":0.0063,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0102,"2.4.0-p1":0.0051,"2.4.1":0.0034,"2.4.1-p1":0.0034,"2.4.2":0.0046,"2.4.2-p1":0.0038,"2.4.2-p2":0.0055,"2.4.3":0.0095,"2.4.3-p1":0.0074,"2.4.3-p2":0.0072,"2.4.3-p3":0.0047,"2.4.4":0.0074,"2.4.4-p1":0.0057,"2.4.4-p10":0.0043,"2.4.4-p11":0.0054,"2.4.4-p12":0.0048,"2.4.4-p13":0.0046,"2.4.4-p14":0.0052,"2.4.4-p15":0.004,"2.4.4-p16":0.0046,"2.4.4-p17":0.004,"2.4.4-p18":0.0039,"2.4.4-p2":0.0032,"2.4.4-p3":0.0034,"2.4.4-p4":0.0035,"2.4.4-p5":0.004,"2.4.4-p6":0.0039,"2.4.4-p7":0.0044,"2.4.4-p8":0.004,"2.4.4-p9":0.0031,"2.4.5":0.0056,"2.4.5-p1":0.0055,"2.4.5-p10":0.0043,"2.4.5-p11":0.0055,"2.4.5-p12":0.006,"2.4.5-p13":0.0054,"2.4.5-p14":0.0054,"2.4.5-p15":0.005,"2.4.5-p16":0.0043,"2.4.5-p17":0.0049,"2.4.5-p2":0.0034,"2.4.5-p3":0.0043,"2.4.5-p4":0.0044,"2.4.5-p5":0.0041,"2.4.5-p6":0.0042,"2.4.5-p7":0.0046,"2.4.5-p8":0.004,"2.4.5-p9":0.0033,"2.4.6":0.007,"2.4.6-p1":0.007,"2.4.6-p10":0.0056,"2.4.6-p11":0.007,"2.4.6-p12":0.0059,"2.4.6-p13":0.0066,"2.4.6-p14":0.0067,"2.4.6-p15":0.0047,"2.4.6-p2":0.004,"2.4.6-p3":0.006,"2.4.6-p4":0.0066,"2.4.6-p5":0.006,"2.4.6-p6":0.0059,"2.4.6-p7":0.0067,"2.4.6-p8":0.0051,"2.4.6-p9":0.0039,"2.4.7":0.006,"2.4.7-p1":0.0055,"2.4.7-p10":0.0063,"2.4.7-p2":0.0049,"2.4.7-p3":0.0073,"2.4.7-p4":0.0086,"2.4.7-p5":0.0076,"2.4.7-p6":0.0087,"2.4.7-p7":0.0081,"2.4.7-p8":0.0061,"2.4.7-p9":0.004,"2.4.8":0.0054,"2.4.8-p1":0.0055,"2.4.8-p2":0.0066,"2.4.8-p3":0.0082,"2.4.8-p4":0.0077,"2.4.8-p5":0.007,"2.4.9":0.0069,"unspecified":0.5525},"confidence":0.2994},"backportWorthy":{"score":1.4538,"probabilities":{"0":0.1528,"1":0.2407,"2":0.6065},"confidence":0.1738}},"curated":{"title":"Currency code does not change in the New products widget","description":"With multi currency set up, the price currency code in the New products widget does not change when the currency is changed in the frontend header. The change in NewWidget::getCacheKeyInfo adds the currency from the HTTP context, or the store default currency code, to the widget cache key info.","categories":["Catalog/Product"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.7-p10":{"before":"not-runnable","after":"pass","adapted":false,"runAt":"2026-10-06T09:39:30.377Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"integration":{"before":"not-runnable","after":"pass","runAt":"2026-10-06T09:39:30.377Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-37899 details"}