I want to add custom data in order confirmation email. I have vehicle information that are attached to the order email to show to customer their vehicle make, model, year. These values are attached with order_id
.
Magento 1.9 – Add Custom Data to Order Email Content
emailmagento-1.9orders
Related Topic
- Magento 2 – How to Add Custom Data in Order Email
- Magento – Magento 2 Get Order Data In Order Email Confirmation Template
- Magento – Magento 2 How to send order email copy to custom email address with custom module when order placed
- Magento – Magento 2 How to i add BCC to order email with observer programatically
- Magento – Magento 2.3.3 blank email with html attachment
Best Answer
First copy
app\code\core\Mage\Sales\Model\Order.php
toapp\code\local\Mage\Sales\Model\Order.php
Now you have to create function for your requirement. If your order data return value for vehicle model as
$order['vehicle_model']
then you have to declare function inOrder.php
file of local.You have to set value in System -> Transactional email -> New order template.
Now email template will display vehicle model value.
Same as above you have to generate function for Vehicle year, Vehicle make and call in email template file in admin.