Cape Dave Posted February 4, 2010 Share Posted February 4, 2010 is scaring my customers. Could someone point me in the direction of eliminating this, or changing the font color/size? thanks much, Dave 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 4, 2010 Share Posted February 4, 2010 For removing the UNPAID text from your invoice, just remove the following lines from your invoicepdf.tpl (line 116-118): } elseif ($status=="Unpaid") { $statustext = $_LANG["invoicesunpaid"]; $pdf->SetTextColor(204,0,0); If you only want to change the color, change the values (RGB) of the $pdf->SetTextColor(204,0,0); line. The font size is defined in line 129 of the same file: $pdf->SetFont('helvetica','B',40); The 3th value is the font size, but this is also the font size for all other payment statuses (paid, cancelled, etc.) 1 Quote Link to comment Share on other sites More sharing options...
easyhosting Posted February 4, 2010 Share Posted February 4, 2010 is scaring my customers. Could someone point me in the direction of eliminating this, or changing the font color/size? thanks much, Dave This might be a silly question, but how can an unpaid invoice with the words unpaid scare your customers, it is simply an invoice telling your customers that the invoice is unpaid and needs paying. 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted February 4, 2010 Share Posted February 4, 2010 This might be a silly question, but how can an unpaid invoice with the words unpaid scare your customers, Because it's very big, and very red... 0 Quote Link to comment Share on other sites More sharing options...
WebHost.lk Posted February 4, 2010 Share Posted February 4, 2010 Your customers shouldn't scare to face the reality, isn't it? They know the reason for UNPAID (Regardless of the SIZE) . I think it should appear same as this. 0 Quote Link to comment Share on other sites More sharing options...
Cape Dave Posted February 4, 2010 Author Share Posted February 4, 2010 Because it's very big, and very red... Precisely. It gives off the feeling that the invoice is somehow OVERDUE. Which creates immediate and serious anxiety in the client. And thanks immensely for the answers! It really helped me out in a BIG RED way 0 Quote Link to comment Share on other sites More sharing options...
zoe Posted February 4, 2010 Share Posted February 4, 2010 How do i move the location of the UNPAID word? Im trying to center it but cannnot 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted February 4, 2010 Share Posted February 4, 2010 How do i move the location of the UNPAID word? Im trying to center it but cannnot The coordinates are defined on line 112 of the invoicepdf.tpl: $pdf->SetXY(70,90); 0 Quote Link to comment Share on other sites More sharing options...
Cape Dave Posted February 5, 2010 Author Share Posted February 5, 2010 I decided to eliminate it and it is done! Much thanks to the board. Was truly easy to do. 0 Quote Link to comment Share on other sites More sharing options...
bluebirdnet Posted February 13, 2010 Share Posted February 13, 2010 I have the same issue here but what i think would be better but let me explain my situation. WHMCS allows you to use it for custom invoices that like in my case i email to my client and they pay via check. (website design, server maintenance etc) It looks really insulting when you send the initial invoice and it says in red UNPAID ! I actually had a call from my client about this, he was not happy. I would much rather it do this only when WHMCS generates an actual unpaid overdue invoice! Having another Status that we can set to as the default when an invoice is created would work better. This status would not include any additional TEXT (like the UNPAID or maybe a "Thankyou!" ). Since i believe the procedure above will completely eliminate the UNPAID ? and i do want to retain this function for online stuff like Hosting. thanks 0 Quote Link to comment Share on other sites More sharing options...
GORF Posted February 13, 2010 Share Posted February 13, 2010 (edited) I would much rather it do this only when WHMCS generates an actual unpaid overdue invoice! Every initially generated invoice is unpaid. The word "Unpaid" is obvious and self explaining as is the word "Overdue" Placing the words "Thank You!" above "Unpaid" may seem a bit more human, but it does not change the fact that it's a new invoice and it is unpaid as of yet. [this thread is rediculous] Edited February 13, 2010 by TonsOfStores 0 Quote Link to comment Share on other sites More sharing options...
knipper Posted February 26, 2010 Share Posted February 26, 2010 Like Bluebirdnet, I would also like to be able to add or change status options from the dropdown menu. Anyone know if/where this can be done? In my case I would like to add a "Past Due" option. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
vincent1 Posted February 26, 2010 Share Posted February 26, 2010 I have the same issue here but what i think would be better but let me explain my situation. WHMCS allows you to use it for custom invoices that like in my case i email to my client and they pay via check. (website design, server maintenance etc) It looks really insulting when you send the initial invoice and it says in red UNPAID ! I actually had a call from my client about this, he was not happy. I would much rather it do this only when WHMCS generates an actual unpaid overdue invoice! Having another Status that we can set to as the default when an invoice is created would work better. This status would not include any additional TEXT (like the UNPAID or maybe a "Thankyou!" ). Since i believe the procedure above will completely eliminate the UNPAID ? and i do want to retain this function for online stuff like Hosting. thanks Like Bluebirdnet, I would also like to be able to add or change status options from the dropdown menu. Anyone know if/where this can be done? In my case I would like to add a "Past Due" option. Thanks! I have to fully agree with both of you, and I think as a customer that received an invoice from Matt I can understand - it's scary! Would be a least possible to only have it appear on invoices for items that have reached their expiry date, and not on the invoices sent in advance. - Vince 0 Quote Link to comment Share on other sites More sharing options...
solokron Posted February 27, 2010 Share Posted February 27, 2010 I am thinking 32 might be a better size. 0 Quote Link to comment Share on other sites More sharing options...
decor Posted March 4, 2010 Share Posted March 4, 2010 I myself had no problems with red unpaid, but a client called up "peeved" and put another slant on it. If the invoice is printed out and is laying on a desk, then someone looking at it could getthe idea that the invoice was overdue and the client was a credit risk Cheers ian 0 Quote Link to comment Share on other sites More sharing options...
Cape Dave Posted March 4, 2010 Author Share Posted March 4, 2010 My client pretty much said the same thing. They thought I was calling them a deadbeat. I changed it toot sweet. BLANK for initial invoice. 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted March 4, 2010 Share Posted March 4, 2010 A deadbeat because of invoice? Our clients all understand that an invoice marked unpaid is just that - an invoice that hasn't been paid. Maybe our clients lack sensitivity 0 Quote Link to comment Share on other sites More sharing options...
knipper Posted March 4, 2010 Share Posted March 4, 2010 I myself had no problems with red unpaid, but a client called up "peeved" and put another slant on it.If the invoice is printed out and is laying on a desk, then someone looking at it could getthe idea that the invoice was overdue and the client was a credit risk Cheers ian Then I would say they need to clean up their desk! ;) 0 Quote Link to comment Share on other sites More sharing options...
siteone Posted March 15, 2010 Share Posted March 15, 2010 I'm actually working on a solution to this issue (yeah, some of my clients are a bit put off by seeing a big red sticker on their first invoice), by using the following in the invoicepdf.tpl file around lines 113 and following: $today = date("Y/d/m"); switch ($status) { case "Cancelled" : $statustext = $_LANG["invoicescancelled"]; $pdf->SetFont('helvetica','B',20); $pdf->SetTextColor(245,245,245); break; case "Unpaid" : if ($datecreated === $today) { $statustext = $_LANG["invoicesfirsttime"]; $pdf->SetFont('helvetica','B',12); $pdf->SetTextColor(0,0,151); } elseif ($datecreated < $today && $today < $duedate) { $statustext = $_LANG["invoicesunpaid"]; $pdf->SetFont('helvetica','B',12); $pdf->SetTextColor(0,0,151); } elseIf($today > $duedate) { $statustext = $_LANG["invoicesoverdue"]; $pdf->SetFont('helvetica','B',20); $pdf->SetTextColor(204,0,0); } break; case "Paid" : $statustext = $_LANG["invoicespaid"]; $pdf->SetFont('helvetica','B',20); $pdf->SetTextColor(153,204,0); break; case "Refunded" : $statustext = $_LANG["invoicesrefunded"]; $pdf->SetFont('helvetica','B',20); $pdf->SetTextColor(34,68,136); break; case "Collections" : $statustext = $_LANG["invoicescollections"]; $pdf->SetFont('helvetica','B',20); $pdf->SetTextColor(255,204,0); default: break; } As you can see, the idea is that if the status is unpaid, and the created date is today, it prints a message from a new $_LANG["invoicesfirsttime"] parameter I created in the language file that says "this is your first invoice" in blue with a small font. If I manually send them an unpaid status invoice after the creation date but before the due date, it sends the message from the $_LANG["invoicesunpaid"] parameter, which is changed to say "this invoice has not yet been paid" - again in blue with a smaller font. Finally, if the invoice is stull unpaid, but after the due date, it send the message from the $_LANG["invoicesoverdue"] parameter, which says "this invoice is overdue" in the bigger font colored red. I think the basic logic of the select statement is correct, and it's working OK for the most part. However, I believe there's something with the date comparison that's not quite right, because ALL of the unpaid invoices are getting flagged in the PDF invoice as "overdue" regardless of whether the due date is passed or not. You can see how I'm getting the current date in the fragment above (first line) - perhaps someone can spot where I went wrong. I'd love to get this going; I think it can solve a lot of the problems we've been talking about. 0 Quote Link to comment Share on other sites More sharing options...
siteone Posted April 23, 2010 Share Posted April 23, 2010 I've actually worked out a solution to the problem, using the process I outlined above. The solution is found in this post: http://forum.whmcs.com/showpost.php?p=148250&postcount=2 0 Quote Link to comment Share on other sites More sharing options...
BobC Posted April 25, 2010 Share Posted April 25, 2010 If I was really concerned about this, I would just change "UNPAID" to "PENDING" or eliminate it completely. 0 Quote Link to comment Share on other sites More sharing options...
kenwardc Posted October 25, 2010 Share Posted October 25, 2010 I've also had a couple of clients say they don't like the "big red UNPAID" on the invoice, so have tried to change it using the details from m00 above. It doesn't appear to have made any difference on my system. Is there a reload or something we need to do to make it take effect? I've restarted Apache but as I say, there is no difference so far. Cheers Chris 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted October 25, 2010 Share Posted October 25, 2010 I've also had a couple of clients say they don't like the "big red UNPAID" on the invoice, so have tried to change it using the details from m00 above. It doesn't appear to have made any difference on my system. Is there a reload or something we need to do to make it take effect? I've restarted Apache but as I say, there is no difference so far. Cheers Chris Can you post (or send me) the /templates/<templatename>/invoicepdf.tpl file? 0 Quote Link to comment Share on other sites More sharing options...
kenwardc Posted October 25, 2010 Share Posted October 25, 2010 Hi m00 Nice to "meet" you again here. I've sent you the file via Email. Thanks for looking at it for me! The file was in whmcs/templates/default/ All the best Chris 0 Quote Link to comment Share on other sites More sharing options...
kenwardc Posted October 25, 2010 Share Posted October 25, 2010 Thanks, m00 for the help. I was in the wrong template folder... DOH! Working perfectly now. Nothing on the new invoices, so no upset customers. Thanks, m00! Chris 0 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.