{"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":"492c7d5ce5f5f035feac21a612bdde805c2f932ebb7429c276fa71937b06ff74","isBugfix":0.954,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9513,"feature":0.0148,"refactor":0.0122,"tests_only":0.0051,"docs_only":0.0034,"dependency":0.0035,"cleanup":0.0097},"confidence":0.8898},"scope":{"score":0.9213,"probabilities":{"0":0.378,"1":0.3228,"2":0.2992},"confidence":0.0049},"risk":{"score":1.1978,"probabilities":{"0":0.2147,"1":0.3728,"2":0.4125},"confidence":0.0329},"area":{"choice":"checkout","probabilities":{"catalog":0.0149,"checkout":0.9411,"customer":0.004,"admin":0.0051,"graphql_api":0.0027,"framework":0.0069,"frontend":0.0207,"other":0.0046},"confidence":0.8703},"securityRelevant":0.007,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0048,"2.4.0-p1":0.0048,"2.4.1":0.008,"2.4.1-p1":0.0057,"2.4.2":0.0096,"2.4.2-p1":0.0085,"2.4.2-p2":0.0099,"2.4.3":0.0177,"2.4.3-p1":0.0137,"2.4.3-p2":0.0161,"2.4.3-p3":0.0079,"2.4.4":0.0187,"2.4.4-p1":0.0118,"2.4.4-p10":0.0076,"2.4.4-p11":0.01,"2.4.4-p12":0.0078,"2.4.4-p13":0.0078,"2.4.4-p14":0.0093,"2.4.4-p15":0.007,"2.4.4-p16":0.008,"2.4.4-p17":0.0061,"2.4.4-p18":0.0055,"2.4.4-p2":0.0035,"2.4.4-p3":0.004,"2.4.4-p4":0.0049,"2.4.4-p5":0.0048,"2.4.4-p6":0.0064,"2.4.4-p7":0.0053,"2.4.4-p8":0.0052,"2.4.4-p9":0.005,"2.4.5":0.0131,"2.4.5-p1":0.0115,"2.4.5-p10":0.0072,"2.4.5-p11":0.0092,"2.4.5-p12":0.0084,"2.4.5-p13":0.0073,"2.4.5-p14":0.0087,"2.4.5-p15":0.0071,"2.4.5-p16":0.0064,"2.4.5-p17":0.0066,"2.4.5-p2":0.0039,"2.4.5-p3":0.0058,"2.4.5-p4":0.0058,"2.4.5-p5":0.0051,"2.4.5-p6":0.0054,"2.4.5-p7":0.0066,"2.4.5-p8":0.006,"2.4.5-p9":0.0043,"2.4.6":0.0218,"2.4.6-p1":0.0137,"2.4.6-p10":0.0078,"2.4.6-p11":0.0103,"2.4.6-p12":0.0119,"2.4.6-p13":0.0089,"2.4.6-p14":0.0098,"2.4.6-p15":0.0075,"2.4.6-p2":0.0046,"2.4.6-p3":0.008,"2.4.6-p4":0.0091,"2.4.6-p5":0.0073,"2.4.6-p6":0.0078,"2.4.6-p7":0.0073,"2.4.6-p8":0.0059,"2.4.6-p9":0.005,"2.4.7":0.0113,"2.4.7-p1":0.0099,"2.4.7-p10":0.0069,"2.4.7-p2":0.0082,"2.4.7-p3":0.0111,"2.4.7-p4":0.0125,"2.4.7-p5":0.0115,"2.4.7-p6":0.013,"2.4.7-p7":0.0115,"2.4.7-p8":0.0083,"2.4.7-p9":0.0051,"2.4.8":0.0184,"2.4.8-p1":0.0116,"2.4.8-p2":0.013,"2.4.8-p3":0.0124,"2.4.8-p4":0.0128,"2.4.8-p5":0.0105,"2.4.9":0.0159,"unspecified":0.2756},"confidence":0.0723},"backportWorthy":{"score":1.1852,"probabilities":{"0":0.2231,"1":0.3686,"2":0.4083},"confidence":0.0285}},"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, so the related product is named too.","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"}