futuroweb Posted January 10, 2014 Share Posted January 10, 2014 Hello, I want to know how to do to edit the bill to show me where it says description, add the field "Quantity" and "Unit Price". I also want that the bill covers the whole page. That goes where the product description page down to lengthen. Attached screenshot of what I want! Thank you! 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted January 11, 2014 Share Posted January 11, 2014 (edited) Edit the following templates/{$template}/css/invoice.css templates/{$template}/viewinvoice.tpl For "add the field" u should edit the .tpl and change the lang/{$yourlang}.php values, i order to follow the WHMCS design Edited January 11, 2014 by priestakos 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 11, 2014 Share Posted January 11, 2014 Edit the following templates/{$template}/css/invoice.css templates/{$template}/viewinvoice.tpl For "add the field" u should edit the .tpl and change the lang/{$yourlang}.php values, i order to follow the WHMCS design i'm sorry, but this is totally wrong advice - the question was about the pdf invoice and that has nothing to do with stylesheets or viewinvoice.tpl... oh if only it did! the solution will lie in editing invoicepdf.tpl, but what you want to do isn't simple... going by your drawing, you could split this into three steps... 1. redraw the invoice table with two additional columns - quantity and unit price... this step would be easy as it's just html! 2. add the quantity and unit price values into the invoice... this is the difficult part as you would either have to use PHP to obtain these values from the description field or get them from the database - I don't believe they are passed as separate variables to the invoicepdf template (would be easier to do this if they were!). 3. extend the length of the invoice table - you might be able to do this by simply adding a height value to the table tag. I think what you want to do can probably be achieved, but the end result may go beyond just editing invoicepdf.tpl - that will depend on how much PHP tweaking can be achieved in the template, or whether you need to do it externally with hooks... all of which might take someone some time to complete. 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted January 12, 2014 Share Posted January 12, 2014 OK. Yes. But if u want to edit invoice u can check them too...Not only PDF 0 Quote Link to comment Share on other sites More sharing options...
gwada971 Posted November 16, 2021 Share Posted November 16, 2021 Hello, have you found a solution? I have the same problem. 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.