diff --git a/classes/modules/RetailCRM/classes/retailcrm/RCrmIcml.php b/classes/modules/RetailCRM/classes/retailcrm/RCrmIcml.php index 78d1a94..dceadb9 100644 --- a/classes/modules/RetailCRM/classes/retailcrm/RCrmIcml.php +++ b/classes/modules/RetailCRM/classes/retailcrm/RCrmIcml.php @@ -18,8 +18,14 @@ class RCrmIcml $domainsCollection = domainsCollection::getInstance(); $domainsCollectionList = $domainsCollection->getList(); $domainCollection = $domainsCollectionList[1]; - $serverProtocol = mainConfiguration::getInstance()->get('system', 'server-protocol') . '://'; - $this->shopUrl = $serverProtocol . $domainCollection->getHost(); + + if (mainConfiguration::getInstance()->get('system', 'server-protocol')) { + $serverProtocol = mainConfiguration::getInstance()->get('system', 'server-protocol'); + } else { + $serverProtocol = 'http'; + } + + $this->shopUrl = $serverProtocol . '://' . $domainCollection->getHost(); } public function generateICML()