//DiscountController : Refacto done
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8887 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -32,11 +32,15 @@ class DiscountControllerCore extends FrontController
|
||||
public $authRedirection = 'discount';
|
||||
public $ssl = true;
|
||||
|
||||
/**
|
||||
* Assign template vars related to page content
|
||||
* @see FrontController::process()
|
||||
*/
|
||||
public function process()
|
||||
{
|
||||
$discounts = Discount::getCustomerDiscounts($this->context->language->id, $this->context->customer->id, true, false);
|
||||
$nbDiscounts = 0;
|
||||
foreach ($discounts AS $discount)
|
||||
foreach ($discounts as $discount)
|
||||
if ($discount['quantity_for_user'])
|
||||
$nbDiscounts++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user