diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php
index dea7a0212..bc7dabd63 100644
--- a/classes/shop/Shop.php
+++ b/classes/shop/Shop.php
@@ -869,4 +869,14 @@ class ShopCore extends ObjectModel
{
return (int)Db::getInstance()->getValue(sprintf('SELECT COUNT(*) FROM`'._DB_PREFIX_.'group_shop` WHERE `id_group_shop` = %d', (int)$id));
}
-}
\ No newline at end of file
+
+ public static function getShopWithoutUrls($id_shop = false)
+ {
+ $without = array();
+ $shops = self::getShops();
+ foreach ($shops as $shop)
+ if ((!$id_shop || $shop['id_shop'] == $id_shop) && empty($shop['domain']) && empty($shop['uri']))
+ $without[] = $shop;
+ return $without;
+ }
+}
diff --git a/controllers/admin/AdminShopController.php b/controllers/admin/AdminShopController.php
index 4830a5890..d17d09364 100755
--- a/controllers/admin/AdminShopController.php
+++ b/controllers/admin/AdminShopController.php
@@ -82,7 +82,20 @@ class AdminShopControllerCore extends AdminController
);
parent::__construct();
}
-
+ public function initContent()
+ {
+ $id_shop = ($this->context->shop->getContextType() == Shop::CONTEXT_SHOP ? $this->context->shop->id : false);
+ $shops = Shop::getShopWithoutUrls($id_shop);
+ if (count($shops))
+ {
+ $shop_url_configuration = '';
+ foreach ($shops as $shop)
+ $shop_url_configuration .= sprintf($this->l('No url is configured for shop: %s'), ''.$shop['name'].'').' '.$this->l('click here').'
';
+ $this->content .= '