Posted November 12, 2024Nov 12 Go to ACP > Pages > Page Management > Blocks > Custom > Create New Block > Manual HTML:Details:Name: Account BalanceCategory: CustomTemplate Key: balanceContent: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>
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.