Controller/Admin/DeliverySetMain.php
public function save()
    {
        parent::save();

        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        /** @var \OxidEsales\PayPalModule\Core\Config $payPalConfig */
        $payPalConfig = oxNew(\OxidEsales\PayPalModule\Core\Config::class);

        $deliverySetId = $this->getEditObjectId();
        $deliverySetMarked = (bool) $config->getRequestParameter('isPayPalDefaultMobilePayment');
        $mobileECDefaultShippingId = $payPalConfig->getMobileECDefaultShippingId();

        if ($deliverySetMarked && $deliverySetId != $mobileECDefaultShippingId) {
            $this->saveECDefaultShippingId($config, $deliverySetId, $payPalConfig);
        } elseif (!$deliverySetMarked && $deliverySetId == $mobileECDefaultShippingId) {
            $this->saveECDefaultShippingId($config, '', $payPalConfig);
        }
    }
public function save()
    {
        parent::save();

        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        /** @var \OxidEsales\PayPalModule\Core\Config $payPalConfig */
        $payPalConfig = oxNew(\OxidEsales\PayPalModule\Core\Config::class);

        $deliverySetId = $this->getEditObjectId();
        $deliverySetMarked = (bool) $config->getRequestParameter('isPayPalDefaultMobilePayment');
        $mobileECDefaultShippingId = $payPalConfig->getMobileECDefaultShippingId();

        if ($deliverySetMarked && $deliverySetId != $mobileECDefaultShippingId) {
            $this->saveECDefaultShippingId($config, $deliverySetId, $payPalConfig);
        } elseif (!$deliverySetMarked && $deliverySetId == $mobileECDefaultShippingId) {
            $this->saveECDefaultShippingId($config, '', $payPalConfig);
        }
    }
public function save ( ) { parent :: save ( ) ; $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; /** @var \OxidEsales\PayPalModule\Core\Config $payPalConfig */ $ payPalConfig = oxNew ( \ OxidEsales \ PayPalModule \ Core \ Config :: class ) ; $ deliverySetId = $ this -> getEditObjectId ( ) ; $ deliverySetMarked = ( bool ) $ config -> getRequestParameter ( 'isPayPalDefaultMobilePayment' ) ; $ mobileECDefaultShippingId = $ payPalConfig -> getMobileECDefaultShippingId ( ) ; if ( $ deliverySetMarked && $ deliverySetId != $ mobileECDefaultShippingId ) { $ this -> saveECDefaultShippingId ( $ config , $ deliverySetId , $ payPalConfig ) ; } elseif ( ! $ deliverySetMarked && $ deliverySetId == $ mobileECDefaultShippingId ) { $ this -> saveECDefaultShippingId ( $ config , '' , $ payPalConfig ) ; } }
Saves default PayPal mobile payment.
Saves default PayPal mobile payment .