//DiscountController : Refacto done
This commit is contained in:
1 parent
f0115d5777
commit
4652cb4168
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