{"data":{"id":"magento2-27245","source":"github-pr","sourceRef":"magento/magento2#27245","title":"Add to cart notification for related products","pr":{"number":27245,"url":"https://github.com/magento/magento2/pull/27245","author":"niravkrish","mergedAt":"2026-06-23T11:43:33Z","mergeCommit":"9d0b76e99fceb93e94ae0d85f95bd9ce0ce9b710","headCommit":"ce12d82d3bd8bdab15e3145d88c4402e56cea9c6","baseRef":"2.4-develop","diffSha256":"e1e1feeff1d98eb1864e7c9016414dd78b3287f0a6996d70d8228de0b6712c23"},"issues":[{"number":27164,"url":"https://github.com/magento/magento2/issues/27164","title":"Add to cart notification for related products","labels":["Area: Cart & Checkout","Component: Catalog","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":null,"containingTags":[],"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":"clean"},"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","2.4.9"],"components":["magento/module-checkout"],"files":[{"path":"app/code/Magento/Checkout/Model/Cart.php","change":"modified","package":"magento/module-checkout"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":53,"mergeBatched":false,"excluded":null,"sections":{"description":"1. Current product and related product added to cart\n1. The notification says \"You added *CURRENT PRODUCT NAME* to your shopping cart.\" (related product not mentioned)","stepsToReproduce":"1. Go to product page (choose a product which has a related product)\n1. Select a related product\n1. Click \"Add to cart\"","expectedResult":"1. Current product and related product added to cart\n1. The notification says \"You added *CURRENT PRODUCT NAME_ and _RELATED PRODUCT NAME* to your shopping cart.\"","actualResult":"1. Current product and related product added to cart\n1. The notification says \"You added *CURRENT PRODUCT NAME* to your shopping cart.\" (related product not mentioned)","source":"issue"},"signatures":[],"labels":{"area":["Cart & Checkout"],"component":["Catalog"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":["Shopping Cart"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"51b79c73ec1ff3033eb8c63d423e6e947af539674e18367f7b2249f7f63c7e01","isBugfix":0.9536,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9534,"feature":0.018,"refactor":0.015,"tests_only":0.0059,"docs_only":0.0038,"dependency":0.0039},"confidence":0.8914},"scope":{"score":1.0117,"probabilities":{"0":0.3449,"1":0.2984,"2":0.3567},"confidence":0.0028},"risk":{"score":1.2697,"probabilities":{"0":0.1791,"1":0.3721,"2":0.4488},"confidence":0.0579},"area":{"choice":"checkout","probabilities":{"catalog":0.0159,"checkout":0.9428,"customer":0.0037,"admin":0.0045,"graphql_api":0.0026,"framework":0.0061,"frontend":0.0196,"other":0.0048},"confidence":0.8738},"securityRelevant":0.0072,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0041,"2.4.0-p1":0.0043,"2.4.1":0.0068,"2.4.1-p1":0.0057,"2.4.2":0.0084,"2.4.2-p1":0.0081,"2.4.2-p2":0.0102,"2.4.3":0.0135,"2.4.3-p1":0.0125,"2.4.3-p2":0.016,"2.4.3-p3":0.0077,"2.4.4":0.0187,"2.4.4-p1":0.0124,"2.4.4-p10":0.0074,"2.4.4-p11":0.0092,"2.4.4-p12":0.0076,"2.4.4-p13":0.007,"2.4.4-p14":0.0092,"2.4.4-p15":0.0066,"2.4.4-p16":0.008,"2.4.4-p17":0.0063,"2.4.4-p18":0.0056,"2.4.4-p2":0.0032,"2.4.4-p3":0.0039,"2.4.4-p4":0.0047,"2.4.4-p5":0.0049,"2.4.4-p6":0.006,"2.4.4-p7":0.005,"2.4.4-p8":0.0052,"2.4.4-p9":0.0048,"2.4.5":0.0129,"2.4.5-p1":0.0121,"2.4.5-p10":0.0069,"2.4.5-p11":0.0091,"2.4.5-p12":0.0083,"2.4.5-p13":0.0072,"2.4.5-p14":0.008,"2.4.5-p15":0.0071,"2.4.5-p16":0.0063,"2.4.5-p17":0.0072,"2.4.5-p2":0.004,"2.4.5-p3":0.0066,"2.4.5-p4":0.0065,"2.4.5-p5":0.0064,"2.4.5-p6":0.0054,"2.4.5-p7":0.0062,"2.4.5-p8":0.0057,"2.4.5-p9":0.0044,"2.4.6":0.0229,"2.4.6-p1":0.015,"2.4.6-p10":0.0092,"2.4.6-p11":0.0099,"2.4.6-p12":0.0116,"2.4.6-p13":0.0093,"2.4.6-p14":0.01,"2.4.6-p15":0.0072,"2.4.6-p2":0.0043,"2.4.6-p3":0.0072,"2.4.6-p4":0.0091,"2.4.6-p5":0.0067,"2.4.6-p6":0.0092,"2.4.6-p7":0.0071,"2.4.6-p8":0.006,"2.4.6-p9":0.0048,"2.4.7":0.0119,"2.4.7-p1":0.0111,"2.4.7-p10":0.0073,"2.4.7-p2":0.0092,"2.4.7-p3":0.0116,"2.4.7-p4":0.0145,"2.4.7-p5":0.0108,"2.4.7-p6":0.0123,"2.4.7-p7":0.0122,"2.4.7-p8":0.0088,"2.4.7-p9":0.0051,"2.4.8":0.016,"2.4.8-p1":0.0125,"2.4.8-p2":0.0136,"2.4.8-p3":0.013,"2.4.8-p4":0.0134,"2.4.8-p5":0.0115,"2.4.9":0.0147,"unspecified":0.2777},"confidence":0.0735},"backportWorthy":{"score":1.1723,"probabilities":{"0":0.2322,"1":0.3633,"2":0.4045},"confidence":0.0243}},"curated":{"title":"Fixes the notification missing related products added to the cart","description":"On a product view, when selecting a related product and adding it to the cart with the current product, the notification says only the current product name. In Checkout Model Cart.php, a notification is now added for each product added to the shopping cart, not one notification with both product names as expected.","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-27245 details"}