source/Application/Model/Order.php
protected function _updateOrderDate()
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sDate = date('Y-m-d H:i:s', \OxidEsales\Eshop\Core\Registry::getUtilsDate()->getTime());
        $sQ = 'update oxorder set oxorderdate=' . $oDb->quote($sDate) . ' where oxid=' . $oDb->quote($this->getId());
        $this->oxorder__oxorderdate = new \OxidEsales\Eshop\Core\Field($sDate, \OxidEsales\Eshop\Core\Field::T_RAW);
        $oDb->execute($sQ);
    }
protected function _updateOrderDate()
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sDate = date('Y-m-d H:i:s', \OxidEsales\Eshop\Core\Registry::getUtilsDate()->getTime());
        $sQ = 'update oxorder set oxorderdate=' . $oDb->quote($sDate) . ' where oxid=' . $oDb->quote($this->getId());
        $this->oxorder__oxorderdate = new \OxidEsales\Eshop\Core\Field($sDate, \OxidEsales\Eshop\Core\Field::T_RAW);
        $oDb->execute($sQ);
    }
protected function _updateOrderDate ( ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sDate = date ( 'Y-m-d H:i:s' , \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsDate ( ) -> getTime ( ) ) ; $ sQ = 'update oxorder set oxorderdate=' . $ oDb -> quote ( $ sDate ) . ' where oxid=' . $ oDb -> quote ( $ this -> getId ( ) ) ; $ this -> oxorder__oxorderdate = new \ OxidEsales \ Eshop \ Core \ Field ( $ sDate , \ OxidEsales \ Eshop \ Core \ Field :: T_RAW ) ; $ oDb -> execute ( $ sQ ) ; }
Updates order date to current date
Updates order date to current date