tomb Posted February 11, 2012 Share Posted February 11, 2012 How do I insert the complete product description from a hosting plan into the html and pdf invoice? 0 Quote Link to comment Share on other sites More sharing options...
m8internet Posted February 11, 2012 Share Posted February 11, 2012 The product name should form part of the Product Name from the Products / Services Including the product description should already appear in the HTML However some of the Ordering templates remove this, so please advise which template you are using To add this to the PDF, edit the invoicepdf.tpl file However noone seems to have solved this, it has been asked numerous times : http://forum.whmcs.com/showthread.php?t=38872 http://forum.whmcs.com/showthread.php?t=35612 http://forum.whmcs.com/showthread.php?t=7421 Clearly the required text needs to be inserted into this section, but the fieldname (from MySQL) is also description foreach ($invoiceitems AS $item) { $rowcount = $pdf->getNumLines($item['description'], 140)+1; if ($pdf->GetY()+($rowcount*5)>260) $pdf->AddPage(); $pdf->MultiCell(140,$rowcount * 5,$item['description'],1,'L',0,0); $pdf->MultiCell(40,$rowcount * 5,$item['amount'],1,'C',0,0); 0 Quote Link to comment Share on other sites More sharing options...
tomb Posted February 11, 2012 Author Share Posted February 11, 2012 Thanks for your effort and the code snippets. This is must-have feature. How do you call your hosting plan? How do you separate your hosting plans when you sell different products? By hosting name e.g. PowerHosting XY, 10GB The only workaround seems to be using a very long product name? The product name should form part of the Product Name from the Products / ServicesIncluding the product description should already appear in the HTML Unfortunately it even doesn't show up in the html invoice? Is there any kind of option I might have disable? 0 Quote Link to comment Share on other sites More sharing options...
m8internet Posted February 11, 2012 Share Posted February 11, 2012 (edited) I've used various product names, for hosting When I started using WHMCS I had product names : Basic Economy and so on I replaced these with just the amount of webspace, as a customer survey suggested this was preferred They are now : 100MB 200MB and so on On the invoice these display as (example) : 100MB - domain.name (xx/xx/2012 - xx/xx/2013) Managed Website Hosting : No [price] Domain Name Renewal - domain.name - 1 Year (xx/xx/2012 - xx/xx/2013) [price] Total : [price] Not sure how anything can be missing from the Invoice and/or PDF attachment The product name should appear exactly as setup in the product name The only issue I can see is if you have products with the same name Edited February 11, 2012 by m8internet 0 Quote Link to comment Share on other sites More sharing options...
tomb Posted February 11, 2012 Author Share Posted February 11, 2012 yes, currently we're also using custom names. Than we might use e.g BasicXY 100MB, 10GB Traffic as a quick workaround. No, the product name shows up in html/pdf invoice. You've mentioned that the product description should appear in the html invoice? 0 Quote Link to comment Share on other sites More sharing options...
m8internet Posted February 12, 2012 Share Posted February 12, 2012 (edited) You've mentioned that the product description should appear in the html invoice? No, the product description appears in the HTML, not the email as the emails are plain text only However it does not appear in all HTML as it depends on which template you are using I noticed this when swapping between them For invoices I don't see the benefit of product description, all the customer needs to know is they are being invoiced for the hosting with product name and/or Domain Name I've never seen it on any of the invoices I receive (from other suppliers) or any of the other invoices I issue to clients (for the other businesses I operate) Examples : A - 20 x A4 binders Go to the website and it describes all about A4 binders B - Milk Supply 10 February [price] Milk Supply 11 Feburary [price] However the delivery note for each day shows what was delivered on that day, the invoice only shows the summary and amount due Edited February 12, 2012 by m8internet 0 Quote Link to comment Share on other sites More sharing options...
tomb Posted February 12, 2012 Author Share Posted February 12, 2012 I just received a reply from the WHMCS support. This kind of feature isn't supported in the current version (5.0.3). Descriptions don't show on invoices, only product names. 0 Quote Link to comment Share on other sites More sharing options...
supraguy Posted July 9, 2012 Share Posted July 9, 2012 I am wondering why we can't have the descriptions added to the product names when you use a premade product with the line item drop down. I really enjoy WHMCS but I use it for invoicing as little as possible for my web design company, because it would take me forever to add each product description for all the quotes and invoices I create daily. Is mine just broken or is this really not a option? And if it is not a option any suggestions on fixing this to do so? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
stevem Posted September 23, 2013 Share Posted September 23, 2013 Hear Hear, I would like to have product descriptions displayed on the invoice PDF under product name. 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.