cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Data in the layout handle="sales_email_order_items" order=$order

Modify Data in the layout handle="sales_email_order_items" order=$order

Hello,

 

We are looking to add item information into the sales confirmation template.  Pretty sure that this is the handle that pulls in the products that were ordered.  However, we are looking to pull data from field "Production Time".  Many of our products have varied production times so if someone orders from products that had different times, we would like that info listed on the email template under each product.  Is this possible?Email Template.jpg

3 REPLIES 3

Re: Modify Data in the layout handle="sales_email_order_items" order=$order

Hello @giovanni_falco 

 

you can do below way 

https://magecomp.com/blog/add-additional-options-magento-2/

 

where 

'value' => 'Additional Options Value' 

 

you need to get value from the product and add to there.

 

So it will solve all the problem. so it will store data into the quote, order and another page where you want.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Modify Data in the layout handle="sales_email_order_items" order=$order

@giovanni_falco you can create the attribute for the product and then assign them values from admin and show them where ever you want to show.

 

Thanks

Re: Modify Data in the layout handle="sales_email_order_items" order=$order

will the solution you linked work for Magento 1.12 ?