// Cookies subdomain & bug fix on stocks
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16110 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user