// improve multishop code with id_shop = 0 when share_customer or share_order is true

This commit is contained in:
mBertholino committed 2011-12-13 11:59:41 +00:00
1 parent 92bf585a12
commit 7282fb0043
5 files changed
+192 -152

No files matched your search

+4 -2
View File
@@ -171,7 +171,8 @@ class CartCore extends ObjectModel
{
if (!$this->id_lang)
$this->id_lang = Configuration::get('PS_LANG_DEFAULT');
if (Context::getContext()->shop->getGroup()->share_order == true)
$this->id_shop = null;
$return = parent::add($autodate);
Hook::exec('cart');
@@ -185,7 +186,8 @@ class CartCore extends ObjectModel
if (isset(self::$_totalWeight[$this->id]))
unset(self::$_totalWeight[$this->id]);
if (Context::getContext()->shop->getGroup()->share_order == true)
$this->id_shop = null;
$this->_products = null;
$return = parent::update();
Hook::exec('cart');