Hi I have a custom Module built that sends an email when certain order statues are being created.
I have an observer that hooks into sales_order_place_after and my order object sinde observer.php is
public function getOrderStatus($observer)
{
$order = $observer->getEvent()->getOrder();
$status = $order->getStatus();
$enabled = Mage::getStoreConfig(self::XML_PATH_EMAIL_ENABLE);
if($enabled == 1){
if($status === "fraud")
{
$this->sendFraudEmail($observer);
}
}
}
but inside the transactional emails {{var order.increment_id}} is not working, even though in the observer I have : $order = $observer->getEvent()->getOrder();
what am I missing? Thanks.
sendFraudEmail()method you are calling. You need to parse through an array of the objects you wish to use in the transactional email. - Ashley Swatton