Reputation: 427
I need solution for the following: 1) Customer places order 2) Store owner recieves email WITHOUT price info (e.g. packing list)
What files do I need to edit (I've read lots of posts and they don't seem to mention the file paths).
Thx
Upvotes: 3
Views: 7997
Reputation: 21851
I know I had a hack for it ... and then I don't have it anymore. I went through everything I could and right now, we're CCing ourselves the customer notification email. As soon as we're done with our site upgrade, I'll have to readd my hack. I'm pretty sure it's in app/core/Mage/Sales/Model/Order.php
possibly in public function sendNewOrderEmail()
See this pic:
I remember hard coding in a file after the customer notification was sent, we sent another one to admin but hard coding the template ID for the transactional order notification email to 8. Now, somehow, I'm doing it the "right way" but have no idea how I'm triggering this transactional email to ALSO happen with the customer order notification.
Upvotes: 1
Reputation: 1563
Make your custom module in that module just send a event after "sales_order_save_after". Catch this event in observer file and put your custum coding on observer. Read this
Upvotes: 0
Reputation: 2233
Two possible ways to achieve that:
You can create a model rewrite for the class Mage_Sales_Model_Order
and override the function Mage_Sales_Model_Order::sendNewOrderEmail
by sending an email to the shop owner using a different template
You can set the configuration entry "Sales Email/Order/Send Order Email Copy To" to nothing (so that the shop owner doesn't get the same email as the customer), and implement an observer catching the event sales_order_place_after
. In the observer function you implement sending of an email to the shop owner using a template without the price info.
Upvotes: 1