source/Application/Controller/Admin/DeliveryMain.php
public function save()
    {
        parent::save();

        $soxId = $this->getEditObjectId();
        $aParams = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editval");

        $oDelivery = oxNew(\OxidEsales\Eshop\Application\Model\Delivery::class);

        if ($soxId != "-1") {
            $oDelivery->loadInLang($this->_iEditLang, $soxId);
        } else {
            $aParams['oxdelivery__oxid'] = null;
        }

        // checkbox handling
        if (!isset($aParams['oxdelivery__oxactive'])) {
            $aParams['oxdelivery__oxactive'] = 0;
        }

        if (!isset($aParams['oxdelivery__oxfixed'])) {
            $aParams['oxdelivery__oxfixed'] = 0;
        }

        if (!isset($aParams['oxdelivery__oxfinalize'])) {
            $aParams['oxdelivery__oxfinalize'] = 0;
        }

        if (!isset($aParams['oxdelivery__oxsort'])) {
            $aParams['oxdelivery__oxsort'] = 9999;
        }

        //Disable editing for derived articles
        if ($oDelivery->isDerived()) {
            return;
        }

        $oDelivery->setLanguage(0);
        $oDelivery->assign($aParams);
        $oDelivery->setLanguage($this->_iEditLang);
        $oDelivery = \OxidEsales\Eshop\Core\Registry::getUtilsFile()->processFiles($oDelivery);
        $oDelivery->save();

        // set oxid if inserted
        $this->setEditObjectId($oDelivery->getId());
    }
public function save()
    {
        parent::save();

        $soxId = $this->getEditObjectId();
        $aParams = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editval");

        $oDelivery = oxNew(\OxidEsales\Eshop\Application\Model\Delivery::class);

        if ($soxId != "-1") {
            $oDelivery->loadInLang($this->_iEditLang, $soxId);
        } else {
            $aParams['oxdelivery__oxid'] = null;
        }

        // checkbox handling
        if (!isset($aParams['oxdelivery__oxactive'])) {
            $aParams['oxdelivery__oxactive'] = 0;
        }

        if (!isset($aParams['oxdelivery__oxfixed'])) {
            $aParams['oxdelivery__oxfixed'] = 0;
        }

        if (!isset($aParams['oxdelivery__oxfinalize'])) {
            $aParams['oxdelivery__oxfinalize'] = 0;
        }

        if (!isset($aParams['oxdelivery__oxsort'])) {
            $aParams['oxdelivery__oxsort'] = 9999;
        }

        //Disable editing for derived articles
        if ($oDelivery->isDerived()) {
            return;
        }

        $oDelivery->setLanguage(0);
        $oDelivery->assign($aParams);
        $oDelivery->setLanguage($this->_iEditLang);
        $oDelivery = \OxidEsales\Eshop\Core\Registry::getUtilsFile()->processFiles($oDelivery);
        $oDelivery->save();

        // set oxid if inserted
        $this->setEditObjectId($oDelivery->getId());
    }
public function save ( ) { parent :: save ( ) ; $ soxId = $ this -> getEditObjectId ( ) ; $ aParams = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "editval" ) ; $ oDelivery = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Delivery :: class ) ; if ( $ soxId != "-1" ) { $ oDelivery -> loadInLang ( $ this -> _iEditLang , $ soxId ) ; } else { $ aParams [ 'oxdelivery__oxid' ] = null ; } // checkbox handling if ( ! isset ( $ aParams [ 'oxdelivery__oxactive' ] ) ) { $ aParams [ 'oxdelivery__oxactive' ] = 0 ; } if ( ! isset ( $ aParams [ 'oxdelivery__oxfixed' ] ) ) { $ aParams [ 'oxdelivery__oxfixed' ] = 0 ; } if ( ! isset ( $ aParams [ 'oxdelivery__oxfinalize' ] ) ) { $ aParams [ 'oxdelivery__oxfinalize' ] = 0 ; } if ( ! isset ( $ aParams [ 'oxdelivery__oxsort' ] ) ) { $ aParams [ 'oxdelivery__oxsort' ] = 9999 ; } //Disable editing for derived articles if ( $ oDelivery -> isDerived ( ) ) { return ; } $ oDelivery -> setLanguage ( 0 ) ; $ oDelivery -> assign ( $ aParams ) ; $ oDelivery -> setLanguage ( $ this -> _iEditLang ) ; $ oDelivery = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsFile ( ) -> processFiles ( $ oDelivery ) ; $ oDelivery -> save ( ) ; // set oxid if inserted $ this -> setEditObjectId ( $ oDelivery -> getId ( ) ) ; }
Saves delivery information changes.

@return mixed
Saves delivery information changes .