Jump to content

How to display Credit Balance on front page | IPB 4


Protege

Recommended Posts

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...