brian! Posted June 18, 2018 Share Posted June 18, 2018 14 hours ago, mwndesign said: This is what i am using now to display the clients account balance: {$clientsstats.creditbalance} good spot - i'd forgotten about that array. 1 Quote Link to comment Share on other sites More sharing options...
ISH Posted July 12, 2018 Share Posted July 12, 2018 good one Yeap, it worked Thanks brian! 0 Quote Link to comment Share on other sites More sharing options...
Aris.N. Posted August 16, 2018 Share Posted August 16, 2018 It works fine for me, too. Thanks @brian! 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? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 16, 2018 Share Posted August 16, 2018 21 minutes ago, 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? 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 2 Quote Link to comment Share on other sites More sharing options...
Aris.N. Posted August 16, 2018 Share Posted August 16, 2018 Perfect. Thank you! 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 17, 2018 Author Share Posted August 17, 2018 25 minutes ago, DewlanceHosting said: How to show this in Sidebar panel of every page whichever contain Sidebar? (Secondary Sidebar or every type of sidebar) it's already displayed in every page except for pages where client are not logged-in, could you explain what you mean in more details? 1 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 18, 2018 Share Posted August 18, 2018 14 hours ago, 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. 😉 if they aren't logged in, how would you know how much their credit balance was ? 0 Quote Link to comment Share on other sites More sharing options...
mwndesign Posted August 18, 2018 Share Posted August 18, 2018 (edited) If a user isn't logged in then it wouldn't pick anything up to display, as the information is pulled from the database for each user. Edited August 19, 2018 by WHMCS ChrisD Edited as per client request 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 19, 2018 Share Posted August 19, 2018 2 minutes ago, 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 😢 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. 1 Quote Link to comment Share on other sites More sharing options...
Aris.N. Posted August 23, 2018 Share Posted August 23, 2018 Hi, i was wondering if it is possible to display the clients credit balance info as a panel. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 23, 2018 Share Posted August 23, 2018 3 hours ago, Aris.N. said: i was wondering if it is possible to display the clients credit balance info as a panel. 1 Quote Link to comment Share on other sites More sharing options...
Aris.N. Posted August 23, 2018 Share Posted August 23, 2018 It works. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
Shipon Karmakar Posted September 8, 2018 Share Posted September 8, 2018 Thanks Please add this feature default 0 Quote Link to comment Share on other sites More sharing options...
Amcom Posted November 19, 2018 Share Posted November 19, 2018 When you don't have the credit balance setup to auto pay invoices, how can the client pay an invoice using their credit balance? 0 Quote Link to comment Share on other sites More sharing options...
Amcom Posted November 19, 2018 Share Posted November 19, 2018 3 hours ago, Amcom said: When you don't have the credit balance setup to auto pay invoices, how can the client pay an invoice using their credit balance? I located the answer, from the unpaid invoice you can apply credit to pay the invoice. 0 Quote Link to comment Share on other sites More sharing options...
arsalahmed786 Posted January 12, 2019 Share Posted January 12, 2019 "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. 0 Quote Link to comment Share on other sites More sharing options...
mwndesign Posted January 15, 2019 Share Posted January 15, 2019 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. 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 ") 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 15, 2019 Share Posted January 15, 2019 On 12/01/2019 at 16:32, arsalahmed786 said: How can i enable that client allowed to add funds on their account. 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. 1 Quote Link to comment Share on other sites More sharing options...
Myhostit Posted March 30, 2019 Share Posted March 30, 2019 On 10/7/2015 at 5:03 AM, 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.zip https://prnt.sc/n52kxg 3 -1 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 31, 2019 Share Posted March 31, 2019 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. 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. 🙄 1 Quote Link to comment Share on other sites More sharing options...
AlexBGames Posted May 14, 2019 Share Posted May 14, 2019 Where does one upload the hook to? Which directory in WHMCS cause hooks is not a vaild directory? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 15, 2019 Author Share Posted May 15, 2019 11 hours ago, AlexBGames said: Where does one upload the hook to? Which directory in WHMCS cause hooks is not a vaild directory? you need to upload it inside "{WHMCS-Main-Directory}/includes/hooks/" directory 0 Quote Link to comment Share on other sites More sharing options...
n3m0 Posted August 18, 2019 Share Posted August 18, 2019 Just registered few days ago and found this treasure! Great hooks, installed right away when my client just about to ask about it few minutes ago!lol, thank you so much!!! 0 Quote Link to comment Share on other sites More sharing options...
HOSKIA INDIA Posted August 25, 2019 Share Posted August 25, 2019 its widget is showing on almost every pages on clint 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 26, 2019 Share Posted August 26, 2019 18 hours ago, 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 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.