src/ShopBundle/objects/TCMSTableEditor/TCMSTableEditorShopOrderEndPoint.class.php
public function GetFrontendActionUrlToSendOrderEmail($sMail = null)
    {
        $sURL = '';
        if (is_null($sMail)) {
            $oGlobal = \ChameleonSystem\CoreBundle\ServiceLocator::get('chameleon_system_core.global');
            $sMail = $oGlobal->GetUserData('sTargetMail');
        }
        if (!empty($sMail) && is_object($this->oTable)) {
            $sPortalId = $this->oTable->fieldCmsPortalId;
            if (empty($this->oTable->fieldCmsPortalId)) {
                $oPortal = $this->getPortalDomainService()->getActivePortal();
                $sPortalId = $oPortal->id;
            }
            $oAction = TdbPkgRunFrontendAction::CreateAction('TPkgRunFrontendAction_SendOrderEMail', $sPortalId, array('email' => $sMail, 'order_id' => $this->sId));
            $sURL = $oAction->getUrlToRunAction();
        }

        return $sURL;
    }
public function GetFrontendActionUrlToSendOrderEmail($sMail = null)
    {
        $sURL = '';
        if (is_null($sMail)) {
            $oGlobal = \ChameleonSystem\CoreBundle\ServiceLocator::get('chameleon_system_core.global');
            $sMail = $oGlobal->GetUserData('sTargetMail');
        }
        if (!empty($sMail) && is_object($this->oTable)) {
            $sPortalId = $this->oTable->fieldCmsPortalId;
            if (empty($this->oTable->fieldCmsPortalId)) {
                $oPortal = $this->getPortalDomainService()->getActivePortal();
                $sPortalId = $oPortal->id;
            }
            $oAction = TdbPkgRunFrontendAction::CreateAction('TPkgRunFrontendAction_SendOrderEMail', $sPortalId, array('email' => $sMail, 'order_id' => $this->sId));
            $sURL = $oAction->getUrlToRunAction();
        }

        return $sURL;
    }
public function GetFrontendActionUrlToSendOrderEmail ( $ sMail = null ) { $ sURL = '' ; if ( is_null ( $ sMail ) ) { $ oGlobal = \ ChameleonSystem \ CoreBundle \ ServiceLocator :: get ( 'chameleon_system_core.global' ) ; $ sMail = $ oGlobal -> GetUserData ( 'sTargetMail' ) ; } if ( ! empty ( $ sMail ) && is_object ( $ this -> oTable ) ) { $ sPortalId = $ this -> oTable -> fieldCmsPortalId ; if ( empty ( $ this -> oTable -> fieldCmsPortalId ) ) { $ oPortal = $ this -> getPortalDomainService ( ) -> getActivePortal ( ) ; $ sPortalId = $ oPortal -> id ; } $ oAction = TdbPkgRunFrontendAction :: CreateAction ( 'TPkgRunFrontendAction_SendOrderEMail' , $ sPortalId , array ( 'email' => $ sMail , 'order_id' => $ this -> sId ) ) ; $ sURL = $ oAction -> getUrlToRunAction ( ) ; } return $ sURL ; }
send order notification for current order from backend - uses frontend action,
so portal and snippets are set correctly.

@param string $sMail - can also be passed via get/post

@return string
send order notification for current order from backend - uses frontend action so portal and snippets are set correctly .