From b7a507464a02952f746322771f75f00c74e8b68b 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17625 b9a71923-0436-4b27-9f14-aed3839534dd --- 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))