Jump to content

Where can customer view "Add Funds" balance?


Recommended Posts

Hopefully this is something simple I'm somehow overlooking.

 

Right now in 6.0.1 for me, when a customer "adds funds" to their account, I don't see anywhere in their Client Area where they can see their balance. Am I missing something?

 

I can see the invoice where they added funds and in the WHMCS admin area, I can see the credit balance but I'm not seeing anything obvious where the customer can view that balance.

 

Can someone advise?

 

Thanks!

-Jason

Link to comment
Share on other sites

where would you want to see it?

 

At a minimum I'd expect to display it on the "add funds" page itself. Some sort of "current balance" line there should be standard.

 

Ideally, I'd love to have some sort of "cube" on the Client Area homepage that has an overall account status: Invoice amounts due, add funds balance, possibly the affiliate earnings available, etc. Maybe this could replace that "Affiliate Program" section at the bottom right, for example.

Link to comment
Share on other sites

At a minimum I'd expect to display it on the "add funds" page itself. Some sort of "current balance" line there should be standard.

you could do that simply by modifying the clientareaaddfunds.tpl template - I believe all the variables you need are available to that page.

 

Ideally, I'd love to have some sort of "cube" on the Client Area homepage that has an overall account status: Invoice amounts due, add funds balance, possibly the affiliate earnings available, etc. Maybe this could replace that "Affiliate Program" section at the bottom right, for example.

it would require an action hook to add, modify or remove the homepage panels.

 

http://docs.whmcs.com/Working_With_Client_Area_Home_Page_Panels

Link to comment
Share on other sites

you could do that simply by modifying the clientareaaddfunds.tpl template - I believe all the variables you need are available to that page.

 

That makes sense and I can add the line for that but am unclear on where I find the variable (eg {$minimumamount}) to display for that. I'm assuming I could use the credit balance value there maybe but I'm not having any luck finding a list of all these values.

 

Thank you for your help!

Link to comment
Share on other sites

each page is provided with a different set of variables - and sometimes they're called different names in different pages (and usually not the same as those used on the email templates!).

 

the usual trick is to add {debug} to the end of the template and view the page again in the browser - it should then open a popup window with a list of variables/arrays available to that page.

 

if you do that in clientareaaddfunds.tpl, you should find the variable you're looking for - which I think should be {$clientsstats.creditbalance}

 

...and remember to remove {debug} from the template!

Link to comment
Share on other sites

there are two problems with that...

 

firstly, a cosmetic one in that it's never a good idea to quote code in the forum - as for some reason, a space can often (and has in this case) get added to the code which would prevent it from working...

 

{if $clientsstats.incredit}
<div class="alert alert-success">
   <p><strong>{$LANG.availcreditbal}:</strong>  {$LANG.availcreditbaldesc|sprintf2:$clientsstats.creditbalance}</p>
</div>
{/if}

the second problem is that I think the OP wants a balance to show regardless of its value - and in your code, it would only show if the client had a credit balance greater than 0.

 

personally, i'd just add a new row to the existing table.

 

                    <tr>
                       <td class="textright"><strong>{$LANG.availcreditbal}</strong></td>
                       <td>{$clientsstats.creditbalance}</td>
                   </tr>

with the option of using a Language Override to create a new text string if you are unhappy with using the existing "Available Credit Balance" text.

Link to comment
Share on other sites

  • 7 years later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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