[*] MO: Referral program: display currency in account page next to the voucher value

This commit is contained in:
romainberger
2013-06-14 11:04:20 +02:00
parent 331dcc4d6e
commit c94dbb36ce
2 changed files with 17 additions and 16 deletions
@@ -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">