[-] Classes : #PSFV-634 : BugFix Currency was not set for loyalty discounts

This commit is contained in:
François Gaillard
2012-03-13 17:06:42 +00:00
parent b86c96b72b
commit b1437694a0
6 changed files with 22 additions and 16 deletions
+2 -1
View File
@@ -42,8 +42,9 @@ class DiscountControllerCore extends FrontController
$discounts = Discount::getCustomerDiscounts($this->context->language->id, $this->context->customer->id, true, false);
$nbDiscounts = 0;
foreach ($discounts as $discount)
if ($discount['quantity_for_user'])
if (isset($discount['quantity_for_user']) && $discount['quantity_for_user'])
$nbDiscounts++;
$this->context->smarty->assign(array('nbDiscounts' => (int)($nbDiscounts), 'discount' => $discounts));