src/ShopBundle/objects/db/TShopOrderStep/TShopStepOrderCompletedCore.class.php
protected function GetDescriptionVariables()
    {
        $aParameter = parent::GetDescriptionVariables();

        // add some data about the order so that we can display the details on the closing page
        $oUserOrder = &TShopBasket::GetLastCreatedOrder();
        if (!is_null($oUserOrder)) {
            foreach ($oUserOrder as $sProperty => $sPropertyValue) {
                if ('field' == substr($sProperty, 0, 5)) {
                    $aParameter[$sProperty] = $sPropertyValue;
                }
            }
            $aParameter['sOrderNumber'] = $oUserOrder->fieldOrdernumber;
        }

        $oShop = TdbShop::GetInstance();
        // add link to display a printable version of the order
        $aParameter['sLinkPrintableVersion'] = $oShop->GetLinkToSystemPage('print-order', array('id' => $oUserOrder->id));
        $aParameter[strtolower('sLinkPrintableVersion')] = $aParameter['sLinkPrintableVersion']; // links should be all lowercase - some customers force this (and some wysiwyg may require this as well) so we provide both variations
        $aParameter['oLastOrder'] = $oUserOrder;

        return $aParameter;
    }
protected function GetDescriptionVariables()
    {
        $aParameter = parent::GetDescriptionVariables();

        // add some data about the order so that we can display the details on the closing page
        $oUserOrder = &TShopBasket::GetLastCreatedOrder();
        if (!is_null($oUserOrder)) {
            foreach ($oUserOrder as $sProperty => $sPropertyValue) {
                if ('field' == substr($sProperty, 0, 5)) {
                    $aParameter[$sProperty] = $sPropertyValue;
                }
            }
            $aParameter['sOrderNumber'] = $oUserOrder->fieldOrdernumber;
        }

        $oShop = TdbShop::GetInstance();
        // add link to display a printable version of the order
        $aParameter['sLinkPrintableVersion'] = $oShop->GetLinkToSystemPage('print-order', array('id' => $oUserOrder->id));
        $aParameter[strtolower('sLinkPrintableVersion')] = $aParameter['sLinkPrintableVersion']; // links should be all lowercase - some customers force this (and some wysiwyg may require this as well) so we provide both variations
        $aParameter['oLastOrder'] = $oUserOrder;

        return $aParameter;
    }
protected function GetDescriptionVariables ( ) { $ aParameter = parent :: GetDescriptionVariables ( ) ; // add some data about the order so that we can display the details on the closing page $ oUserOrder = & TShopBasket :: GetLastCreatedOrder ( ) ; if ( ! is_null ( $ oUserOrder ) ) { foreach ( $ oUserOrder as $ sProperty => $ sPropertyValue ) { if ( 'field' == substr ( $ sProperty , 0 , 5 ) ) { $ aParameter [ $ sProperty ] = $ sPropertyValue ; } } $ aParameter [ 'sOrderNumber' ] = $ oUserOrder -> fieldOrdernumber ; } $ oShop = TdbShop :: GetInstance ( ) ; // add link to display a printable version of the order $ aParameter [ 'sLinkPrintableVersion' ] = $ oShop -> GetLinkToSystemPage ( 'print-order' , array ( 'id' => $ oUserOrder -> id ) ) ; $ aParameter [ strtolower ( 'sLinkPrintableVersion' ) ] = $ aParameter [ 'sLinkPrintableVersion' ] ; // links should be all lowercase - some customers force this (and some wysiwyg may require this as well) so we provide both variations $ aParameter [ 'oLastOrder' ] = $ oUserOrder ; return $ aParameter ; }
method should return any variables that should be replaced in the description field.

@return array
method should return any variables that should be replaced in the description field .