I am relatively new to Magento and am developing a site on version 2.2.5. I am trying to figure out how to display the cart item message notice in the transactional email.

This is the notice that is displayed on the shopping cart page if there is not enough inventory to fulfill the order (See attached image). enter image description here I've copied Magento_Sales/templates/email/items.phtml to my child theme folder and can make edits there. It seems that the code for this notice is located in vendor/magento/module-checkout/view/frontend/templates/cart/additional/info.phtml, but I am not sure how to display it on the emails.

Has anyone successfully displayed the out of stock notice in the new order email? I would greatly appreciate any assistance. Thank you in advance.

1 Answer 1


In case someone is still looking for this solution, I found information about this and got it to work for our site:

This shows where to put it: Which file hold this layout {{layout handle="sales_email_order_items" order=$order area="frontend"}}

This is the code I placed in the page: adding backorder message to the order email

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.