I am using Marketplace in my website. In here seller can able to Process the order. I given below the code
public function shipementorderAction(){
$id = $this->getRequest()->getParam('id');
$order = Mage::getModel('sales/order')->load($id);
$order->setData('state', 'shipement');
$order->setStatus('shipement');
$history = $order->addStatusHistoryComment('', false);
$history->setIsCustomerNotified(false);
$order->save();
$order->sendOrderUpdateEmail(true, null);
$this->_getSession()->addSuccess(
$this->__('The order state has been changed.')
);
Mage::getSingleton('core/session') ->addSuccess('Order Updated Successfully'); $this->_redirectReferer();
}
I used this code to send a email to customer
$order->sendOrderUpdateEmail(true, null);
How to send copy of email to that current seller? Like customer got a order status mail as well as seller also got copy of same mail
Best Answer
add this code in marketplace module
etc/config.xml
inside the global tagmake copy of
order_update.html
and rename tocustom_order_update.html
for sending the email add this code