// Cookies subdomain & bug fix on stocks

This commit is contained in:
rGaillard
2012-06-21 16:11:30 +00:00
parent 5040e9539d
commit cc441b4c1b
4 changed files with 43 additions and 9 deletions
+18
View File
@@ -583,6 +583,24 @@ class ShopCore extends ObjectModel
}
return $results;
}
public function getUrlsSharedCart()
{
if (!$this->getGroup()->share_order)
return false;
$query = new DbQuery();
$query->select('domain');
$query->from('shop_url');
$query->where('main = 1');
$query->where('active = 1');
$query .= $this->addSqlRestriction(Shop::SHARE_ORDER);
$domains = array();
foreach (Db::getInstance()->executeS($query) as $row)
$domains[] = $row['domain'];
return $domains;
}
/**
* Get a collection of shops