[*] MO: Referral program: display currency in account page next to the voucher value
This commit is contained in:
@@ -198,7 +198,8 @@ class ReferralprogramProgramModuleFrontController extends ModuleFrontController
|
|||||||
'revive_sent' => $revive_sent,
|
'revive_sent' => $revive_sent,
|
||||||
'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
|
||||||
));
|
));
|
||||||
$this->setTemplate('program.tpl');
|
$this->setTemplate('program.tpl');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
<div id="idTab1">
|
<div id="idTab1">
|
||||||
<p class="bold">
|
<p class="bold">
|
||||||
<strong>{l s='Get a discount of %d for you and your friends by recommending this Website.' sprintf=$discount mod='referralprogram'}</strong>
|
<strong>{l s='Get a discount of %1$d %2$s for you and your friends by recommending this Website.' sprintf=[$discount,$currencySign] mod='referralprogram'}</strong>
|
||||||
</p>
|
</p>
|
||||||
{if $canSendInvitations}
|
{if $canSendInvitations}
|
||||||
<p>
|
<p>
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
{else}
|
{else}
|
||||||
{l s='When one of them makes at least %d order' sprintf=$orderQuantity mod='referralprogram'}
|
{l s='When one of them makes at least %d order' sprintf=$orderQuantity mod='referralprogram'}
|
||||||
{/if},
|
{/if},
|
||||||
{l s='he or she will receive a %1$d voucher and you will receive your own voucher worth %2$d.' sprintf=[$discount,$discount] mod='referralprogram'}
|
{l s='he or she will receive a %1$d %2$s voucher and you will receive your own voucher worth %3$d %4$s.' sprintf=[$discount,$currencySign,$discount,$currencySign] mod='referralprogram'}
|
||||||
</p>
|
</p>
|
||||||
<form method="post" action="{$link->getModuleLink('referralprogram', 'program', [], true)|escape:'html'}" class="std">
|
<form method="post" action="{$link->getModuleLink('referralprogram', 'program', [], true)|escape:'html'}" class="std">
|
||||||
<table class="std">
|
<table class="std">
|
||||||
|
|||||||
Reference in New Issue
Block a user