// Fix #PSCFV-4615
This commit is contained in:
+1
-1
@@ -588,7 +588,7 @@ class CartCore extends ObjectModel
|
||||
((int)$this->id_customer ? (int)$this->id_customer : null),
|
||||
(int)$this->id,
|
||||
((int)$address_id ? (int)$address_id : null),
|
||||
null,
|
||||
$null,
|
||||
true,
|
||||
true,
|
||||
$cart_shop_context
|
||||
|
||||
+1
-3
@@ -487,10 +487,8 @@ class ProductCore extends ObjectModel
|
||||
die(Tools::displayError());
|
||||
self::$_taxCalculationMethod = Group::getPriceDisplayMethod((int)$customer->id_default_group);
|
||||
}
|
||||
else if (Validate::isLoadedObject(Context::getContext()->customer))
|
||||
self::$_taxCalculationMethod = Group::getPriceDisplayMethod(Context::getContext()->customer->id_default_group);
|
||||
else
|
||||
self::$_taxCalculationMethod = Group::getDefaultPriceDisplayMethod();
|
||||
self::$_taxCalculationMethod = Group::getPriceDisplayMethod(Group::getCurrent()->id);
|
||||
}
|
||||
|
||||
public static function getTaxCalculationMethod($id_customer = null)
|
||||
|
||||
Reference in New Issue
Block a user