Magento Forum

Adding a custom field in New Order Email Templates
 
SP__
Jr. Member
 
Total Posts:  4
Joined:  2012-12-07
 

Hi,

In the order grid under Sales->Orders I’ve created a new field called ‘Order Comments 2’ which is displaying to the right of the ‘Action’ column.

What happens is the user can add a comment in the checkout process and then it gets stored in the orders grid.

What I would like to do is include the comments for a user in the New Order email templates that get sent out.

The id of this new column is “comment2”.

I’ve tried this but it doesn’t seem to work:

<tr>
      <
td><p style="font-size:12px; margin:0 0 10px 0">{{var order.getcomment2()}}</p></td>
</
tr>

Does anyone know how to solve this?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top