Skip to content

Commit

Permalink
Merge pull request #20904 from mattwire/pcpcurrency
Browse files Browse the repository at this point in the history
Display configured currency on PCPPage instead of default
  • Loading branch information
mlutfy authored Jul 21, 2021
2 parents 44bd8c8 + e0be59a commit 7c97bc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CRM/PCP/Page/PCPInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function run() {

CRM_Utils_System::setTitle($pcpInfo['title']);
$this->assign('pcp', $pcpInfo);
$this->assign('currency', $pcpInfo['currency']);

$pcpStatus = CRM_Core_OptionGroup::values("pcp_status");
$approvedId = CRM_Core_PseudoConstant::getKey('CRM_PCP_BAO_PCP', 'status_id', 'Approved');
Expand Down
4 changes: 2 additions & 2 deletions templates/CRM/PCP/Page/PCPInfo.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
{if $pcp.is_thermometer}
<div class="thermometer-wrapper">
<div class="pcp-amount-goal">
{ts}Goal{/ts} <span class="goal-amount crmMoney">{$pcp.goal_amount|crmMoney}</span>
{ts}Goal{/ts} <span class="goal-amount crmMoney">{$pcp.goal_amount|crmMoney:$currency}</span>
</div>
<div class="thermometer-fill-wrapper">
<div style="height: {$achieved}%;" class="thermometer-fill">
<div class="thermometer-pointer"><span class="pcp-percent-raised">{$achieved}%</span> towards our goal</div>
</div><!-- /.thermometer-fill -->
</div><!-- /.thermometer-fill-wrapper -->
<div class="pcp-amount-raised">
<span class="raised-amount crmMoney">{$total|crmMoney}</span> {ts}raised{/ts}
<span class="raised-amount crmMoney">{$total|crmMoney:$currency}</span> {ts}raised{/ts}
</div>
</div>
{/if}
Expand Down

0 comments on commit 7c97bc4

Please sign in to comment.