source/Application/Controller/FrontendController.php
public function getActVendor()
    {
        // if active vendor is not set yet - trying to load it from request params
        // this may be useful when category component was unable to load active vendor
        // and we still need some object to mount navigation info
        if ($this->_oActVendor === null) {
            $this->_oActVendor = false;
            $vendorId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid');
            $vendorId = $vendorId ? str_replace('v_', '', $vendorId) : $vendorId;
            $vendor = oxNew(\OxidEsales\Eshop\Application\Model\Vendor::class);
            if ($vendor->load($vendorId)) {
                $this->_oActVendor = $vendor;
            }
        }

        return $this->_oActVendor;
    }
public function getActVendor()
    {
        // if active vendor is not set yet - trying to load it from request params
        // this may be useful when category component was unable to load active vendor
        // and we still need some object to mount navigation info
        if ($this->_oActVendor === null) {
            $this->_oActVendor = false;
            $vendorId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid');
            $vendorId = $vendorId ? str_replace('v_', '', $vendorId) : $vendorId;
            $vendor = oxNew(\OxidEsales\Eshop\Application\Model\Vendor::class);
            if ($vendor->load($vendorId)) {
                $this->_oActVendor = $vendor;
            }
        }

        return $this->_oActVendor;
    }
public function getActVendor ( ) { // if active vendor is not set yet - trying to load it from request params // this may be useful when category component was unable to load active vendor // and we still need some object to mount navigation info if ( $ this -> _oActVendor === null ) { $ this -> _oActVendor = false ; $ vendorId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'cnid' ) ; $ vendorId = $ vendorId ? str_replace ( 'v_' , '' , $ vendorId ) : $ vendorId ; $ vendor = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Vendor :: class ) ; if ( $ vendor -> load ( $ vendorId ) ) { $ this -> _oActVendor = $ vendor ; } } return $ this -> _oActVendor ; }
Returns active vendor set by categories component; if vendor is
not set by component - will create vendor object and will try to
load by id passed by request

@return \OxidEsales\Eshop\Application\Model\Vendor
Returns active vendor set by categories component ; if vendor is not set by component - will create vendor object and will try to load by id passed by request