[-] Classes : #PSFV-634 : BugFix Currency was not set for loyalty discounts
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14110 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user