Jump to content
Sign in to follow this  
sentq

Display Credit Balance In Six Template

Recommended Posts

Some people want to show their client's credit balance when they login to client area, as the option not implemented by default in Six Template here is how to do it:

1) Upload the PHP file from Attachements to -> /WHMCS-Path/includes/hooks/ directory.

WHMCS_SixTemplateCreditBalance.zip

SixTemplate-CreditBalance.png

Edited by sentq

Share this post


Link to post
Share on other sites

nice module, i was about to do this because i have clients what to see they balance when they login balance

Share this post


Link to post
Share on other sites
Thank you @sentq for sharing this useful hook

You're welcome :)

 

nice module, i was about to do this because i have clients what to see they balance when they login balance

so I've saved you this effort my friend :idea:

Share this post


Link to post
Share on other sites
Some people want to show their client's credit balance when they login to client area, as the option not implemented by default in Six Template here is how to do it:

1) Upload the PHP file from Attachements to -> /WHMCS-Path/includes/hooks/ directory.

 

Thanks for sharing this sentq, it works perfectly and your code has helped me to understand the sidebar implementation a little better.

Share this post


Link to post
Share on other sites
Thanks for sharing this sentq, it works perfectly and your code has helped me to understand the sidebar implementation a little better.

Glad to here that Mark, You're welcome :)

Share this post


Link to post
Share on other sites
Some people want to show their client's credit balance when they login to client area, as the option not implemented by default in Six Template here is how to do it:

1) Upload the PHP file from Attachements to -> /WHMCS-Path/includes/hooks/ directory.

CANNOT donwload the sample hook zip file. each and everytime it goes to the

[h=3]You are not logged in or you do not have permission to access this page.[/h]

I can do everything else and have been a user for a good few years. Simply wont let me do it :?:

 

- - - Updated - - -

 

CANNOT donwload the sample hook zip file. each and everytime it goes to the

You are not logged in or you do not have permission to access this page.

 

 

I can do everything else and have been a user for a good few years. Simply wont let me do it :?:

 

SPOKE too SOON. I opened the link via right click open new tab and it worked. ALthough clicking the link itself still takes me to the permissions error page. Strange..

 

P.S thanks for a great sample plugin 8)

Share this post


Link to post
Share on other sites
SPOKE too SOON. I opened the link via right click open new tab and it worked. ALthough clicking the link itself still takes me to the permissions error page. Strange..

 

P.S thanks for a great sample plugin 8)

you're welcome :)

Share this post


Link to post
Share on other sites

Lol what for an addon ?!

 

You juste have to put :

<tr>

<td class="textright"><strong><dl><dd class="title">{$LANG.statscreditbalance}</a> :</dd></strong></td>

<td><dd class="number">{$clientsstats.creditbalance}</a></dd></dl></td>

</tr>

 

To your file clientareaaddfunds.tpl

 

No need hook for that ^^

 

Regards

Share this post


Link to post
Share on other sites
Lol what for an addon ?!

You just have to put To your file clientareaaddfunds.tpl

No need hook for that ^^

you do realise that when you update your WHMCS template, if WHMCS changes the clientareaaddfunds.tpl template, you'll lose the above additional code - but sentq's hook will continue to work! :)

 

in any event, your code and the hook are two different things... your code just adds the balance on the add funds page, sentq's hook will display it on the client homepage (and could be modified to work on other pages too).

Share this post


Link to post
Share on other sites

Thank you! hook works insanely well...

 

Found one issue, when in "Portal Home / Client Area / My Invoices" the Secondary_Sidebar-Billing module glitches out from the sidebar. Sorry not very familiar, learning whmcs as I go along. (See screenshot) Is there an easy fix to this?

 

Thanks in advance...

 

Once again Great Hook!!!

 

Screen Shot 2015-11-12 at 5.25.16 PM.png

Share this post


Link to post
Share on other sites

have you modified the hook in any way? when I go to that page on my dev site, the credit balance sidebar isn't shown there - it only appears on the client homepage.

Share this post


Link to post
Share on other sites
have you modified the hook in any way? when I go to that page on my dev site, the credit balance sidebar isn't shown there - it only appears on the client homepage.

 

Hi, Wow you respond quickly. No not at all... also re-downloaded and uploaded the hook again... and still the same issue?

Share this post


Link to post
Share on other sites
Hi, Wow you respond quickly. No not at all... also re-downloaded and uploaded the hook again... and still the same issue?

Is the issue only appear when you use this hook?

What version of WHMCS you currently use? if you have the 6.1.1 does your template use the latest template updates in v6.1.1?

Tell me how to replicate the issue and i will check, thank you

Share this post


Link to post
Share on other sites

Hi, thanks for getting back to me,

 

Yes, if I remove the hook everything goes back to normal. Billing block moves back to sidebar.

 

Using Version: 6.1.1 and also using latest v6 template.

 

Thanks for looking into this for me. Let me know if you need anything else.

Share this post


Link to post
Share on other sites

Hi also notices that when changing the code from “Primary” to “Secondary” it resolves the issue… : ) and then also moves it between “Your Info” block and “Contacts” block… which also works well.

 

 

ClientAreaSecondarySidebar

 

$secondarySidebar

Share this post


Link to post
Share on other sites
Hello,

 

how do you download this hook?

 

It say's you do not have permission?

Maybe when you reach 5 posts in the forum

Share this post


Link to post
Share on other sites
Thank you! hook works insanely well...

 

Found one issue, when in "Portal Home / Client Area / My Invoices" the Secondary_Sidebar-Billing module glitches out from the sidebar. Sorry not very familiar, learning whmcs as I go along. (See screenshot) Is there an easy fix to this?

 

Thanks in advance...

 

Once again Great Hook!!!

 

[ATTACH=CONFIG]9667[/ATTACH]

I was able to replicate the issue, even without using this Sidebar ActionHook, looks like a problem with Six Template but it can be fixed (almost) with CSS.

 

The issue only appear when left sidebar (Primary) gets height more than the content in the middle, this will cause the Secondary sidebar to be displayed as in the screenshot above, this need to be fixed by WHMCS it self :?: someday.

 

as a work around here is how you can solve this issue when you face it anytime, or simple to avoid it, add the following inside /templates/six/css/custom.css:

.main-content {
 min-height: 600px;
}

Share this post


Link to post
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.

Sign in to follow this  

  • Similar Content

    • By Hardik Lamichhane
      Hello,
      please help me to edit my sidebar item "Open Ticket" link
      Im using latest version of whmcs, i need the hook to change the url of that item.
      Screenshot is shown below.
      Thanks in advance. 

    • By WevrLabs
      AutoCredit for WHMCS is an addon that allows the automatic credit use setting to be optional per specific service/domain renewal invoices.
      By default, the setting in WHMCS is universal, if it is enabled, then all invoices generated upon cron job will have credit applied to them automatically from client's balance. The opposite when disabled, no credit will be applied when invoices are generated via cron.
      With AutoCredit addon, clients are able to selectively enable automatic credit use on renewal invoices of specific services/domains only.
      Version 2 Released:
      We are pleased to announce the release of version 2, which adds support for domains invoices (previous versions supported general product/service invoices only).

      https://dash.wevrlabs.net/cart.php?gid=6
      Addon Features:
      Allow clients to enable automatic credit usage on renewal invoices of specific services/domains only. Notify client when the credit applied to invoice is not enough to pay it. Display auto-credit status in services details page. Admin section to display clients list and the "Separate Invoices" option status for each client. Ability for admin to enable "Separate Invoices" option for new clients by default. Ability for admin to enable "Separate Invoices" option for all clients by one-click. Better track activities, by logging actions to activity log. Translation ready.  
    • By shanejen
      Hi 
       
      Could someone help me with the sidebar removal during  checkout/configuration and domain search ECT. I've managed to remove them with hooks and CSS, but I want the remaining content to fill the page and not be set to the right. There's too many out of date posts regarding this on here, and the WHMCS documentation is too vague. I'm using twenty-one template.
       
      TIA
    • By Dsbush
      So,I have an issue where some of my product groups in my sidebar are doubling up. I want to get rid of the doubles. What would be the best course of action that is not too complicated. 
    • By Tycho
      Hello,
      https://gyazo.com/ae7b45883641d2bbd26482f3233e7af2
      I want everything on the left side bar gone. What's the best way to do that without an empty spot? So I want to have the panels in the middle.
      I've looked at google a lot but couldn't get out anyway.
  • 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