source/Core/Config.php
public function getShopUrl($lang = null, $admin = null)
    {
        $url = null;
        $admin = isset($admin) ? $admin : $this->isAdmin();

        if (!$admin) {
            $url = $this->getShopUrlByLanguage($lang);
            if (!$url) {
                $url = $this->getMallShopUrl();
            }
        }

        if (!$url) {
            $url = $this->getConfigParam('sShopURL');
        }

        return $url;
    }
public function getShopUrl($lang = null, $admin = null)
    {
        $url = null;
        $admin = isset($admin) ? $admin : $this->isAdmin();

        if (!$admin) {
            $url = $this->getShopUrlByLanguage($lang);
            if (!$url) {
                $url = $this->getMallShopUrl();
            }
        }

        if (!$url) {
            $url = $this->getConfigParam('sShopURL');
        }

        return $url;
    }
public function getShopUrl ( $ lang = null , $ admin = null ) { $ url = null ; $ admin = isset ( $ admin ) ? $ admin : $ this -> isAdmin ( ) ; if ( ! $ admin ) { $ url = $ this -> getShopUrlByLanguage ( $ lang ) ; if ( ! $ url ) { $ url = $ this -> getMallShopUrl ( ) ; } } if ( ! $ url ) { $ url = $ this -> getConfigParam ( 'sShopURL' ) ; } return $ url ; }
Returns config sShopURL or sMallShopURL if secondary shop

@param int  $lang  language
@param bool $admin if set true, function returns shop url without checking language/subshops for different url.

@return string
Returns config sShopURL or sMallShopURL if secondary shop