I assume that you are currently using the "copy" function to send admin email. Let me know if this is not the case. Since the same email address is currently being sent to multiple recipients, it would be difficult to change the content for each recipient. However, you can send multiple emails with a bit of code, allowing you to use a different email template for each. This can be achieved by creating a new class:
class MyModule_Model_Sales_Order extends Mage_Sales_Model_Order {
public function sendNewOrderEmail() {
parent::sendNewOrderEmail();
return $this;
}
}
And then tell Magento to override the main class inside your configuration module:
<config>
<global>
<models>
<mymodule>
<class>MyModule_Model</class>
</mymodule>
<sales>
<rewrite>
<order>MyModule_Model_Sales_Order</order>
</rewrite>
</sales>
</models>
</global>
</config>
You will need to create the template you want and make sure that your overridden model uses this template.
source
share