source/Application/Controller/Admin/ManufacturerMainAjax.php
public function addManufacturer()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $articleIds = $this->_getActionIds('oxarticles.oxid');
        $manufacturerId = $config->getRequestParameter('synchoxid');

        if ($config->getRequestParameter('all')) {
            $articleViewName = $this->_getViewName('oxarticles');
            $articleIds = $this->_getAll($this->_addFilter("select $articleViewName.oxid " . $this->_getQuery()));
        }

        if ($manufacturerId && $manufacturerId != "-1" && is_array($articleIds)) {
            $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            $query = $this->formArticleToManufacturerAdditionQuery($manufacturerId, $articleIds);
            $database->execute($query);
            $this->resetCounter("manufacturerArticle", $manufacturerId);
        }
    }
public function addManufacturer()
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();

        $articleIds = $this->_getActionIds('oxarticles.oxid');
        $manufacturerId = $config->getRequestParameter('synchoxid');

        if ($config->getRequestParameter('all')) {
            $articleViewName = $this->_getViewName('oxarticles');
            $articleIds = $this->_getAll($this->_addFilter("select $articleViewName.oxid " . $this->_getQuery()));
        }

        if ($manufacturerId && $manufacturerId != "-1" && is_array($articleIds)) {
            $database = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            $query = $this->formArticleToManufacturerAdditionQuery($manufacturerId, $articleIds);
            $database->execute($query);
            $this->resetCounter("manufacturerArticle", $manufacturerId);
        }
    }
public function addManufacturer ( ) { $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ articleIds = $ this -> _getActionIds ( 'oxarticles.oxid' ) ; $ manufacturerId = $ config -> getRequestParameter ( 'synchoxid' ) ; if ( $ config -> getRequestParameter ( 'all' ) ) { $ articleViewName = $ this -> _getViewName ( 'oxarticles' ) ; $ articleIds = $ this -> _getAll ( $ this -> _addFilter ( "select $articleViewName.oxid " . $ this -> _getQuery ( ) ) ) ; } if ( $ manufacturerId && $ manufacturerId != "-1" && is_array ( $ articleIds ) ) { $ database = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ query = $ this -> formArticleToManufacturerAdditionQuery ( $ manufacturerId , $ articleIds ) ; $ database -> execute ( $ query ) ; $ this -> resetCounter ( "manufacturerArticle" , $ manufacturerId ) ; } }
Adds article to Manufacturer config
Adds article to Manufacturer config