How do I add the value of an order attribute to the New Order Email template. Specifically an attribute called delivery_date
stored in sales_order_grid
.
I tried to reverse engineer how {{var order.getShippingDescription()}}
works but with no success.
EDIT: I should add that another method I tried was by editing the Email Templates...
vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml
...and adding this line to it.
$deliverydate = $order->getDeliveryDate()
(Hoping that I could grab the data the same way that I'd grab a Product Attribute). But that method also returned no value.
delivery_date
the field of sales_order table?delivery_date
is also in thesales_order
table