Protege 2 Posted January 22, 2021 Share Posted January 22, 2021 Hello webflake users, I'm here to ask if anyone knows how to display credit balance coming from the store on IPB I have code here but I don't know if it works correctly from the recent testing my dev and I have done. <span style='color:#fff000'>{lang="credit_balance"}</span> <a style="color: #0931ff;" href="https://yourIPBwebsite/index.php?/clients/credit/"> <span style='color:#02ff00'><br> {{foreach \IPS\nexus\Money::currencies() as $currency}} {{if isset( $customer->cm_credits[ $currency ] )}} {$customer->cm_credits[ $currency ]} {{else}} {money="0" currency="$currency"} {{endif}} {{endforeach}} </span> </a> Link to comment Share on other sites More sharing options...
Recommended Posts