I have created a custom shipping method to show depo-names from which customers will pickup the products,
So everything goes fine from storing and retrieving depo details in frontend/backend on order view pages by adding a overwrite model file
Added this in config.xml
<models>
<sales>
<rewrite>
<order>Module_Model_Sales_Order</order>
</rewrite>
</sales>
</models>
Added Order.php with
<?php
class Module_Model_Sales_Order extends Mage_Sales_Model_Order{
public function getShippingDescription(){
$desc = parent::getShippingDescription();
$desc = $desc." added the shipping depo details from order id";
return $desc;
}
}
It did added the shipping description in admin sales view/frontend customer sales views. But its not sending the same shipping description in email template(app\locale\en_US\template\email\sales\order_new.html) under
{{var order.getShippingDescription()}}
Should i do anything particular for mail template shipping description alone? can someone help me in fixing this?
You should pass variable to email templates. Get reference from Excellence Tutorial