[-] MO : Fixed bug PNM-1431 - referralprogram Lack the % sign
This commit is contained in:
1 parent
56693da6e0
commit
b9de912dd3
1 file changed
+3
-1
@@ -183,6 +183,8 @@ class ReferralprogramProgramModuleFrontController extends ModuleFrontController
|
|||||||
|
|
||||||
if ((int)($stats['nb_orders']) >= $orderQuantity)
|
if ((int)($stats['nb_orders']) >= $orderQuantity)
|
||||||
$canSendInvitations = true;
|
$canSendInvitations = true;
|
||||||
|
|
||||||
|
$discountInPercent = Tools::getValue('discount_type', Configuration::get('REFERRAL_DISCOUNT_TYPE')) == 1;
|
||||||
|
|
||||||
// Smarty display
|
// Smarty display
|
||||||
$this->context->smarty->assign(array(
|
$this->context->smarty->assign(array(
|
||||||
@@ -199,7 +201,7 @@ class ReferralprogramProgramModuleFrontController extends ModuleFrontController
|
|||||||
'nbRevive' => $nbRevive,
|
'nbRevive' => $nbRevive,
|
||||||
'subscribeFriends' => ReferralProgramModule::getSponsorFriend((int)($this->context->customer->id), 'subscribed'),
|
'subscribeFriends' => ReferralProgramModule::getSponsorFriend((int)($this->context->customer->id), 'subscribed'),
|
||||||
'mails_exists' => (isset($mails_exists) ? $mails_exists : array()),
|
'mails_exists' => (isset($mails_exists) ? $mails_exists : array()),
|
||||||
'currencySign' => $this->context->currency->sign
|
'currencySign' => ($discountInPercent ? '%' : $this->context->currency->sign)
|
||||||
));
|
));
|
||||||
$this->setTemplate('program.tpl');
|
$this->setTemplate('program.tpl');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user