Jump to content

Display Credit Balance In Six Template


sentq

Recommended Posts

  • 4 weeks later...
  • 1 month later...
  On 8/16/2018 at 5:11 PM, Aris.N. said:

The only issue i have is that the display is something like this: €587.45, although i have set  at Whmcs setup the currency to be displayed as €587,45

So, it is a bit confusing. Is there solution?

Expand  

quick fix is to change...

'label' => '<h4 style="text-align:center;">'.$pricegetCurrency['0']->prefix.$client->credit.' '. $getCurrency['0']->suffix.'</h4>',

to...

'label' => '<h4 style="text-align:center;">'.formatCurrency($client->credit, $client->currency).'</h4>',

and you no longer need the #Get Currency block of code... i've worked from the v1.1 version on page 1 and attached a modified file.

WHMCS_SixTemplateCreditBalance.php

Link to comment
Share on other sites

  On 8/17/2018 at 8:51 PM, DewlanceHosting said:

I was thinking about adding it to non-logged in sidebar order category page but now I think it will be distraction to customer and they will start adding fund instead of purchasing product. 😉

Expand  

if they aren't logged in, how would you know how much their credit balance was ?

Link to comment
Share on other sites

  On 8/19/2018 at 2:50 PM, DewlanceHosting said:

Any solution for fixing this issue? If I remove this hook then it go back to exact position. I tried to add space, <br>, etc code but can't get success from last 4 to 6 hours 😢

Expand  

it's a known issue with WHMCS when there are too much sidebar content - sentq posted a hook fix earlier in this thread

failing that, thememetro posted another similar fix...

basically it's a css issue - so one of them should solve it.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 1 month later...
  On 1/12/2019 at 4:32 PM, arsalahmed786 said:

"We do not allow depositing funds in advance with us at the current time."

How can i enable that client allowed to add funds on their account.

Expand  

You need to enable it in the settings. 

Setup > General Settings > Credit & check the top box it says (" Tick this box to enable adding of funds by clients from the client area ")

Link to comment
Share on other sites

  On 1/12/2019 at 4:32 PM, arsalahmed786 said:

How can i enable that client allowed to add funds on their account.

Expand  

https://docs.whmcs.com/Add_Funds

  Quote

To enable the add funds option in the client area, go to Setup > General Settings > Credit and tick the enable box and configure the minimum and maximum amounts you want to allow.

Expand  
Link to comment
Share on other sites

  • 2 months later...
  On 10/6/2015 at 11:03 PM, sentq said:

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

SixTemplate-CreditBalance.png                https://prnt.sc/n52kxg

Expand  
3

 

download.png

Link to comment
Share on other sites

now I love a good screenshot with red arrows just as much as the next guy, but what's the point you're trying to make ?

  • one invoice with a balance of 0.00 - perhaps you haven't marked it as paid ??
  • credit balance of $5 - it confirms the amount in the notifications...

also, you might want to look into your WHMCS license situation, it's invalid. headshake.gif

iS3tsv9.png

it might not have been the brightest of ideas to create an account here using your domain name (which btw is against the rules but seemingly never enforced) if you do not use a valid WHMCS license. 🙄

rN7GWsb.png

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  On 8/25/2019 at 5:43 PM, HOSKIA INDIA said:

its widget is showing on almost every pages on client area, example product page, domain page, support page  etc, i need to show only on client area (homepage) and billing-related page, how its possible

Expand  

the problem with this thread is that there are multiple versions of the same hook posted within it!

if you go back to page 2, I showed how you can make the sidebar only appear of specific pages.

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