Jump to content

Featured Replies

Posted

Go to ACP > Pages > Page Management > Blocks > Custom > Create New Block > Manual HTML:

Details:

Name: Account Balance

Category: Custom

Template Key: balance

Content:

Code

<div class="ipsWidget__padding ipsData__title i-padding_2 i-grid i-place-content_center">

<a href="{setting="base_url"}clients/credit/">

<i class="fa-solid fa-wallet"></i>

{{foreach \IPS\nexus\Money::currencies() as $currency}}

{{if isset( \IPS\nexus\Customer::loggedIn()->cm_credits[$currency])}}

{{$credits = \IPS\nexus\Customer::loggedIn()->cm_credits[$currency];}}

{{if $credits->amount->isGreaterThanZero()}}

{lang="credit_balance"}: {$credits}

{{endif}}

{{endif}}

{{endforeach}}

</a>

</div>

1.png

  • Views 179
  • Created
  • Last Reply

Posted Images

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Important Information