From 1535e62f1fc6b4517f276b990bfa8efa5f5913c4 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 1 Oct 2012 07:32:20 +0000 Subject: [PATCH] [-] MO : fixed bug #PSCFV-3765 --- modules/loyalty/LoyaltyModule.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/loyalty/LoyaltyModule.php b/modules/loyalty/LoyaltyModule.php index 73dfbd66d..6033642de 100644 --- a/modules/loyalty/LoyaltyModule.php +++ b/modules/loyalty/LoyaltyModule.php @@ -86,6 +86,13 @@ class LoyaltyModule extends ObjectModel $total = 0; 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(); $taxesEnabled = Product::getTaxCalculationMethod(); if (isset($newProduct) AND !empty($newProduct))