source/Application/Controller/ThankYouController.php
public function getOrder()
    {
        if ($this->_oOrder === null) {
            $this->_oOrder = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);
            // loading order sometimes needed in template
            if ($sOrderId = $this->getBasket()->getOrderId()) {
                $this->_oOrder->load($sOrderId);
            }
        }

        return $this->_oOrder;
    }
public function getOrder()
    {
        if ($this->_oOrder === null) {
            $this->_oOrder = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);
            // loading order sometimes needed in template
            if ($sOrderId = $this->getBasket()->getOrderId()) {
                $this->_oOrder->load($sOrderId);
            }
        }

        return $this->_oOrder;
    }
public function getOrder ( ) { if ( $ this -> _oOrder === null ) { $ this -> _oOrder = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Order :: class ) ; // loading order sometimes needed in template if ( $ sOrderId = $ this -> getBasket ( ) -> getOrderId ( ) ) { $ this -> _oOrder -> load ( $ sOrderId ) ; } } return $ this -> _oOrder ; }
Template variable getter. Returns order

@return oxOrder
Template variable getter . Returns order