{"id":2636,"date":"2024-12-31T20:25:46","date_gmt":"2024-12-31T20:25:46","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/fixed-product-details-missing-in-order-confirmation-email-after-upgrading-to-magento-2-4-x\/"},"modified":"2025-05-21T18:05:47","modified_gmt":"2025-05-21T12:35:47","slug":"product-details-missing-in-order-confirmation-email-after-upgrading-to-magento-2-4-x","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/product-details-missing-in-order-confirmation-email-after-upgrading-to-magento-2-4-x\/","title":{"rendered":"Fixed: Product Details Missing in Order Confirmation Email After Upgrading to Magento 2.4.x"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Howdy Magento guys?  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Are your customers complaining about <em><strong>product details missing in order confirmation email after upgrading to Magento 2.4.x<\/strong><\/em>?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well, you&#8217;re not alone!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many of the merchants are facing the &#8216;missing order item details in Magento 2 order confirmation email&#8217; issue after upgrading to Magento 2.4.x. The issue is generally detected among the stores using custom email templates for order confirmation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m here to help you fix the missing product item details in <a title=\"How to Set Up Magento 2 Order Confirmation Email\" href=\"https:\/\/meetanshi.com\/blog\/set-up-order-confirmation-email-in-magento-2\/\" target=\"_blank\" rel=\"noopener\">Magento 2 order confirmation email<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Order confirmation mail acts as an acknowledgment of the successful order placement. <a title=\"Magento Commerce\" href=\"https:\/\/business.adobe.com\/products\/magento\/magento-commerce.html\" target=\"_blank\" rel=\"noopener\">Magento 2<\/a> automatically sends order confirmation emails to customers with the following essential information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ordered products<\/li>\n\n\n\n<li>Total price<\/li>\n\n\n\n<li>Billing information<\/li>\n\n\n\n<li>Shipping addresses<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Recently, one of our clients rushed to me regarding the &#8216;item details missing in the order confirmation email after upgrading to Magento 2.4.x&#8217; issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I dug down the root cause of the issue and found a solution that works. \u2728<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Read this blog post till the end to solve the product details missing in order confirmation email after upgrading to Magento 2.4.x issue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Fix Product Details Missing in Order Email After Upgrading to Magento 2.4?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On investigating the problem, I found that there was some issue with variables in the Magento 2 email template. All you need to do is find &amp; replace the <code>{{layout handle=\"sales_email_order_items\" order=$order area=\"frontend\"}}<\/code> with&nbsp;<code>{{layout handle=\"sales_email_order_items\" order_id=$order_id area=\"frontend\"}}<\/code> in the order confirmation email template.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Still confused? Just follow these steps:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Step 1:&nbsp;<\/strong>In your Magento 2 admin panel, navigate to&nbsp;<strong>Stores &gt; Settings &gt; Configuration<\/strong>.<\/li>\n\n\n\n<li><strong>Step 2:&nbsp;<\/strong>In the left panel, expand the&nbsp;<strong>Sales&nbsp;<\/strong>tab and click on&nbsp;<strong>Sales Emails&nbsp;<\/strong>and check which email template your store is using for the order confirmation emails. (which is <strong>New Pickup Order <\/strong>in this case)<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2022\/12\/Check-Order-Confirmation-Email-Template-in-Magento-2.png\" alt=\"Check Order Confirmation Email in Magento 2\" class=\"wp-image-27750\" style=\"width:840px;height:auto\"\/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Step 3: <\/strong>Now, go to&nbsp;<strong>Marketing &gt; Communications &gt; Email Templates&nbsp;<\/strong>and select the same email template to edit it.<\/li>\n\n\n\n<li><strong>Step 4:&nbsp;<\/strong>In the <strong>Template Content<\/strong> section, find<br><code>{{layout handle=\"sales_email_order_items\" order=$order area=\"frontend\"}}<br><br><\/code>and replace it with<br><code>{{layout handle=\"sales_email_order_items\" order_id=$order_id area=\"frontend\"}}<\/code><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2022\/12\/Edit-Email-Template-Code-in-Magento-2.png\" alt=\"Product Details Missing in Order Confirmation Email After Upgrading to Magento 2.4.x\" class=\"wp-image-27751\"\/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Step 5:&nbsp;<\/strong>Save the template and you&#8217;re done!<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This will fix the &#8216;Product details missing in Magento 2 order confirmation mail&#8217; issue.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Call me &#8216;<em>Magento post-upgrade bug buster&#8217;<\/em>; I also found solutions to some other issues that merchants are facing after upgrading.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;ve recently upgraded your store to Magento 2.4.x, you may also find these solutions helpful:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a title=\"Solution to Magento 2.4.x Elastic Search Error\" href=\"https:\/\/meetanshi.com\/blog\/magento-2-4-elastic-search-error-text-fields-are-not-optimised-for-operations\/\" target=\"_blank\" rel=\"noopener\">Magento 2.4.x Elasticsearch Error: Text Fields are Not Optimised for Operations<\/a><\/li>\n\n\n\n<li><a title=\"Solution to Admin Login Issue in Magento 2.4.4\" href=\"https:\/\/meetanshi.com\/blog\/admin-login-not-working-after-upgrading-to-magento-2-4-4\/\" target=\"_blank\" rel=\"noopener\">Admin Login Not Working After Upgrading to Magento 2.4.4<\/a><\/li>\n\n\n\n<li><a title=\"Solution to Admin Menu Not Working in Magento 2.4.4\" href=\"https:\/\/meetanshi.com\/blog\/solved-admin-menu-not-working-after-upgrading-to-magento-2-4-4\/\" target=\"_blank\" rel=\"noopener\">Admin Menu Not Working After Upgrading to Magento 2.4.4<\/a><\/li>\n\n\n\n<li><a title=\"Solved: Undefined Index: DirectiveName in SimpleDirective.php in Magento 2\" href=\"https:\/\/meetanshi.com\/blog\/undefined-index-directivename-in-simpledirective-php-in-magento-2\/\" target=\"_blank\" rel=\"noopener\">Solved: Undefined Index: DirectiveName in SimpleDirective.php in Magento 2<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Also, share this post with the Magento community via social media. (because sharing = caring)  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for reading!  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Howdy Magento guys? Are your customers complaining about product details missing in order confirmation email after upgrading to Magento 2.4.x? Well, you&#8217;re not alone! Many&#8230;<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2636","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=2636"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2636\/revisions"}],"predecessor-version":[{"id":14059,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2636\/revisions\/14059"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=2636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=2636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=2636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}