src/ShopBundle/objects/db/TShopOrder.class.php
protected function SaveOrderNotificationDataToOrder($bOrderSend, $oMail, $sSendToMail)
    {
        $aData = $this->sqlData;
        if ($bOrderSend && !TGlobal::IsCMSMode()) {
            $aData = $this->AddOrderNotificationDataForOrderSuccess($aData);
        } elseif (!$bOrderSend && !TGlobal::IsCMSMode()) {
            $aData = $this->AddOrderNotificationDataForOrderFailure($aData, $oMail, $sSendToMail);
        }
        $this->LoadFromRow($aData);
        $this->AllowEditByAll(true);
        $this->Save();
        $this->AllowEditByAll(false);
    }
protected function SaveOrderNotificationDataToOrder($bOrderSend, $oMail, $sSendToMail)
    {
        $aData = $this->sqlData;
        if ($bOrderSend && !TGlobal::IsCMSMode()) {
            $aData = $this->AddOrderNotificationDataForOrderSuccess($aData);
        } elseif (!$bOrderSend && !TGlobal::IsCMSMode()) {
            $aData = $this->AddOrderNotificationDataForOrderFailure($aData, $oMail, $sSendToMail);
        }
        $this->LoadFromRow($aData);
        $this->AllowEditByAll(true);
        $this->Save();
        $this->AllowEditByAll(false);
    }
protected function SaveOrderNotificationDataToOrder ( $ bOrderSend , $ oMail , $ sSendToMail ) { $ aData = $ this -> sqlData ; if ( $ bOrderSend && ! TGlobal :: IsCMSMode ( ) ) { $ aData = $ this -> AddOrderNotificationDataForOrderSuccess ( $ aData ) ; } elseif ( ! $ bOrderSend && ! TGlobal :: IsCMSMode ( ) ) { $ aData = $ this -> AddOrderNotificationDataForOrderFailure ( $ aData , $ oMail , $ sSendToMail ) ; } $ this -> LoadFromRow ( $ aData ) ; $ this -> AllowEditByAll ( true ) ; $ this -> Save ( ) ; $ this -> AllowEditByAll ( false ) ; }
Save additional information to the order for successfully sent notification
email and  incorrect sent notification email.

@param bool               $bOrderSend
@param TdbDataMailProfile $oMail
@param string             $sSendToMail
Save additional information to the order for successfully sent notification email and incorrect sent notification email .