[-] MO : fixed bug #PSCFV-3765

This commit is contained in:
vAugagneur
2012-10-01 07:32:20 +00:00
parent 22b566ea49
commit 1535e62f1f
+7
View File
@@ -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))