// improve multishop code with id_shop = 0 when share_customer or share_order is true
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11169 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -298,6 +298,21 @@ class OrderCore extends ObjectModel
|
||||
$this->_taxCalculationMethod = Group::getDefaultPriceDisplayMethod();
|
||||
}
|
||||
|
||||
public function add($autodate = true, $null_values = false)
|
||||
{
|
||||
if (Context::getContext()->shop->getGroup()->share_order == true)
|
||||
$this->id_shop = null;
|
||||
return parent::add($autodate);
|
||||
}
|
||||
|
||||
public function update($null_values = false)
|
||||
{
|
||||
if (Context::getContext()->shop->getGroup()->share_order == true)
|
||||
$this->id_shop = null;
|
||||
$return = parent::update();
|
||||
return $return;
|
||||
}
|
||||
|
||||
public function getTaxCalculationMethod()
|
||||
{
|
||||
return (int)($this->_taxCalculationMethod);
|
||||
|
||||
Reference in New Issue
Block a user