[-] MO : fixed bug #PSCFV-3765
This commit is contained in:
1 parent
22b566ea49
commit
1535e62f1f
1 file changed
+7
@@ -86,6 +86,13 @@ class LoyaltyModule extends ObjectModel
|
|||||||
$total = 0;
|
$total = 0;
|
||||||
if (Validate::isLoadedObject($cart))
|
if (Validate::isLoadedObject($cart))
|
||||||
{
|
{
|
||||||
|
$context = Context::getContext();
|
||||||
|
$context->cart = $cart;
|
||||||
|
$context->customer = new Customer($context->cart->id_customer);
|
||||||
|
$context->language = new Language($context->cart->id_lang);
|
||||||
|
$context->shop = new Shop($context->cart->id_shop);
|
||||||
|
$context->currency = new Currency($context->cart->id_currency, null, $context->shop->id);
|
||||||
|
|
||||||
$cartProducts = $cart->getProducts();
|
$cartProducts = $cart->getProducts();
|
||||||
$taxesEnabled = Product::getTaxCalculationMethod();
|
$taxesEnabled = Product::getTaxCalculationMethod();
|
||||||
if (isset($newProduct) AND !empty($newProduct))
|
if (isset($newProduct) AND !empty($newProduct))
|
||||||
|
|||||||
Reference in new issue
Block a user