{"data":{"id":"magento2-38159","source":"github-pr","sourceRef":"magento/magento2#38159","title":" issue with the price display in the Recently Viewed widget","pr":{"number":38159,"url":"https://github.com/magento/magento2/pull/38159","author":"DhruvBasan","mergedAt":"2024-05-28T15:06:26Z","mergeCommit":"cf8f7166f2fedcffa5c3b11610555227f6173d54","headCommit":"1a6f0c9b552198f69f4667c349b38eb1f141728a","baseRef":"2.4-develop","diffSha256":"29f769dca9b0c75bdc131c181aae8bb01d867d3e8b4af3302d84a4ab2090fe9d"},"issues":[{"number":38167,"url":"https://github.com/magento/magento2/issues/38167","title":"[Issue]  issue with the price display in the Recently Viewed widget","labels":["Area: Content / CMS","Component: Pricing","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x"],"kind":"pr-derived"}],"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/view/base/web/template/product/price/regular_price.html","change":"modified","package":"magento/module-catalog"},{"path":"app/code/Magento/Catalog/view/base/web/template/product/price/special_price.html","change":"modified","package":"magento/module-catalog"}],"stripped":{"tests":["app/code/Magento/Cms/Test/Mftf/Test/AdminAddRecentlyViewedProductWidgetToSeeProductPriceTest.xml"],"docs":[],"outsideCode":[]},"linesChanged":4,"mergeBatched":false,"excluded":null,"sections":{"description":"When we visit the out-of-stock simple product in the frontend that product price is not shown in the “Recently viewed Product” widget however we can see the same out-of-stock product price in the “Related Product” Widget And “Product list page” so as per Magento behavior the price of the out of stock simple product should be shown in “Recently viewed Product” Widget also.in screenshot1 you can see that we can not see the price in the ‘recently viewed product’ widget but  we can see the same ‘out-of-stock’ product price in the ‘related product’ widget \nScreenshot 1:\n![image](https://github.com/magento/magento2/assets/124759248/8a47e1ff-9ae1-4117-87d3-adfac76cdc41)","stepsToReproduce":"1: Access the Magento admin panel and navigate to 'content' -> 'Widget' and   add a widget\n2: in “Storefront Properties” and “Layout Updates” select  the option as shown in screenshot2\nScreenshot 2:\n![image](https://github.com/magento/magento2/assets/124759248/7d3c5e49-ff45-4801-9cfb-1273d7433269)\n\n3:in the widget options setting select the option as shown in below screenshot and save the widget\nScreenshot 3:\n![image](https://github.com/magento/magento2/assets/124759248/13a07ea3-f9cc-4c15-a32e-fd6ac90d6459)\n\n4: create some simple product and set them as ‘Out of stock’ or change the status of existing products to ‘Out of stock’\n\n5: After navigate to 'stores' -> 'configuration'->catalog->inventory in stock option tab set the ‘display out of stock product’ to yes as you can see in screenshot 4\n![image](https://github.com/magento/magento2/assets/124759248/bff1841e-29c3-4f18-98dc-139e65f3f29f)\n\n6:now you visit these ‘out-of-stock’ simple product and  see the recently viewed product widget you can see that the price of out of stock simple product is not shown in the “Recently Viewed Product”\nScreenshot 5:\n![image](https://github.com/magento/magento2/assets/124759248/31a0697e-990a-4842-aa04-fff787a2820a)","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Content / CMS"],"component":["Pricing"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":["Content","Price/Tax"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"cf1cd5891714c0e52abcae061ae7b0beb983b675644320ce8120442cf133f54f","isBugfix":0.9717,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9657,"feature":0.007,"refactor":0.0112,"tests_only":0.0091,"docs_only":0.0035,"dependency":0.0035},"confidence":0.9194},"scope":{"score":0.6129,"probabilities":{"0":0.4765,"1":0.4341,"2":0.0894},"confidence":0.1352},"risk":{"score":0.7112,"probabilities":{"0":0.4107,"1":0.4674,"2":0.1219},"confidence":0.103},"area":{"choice":"frontend","probabilities":{"catalog":0.1303,"checkout":0.005,"customer":0.0036,"admin":0.0134,"graphql_api":0.0025,"framework":0.0061,"frontend":0.8287,"other":0.0104},"confidence":0.6618},"securityRelevant":0.0066,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0036,"2.4.0-p1":0.0031,"2.4.1":0.0034,"2.4.1-p1":0.0032,"2.4.2":0.0051,"2.4.2-p1":0.0051,"2.4.2-p2":0.0074,"2.4.3":0.0088,"2.4.3-p1":0.0109,"2.4.3-p2":0.011,"2.4.3-p3":0.0058,"2.4.4":0.0117,"2.4.4-p1":0.0078,"2.4.4-p10":0.0062,"2.4.4-p11":0.0073,"2.4.4-p12":0.006,"2.4.4-p13":0.0056,"2.4.4-p14":0.0069,"2.4.4-p15":0.0048,"2.4.4-p16":0.0063,"2.4.4-p17":0.0049,"2.4.4-p18":0.0041,"2.4.4-p2":0.0025,"2.4.4-p3":0.0031,"2.4.4-p4":0.003,"2.4.4-p5":0.0033,"2.4.4-p6":0.0046,"2.4.4-p7":0.0041,"2.4.4-p8":0.0042,"2.4.4-p9":0.0035,"2.4.5":0.0133,"2.4.5-p1":0.0103,"2.4.5-p10":0.0073,"2.4.5-p11":0.0115,"2.4.5-p12":0.0108,"2.4.5-p13":0.0081,"2.4.5-p14":0.0073,"2.4.5-p15":0.0075,"2.4.5-p16":0.0086,"2.4.5-p17":0.0081,"2.4.5-p2":0.0038,"2.4.5-p3":0.005,"2.4.5-p4":0.0058,"2.4.5-p5":0.0047,"2.4.5-p6":0.0058,"2.4.5-p7":0.0058,"2.4.5-p8":0.0056,"2.4.5-p9":0.0049,"2.4.6":0.0522,"2.4.6-p1":0.0227,"2.4.6-p10":0.0123,"2.4.6-p11":0.0155,"2.4.6-p12":0.0123,"2.4.6-p13":0.0135,"2.4.6-p14":0.0126,"2.4.6-p15":0.0104,"2.4.6-p2":0.005,"2.4.6-p3":0.0096,"2.4.6-p4":0.01,"2.4.6-p5":0.0088,"2.4.6-p6":0.0095,"2.4.6-p7":0.0098,"2.4.6-p8":0.0073,"2.4.6-p9":0.0066,"2.4.7":0.0241,"2.4.7-p1":0.0175,"2.4.7-p10":0.0106,"2.4.7-p2":0.009,"2.4.7-p3":0.0153,"2.4.7-p4":0.0154,"2.4.7-p5":0.0122,"2.4.7-p6":0.0175,"2.4.7-p7":0.0137,"2.4.7-p8":0.011,"2.4.7-p9":0.0079,"2.4.8":0.022,"2.4.8-p1":0.0162,"2.4.8-p2":0.0176,"2.4.8-p3":0.0174,"2.4.8-p4":0.0181,"2.4.8-p5":0.0122,"2.4.9":0.0189,"unspecified":0.2038},"confidence":0.0416},"backportWorthy":{"score":1.4824,"probabilities":{"0":0.123,"1":0.2715,"2":0.6055},"confidence":0.1832}},"curated":{"title":"The Recently Viewed Products widget shows no price for out-of-stock products","description":"The Recently Viewed Product widget does not show the price of an out-of-stock simple product, but the Related Product widget and the product list page show it. The change removes the isSalable($row()) condition from the regular_price.html and special_price.html templates in Magento_Catalog, so special_price.html only uses hasSpecialPrice($row()).","categories":["Price/Tax","Content"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38159 details"}