source/Application/Controller/Admin/NavigationTree.php
protected function _checkDemoShopDenials($dom)
    {
        if (!\OxidEsales\Eshop\Core\Registry::getConfig()->isDemoShop()) {
            // nothing to check for non demo shop
            return;
        }

        $xPath = new DomXPath($dom);
        $nodeList = $xPath->query("//*[@disableForDemoShop]");
        foreach ($nodeList as $node) {
            if ($node->getAttribute('disableForDemoShop')) {
                $node->parentNode->removeChild($node);
            }
        }
    }
protected function _checkDemoShopDenials($dom)
    {
        if (!\OxidEsales\Eshop\Core\Registry::getConfig()->isDemoShop()) {
            // nothing to check for non demo shop
            return;
        }

        $xPath = new DomXPath($dom);
        $nodeList = $xPath->query("//*[@disableForDemoShop]");
        foreach ($nodeList as $node) {
            if ($node->getAttribute('disableForDemoShop')) {
                $node->parentNode->removeChild($node);
            }
        }
    }
protected function _checkDemoShopDenials ( $ dom ) { if ( ! \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> isDemoShop ( ) ) { // nothing to check for non demo shop return ; } $ xPath = new DomXPath ( $ dom ) ; $ nodeList = $ xPath -> query ( "//*[@disableForDemoShop]" ) ; foreach ( $ nodeList as $ node ) { if ( $ node -> getAttribute ( 'disableForDemoShop' ) ) { $ node -> parentNode -> removeChild ( $ node ) ; } } }
Removes form tree elements if this is demo shop and elements have disableForDemoShop="1"

@param DOMDocument $dom document to check group

@return null
Removes form tree elements if this is demo shop and elements have disableForDemoShop = 1