Core/Events.php
public static function isPayPalActiveOnSubShops()
    {
        $active = false;
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $extensionChecker = oxNew(\OxidEsales\PayPalModule\Core\ExtensionChecker::class);
        $shops = $config->getShopIds();
        $activeShopId = $config->getShopId();

        foreach ($shops as $shopId) {
            if ($shopId != $activeShopId) {
                $extensionChecker->setShopId($shopId);
                $extensionChecker->setExtensionId('oepaypal');
                if ($extensionChecker->isActive()) {
                    $active = true;
                    break;
                }
            }
        }

        return $active;
    }
public static function isPayPalActiveOnSubShops()
    {
        $active = false;
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $extensionChecker = oxNew(\OxidEsales\PayPalModule\Core\ExtensionChecker::class);
        $shops = $config->getShopIds();
        $activeShopId = $config->getShopId();

        foreach ($shops as $shopId) {
            if ($shopId != $activeShopId) {
                $extensionChecker->setShopId($shopId);
                $extensionChecker->setExtensionId('oepaypal');
                if ($extensionChecker->isActive()) {
                    $active = true;
                    break;
                }
            }
        }

        return $active;
    }
public static function isPayPalActiveOnSubShops ( ) { $ active = false ; $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ extensionChecker = oxNew ( \ OxidEsales \ PayPalModule \ Core \ ExtensionChecker :: class ) ; $ shops = $ config -> getShopIds ( ) ; $ activeShopId = $ config -> getShopId ( ) ; foreach ( $ shops as $ shopId ) { if ( $ shopId != $ activeShopId ) { $ extensionChecker -> setShopId ( $ shopId ) ; $ extensionChecker -> setExtensionId ( 'oepaypal' ) ; if ( $ extensionChecker -> isActive ( ) ) { $ active = true ; break ; } } } return $ active ; }
Check if PayPal is used for sub-shops.

@return bool
Check if PayPal is used for sub - shops .