Is it possible to replace the shippingDescription string in the order email templates for a custom phtml file to add a login functionality and a text that has to be translated with a custom language translator class.
Magento – Shipping information in sales order email
email-templates
Best Answer
The easiest way is to rewrite the
Mage_Sales_Model_Order
class in your own extension adding the functiongetShippingDescription
which is called in the email template (see below)The new
getShippingDescription
method would return a block instance from your module that has the modifications you want.your rewritten Sales Order class
app/code/[codepool]/[Namespace]/[Module]/Model/Sales/Order.php