[-] BO : fixed bug #PSCFV-3088 - customer import with multistore
This commit is contained in:
1 parent
1ffcd622de
commit
9c146ddb08
2 files changed
+102
-16
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user