src/ShopBundle/objects/CronJobs/TCMSCronJob_ShopSendBasketLogStatisics.class.php
protected function GetBasketStatistics($oBasket)
    {
        $sBasketstatistics = '';
        $sBasketstatistics .= "------------------------------------\r\n\r\n";
        $sBasketstatistics .= TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.basket_content')."\r\n";
        $sBasketstatistics .= "------------------------------------\r\n";
        $oArticleList = $oBasket->GetBasketContents();
        $oArticleList->GoToStart();
        while ($oArticle = $oArticleList->Next()) {
            $sBasketstatistics .= TGlobal::Translate(
                    'chameleon_system_shop.cron_send_basket_stats.basket_content_line',
                    array(
                        '%amount%' => '',
                        '%name%' => '',
                        '%price%' => '',
                        '%totalPrice%' => '',
                    )
                )."\r\n";
        }
        $sBasketstatistics .= TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.basket_content_total', array('%basketTotal%' => $oBasket->dCostArticlesTotal))."\r\n";
        $this->sTotalMoneyCanceled = $this->sTotalMoneyCanceled + $oBasket->dCostArticlesTotal;
        $sBasketstatistics .= "------------------------------------\r\n";

        return $sBasketstatistics;
    }
protected function GetBasketStatistics($oBasket)
    {
        $sBasketstatistics = '';
        $sBasketstatistics .= "------------------------------------\r\n\r\n";
        $sBasketstatistics .= TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.basket_content')."\r\n";
        $sBasketstatistics .= "------------------------------------\r\n";
        $oArticleList = $oBasket->GetBasketContents();
        $oArticleList->GoToStart();
        while ($oArticle = $oArticleList->Next()) {
            $sBasketstatistics .= TGlobal::Translate(
                    'chameleon_system_shop.cron_send_basket_stats.basket_content_line',
                    array(
                        '%amount%' => '',
                        '%name%' => '',
                        '%price%' => '',
                        '%totalPrice%' => '',
                    )
                )."\r\n";
        }
        $sBasketstatistics .= TGlobal::Translate('chameleon_system_shop.cron_send_basket_stats.basket_content_total', array('%basketTotal%' => $oBasket->dCostArticlesTotal))."\r\n";
        $this->sTotalMoneyCanceled = $this->sTotalMoneyCanceled + $oBasket->dCostArticlesTotal;
        $sBasketstatistics .= "------------------------------------\r\n";

        return $sBasketstatistics;
    }
protected function GetBasketStatistics ( $ oBasket ) { $ sBasketstatistics = '' ; $ sBasketstatistics .= "------------------------------------\r\n\r\n" ; $ sBasketstatistics .= TGlobal :: Translate ( 'chameleon_system_shop.cron_send_basket_stats.basket_content' ) . "\r\n" ; $ sBasketstatistics .= "------------------------------------\r\n" ; $ oArticleList = $ oBasket -> GetBasketContents ( ) ; $ oArticleList -> GoToStart ( ) ; while ( $ oArticle = $ oArticleList -> Next ( ) ) { $ sBasketstatistics .= TGlobal :: Translate ( 'chameleon_system_shop.cron_send_basket_stats.basket_content_line' , array ( '%amount%' => '' , '%name%' => '' , '%price%' => '' , '%totalPrice%' => '' , ) ) . "\r\n" ; } $ sBasketstatistics .= TGlobal :: Translate ( 'chameleon_system_shop.cron_send_basket_stats.basket_content_total' , array ( '%basketTotal%' => $ oBasket -> dCostArticlesTotal ) ) . "\r\n" ; $ this -> sTotalMoneyCanceled = $ this -> sTotalMoneyCanceled + $ oBasket -> dCostArticlesTotal ; $ sBasketstatistics .= "------------------------------------\r\n" ; return $ sBasketstatistics ; }
Get basket statistics for canceled basket step.

@param TShopBasket $oBasket

@return string
Get basket statistics for canceled basket step .