//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:
1 parent
317346ce46
commit
a73ef6232a
1 file changed
+5
-1
@@ -32,11 +32,15 @@ class DiscountControllerCore extends FrontController
|
|||||||
public $authRedirection = 'discount';
|
public $authRedirection = 'discount';
|
||||||
public $ssl = true;
|
public $ssl = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Assign template vars related to page content
|
||||||
|
* @see FrontController::process()
|
||||||
|
*/
|
||||||
public function process()
|
public function process()
|
||||||
{
|
{
|
||||||
$discounts = Discount::getCustomerDiscounts($this->context->language->id, $this->context->customer->id, true, false);
|
$discounts = Discount::getCustomerDiscounts($this->context->language->id, $this->context->customer->id, true, false);
|
||||||
$nbDiscounts = 0;
|
$nbDiscounts = 0;
|
||||||
foreach ($discounts AS $discount)
|
foreach ($discounts as $discount)
|
||||||
if ($discount['quantity_for_user'])
|
if ($discount['quantity_for_user'])
|
||||||
$nbDiscounts++;
|
$nbDiscounts++;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user