[-] BO : fixed bug #PSCFV-3088 - customer import with multistore

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16430 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-07-16 07:55:14 +00:00
parent a711041580
commit 758a0cead8
2 changed files with 102 additions and 16 deletions
+8
View File
@@ -94,6 +94,14 @@ class ShopGroupCore extends ObjectModel
WHERE id_shop_group='.(int)$this->id;
return (int)Db::getInstance()->getValue($sql);
}
public static function getShopsFromGroup($id_group)
{
$sql = 'SELECT s.`id_shop`
FROM '._DB_PREFIX_.'shop s
WHERE id_shop_group='.(int)$id_group;
return Db::getInstance()->executeS($sql);
}
/**
* Return a group shop ID from group shop name