src/ShopBundle/objects/TCMSTableEditor/TCMSTableEditorShopOrderEndPoint.class.php
public function ShopOrderSendConfirmOrderMail($sMail = null)
    {
        $oGlobal = TGlobal::instance();
        if (is_null($sMail)) {
            $sMail = $oGlobal->GetUserData('sTargetMail');
        }
        $oReturnData = $this->GetObjectShortInfo();
        $oReturnData->sTargetMail = $sMail;

        $bSuccess = false;
        $oOrder = TdbShopOrder::GetNewInstance();
        /** @var $oOrder TdbShopOrder */
        $oOrder->AllowEditByAll(true);
        if (!$oOrder->Load($this->sId)) {
            $oOrder = null;
        } else {
            $bSuccess = $oOrder->SendOrderNotification($sMail);
        }

        if (true === $bSuccess) {
            $oReturnData->bSuccess = true;
            $oReturnData->sMessage = TGlobal::Translate('chameleon_system_shop.orders.msg_order_confirm_sent', array('%mail%' => $sMail));
        } else {
            $oReturnData->bSuccess = false;
            $oReturnData->sMessage = TGlobal::Translate('chameleon_system_shop.orders.error_sending_confirm_mail', array('%error%' => $bSuccess));
        }

        return $oReturnData;
    }
public function ShopOrderSendConfirmOrderMail($sMail = null)
    {
        $oGlobal = TGlobal::instance();
        if (is_null($sMail)) {
            $sMail = $oGlobal->GetUserData('sTargetMail');
        }
        $oReturnData = $this->GetObjectShortInfo();
        $oReturnData->sTargetMail = $sMail;

        $bSuccess = false;
        $oOrder = TdbShopOrder::GetNewInstance();
        /** @var $oOrder TdbShopOrder */
        $oOrder->AllowEditByAll(true);
        if (!$oOrder->Load($this->sId)) {
            $oOrder = null;
        } else {
            $bSuccess = $oOrder->SendOrderNotification($sMail);
        }

        if (true === $bSuccess) {
            $oReturnData->bSuccess = true;
            $oReturnData->sMessage = TGlobal::Translate('chameleon_system_shop.orders.msg_order_confirm_sent', array('%mail%' => $sMail));
        } else {
            $oReturnData->bSuccess = false;
            $oReturnData->sMessage = TGlobal::Translate('chameleon_system_shop.orders.error_sending_confirm_mail', array('%error%' => $bSuccess));
        }

        return $oReturnData;
    }
public function ShopOrderSendConfirmOrderMail ( $ sMail = null ) { $ oGlobal = TGlobal :: instance ( ) ; if ( is_null ( $ sMail ) ) { $ sMail = $ oGlobal -> GetUserData ( 'sTargetMail' ) ; } $ oReturnData = $ this -> GetObjectShortInfo ( ) ; $ oReturnData -> sTargetMail = $ sMail ; $ bSuccess = false ; $ oOrder = TdbShopOrder :: GetNewInstance ( ) ; /** @var $oOrder TdbShopOrder */ $ oOrder -> AllowEditByAll ( true ) ; if ( ! $ oOrder -> Load ( $ this -> sId ) ) { $ oOrder = null ; } else { $ bSuccess = $ oOrder -> SendOrderNotification ( $ sMail ) ; } if ( true === $ bSuccess ) { $ oReturnData -> bSuccess = true ; $ oReturnData -> sMessage = TGlobal :: Translate ( 'chameleon_system_shop.orders.msg_order_confirm_sent' , array ( '%mail%' => $ sMail ) ) ; } else { $ oReturnData -> bSuccess = false ; $ oReturnData -> sMessage = TGlobal :: Translate ( 'chameleon_system_shop.orders.error_sending_confirm_mail' , array ( '%error%' => $ bSuccess ) ) ; } return $ oReturnData ; }
send the current order to the email.

@param string $sMail - can also be passed via get/post
send the current order to the email .