Jump to content

Display customer credit in Client Home V6


Recommended Posts

I had a question from an afilliate about why the amount their account is in credit wasn't visible in the client area.

 

It may be there somewhere but I couldn't find it anywhere.

 

Here's a simple and easy method to display it

 

in /templates/yourtemplate/clientareahome.tpl find

 

<form role="form" method="post" action="{$systemNonSSLURL}knowledgebase.php?action=search">
   <div class="row">
       <div class="col-md-12 home-kb-search">
           <input type="text" name="search" class="form-control input-lg" placeholder="{$LANG.clientHomeSearchKb}" />
           <i class="fa fa-search"></i>
       </div>
   </div>
</form>

 

Immediately before it add the line

 

{if $clientsstats.incredit == true}<div id='creditbalance'>Your account is currently ${$clientsdetails.credit} in credit.  This will be applied to future invoices.</div>{/if}

 

Too easy!

 

You may want to display it somewhere else, just move the code around to suit.

 

In /templates/yourtemplate/css/custom.css I have styled it with

 

#creditbalance{ /* clientareahome.tpl */
   margin-bottom: 10px;
   font-weight: bold;
}

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated