wdele Posted September 11, 2014 Share Posted September 11, 2014 Hi, I have multiple companies, registered in The Netherlands. They are registered with our chamber of commerce (KvK). I have one main name for my companies (A), hence my KvK name is A. I have the hosting company X which uses WHMCS, and is registered as a kind of 'sub-company' under A. But due to legal stuff I have to bill my clients under A. So I need the WHMCS name to be X, but on the invoices the name should be A. Possible? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 11, 2014 Share Posted September 11, 2014 wow... i'm confused with A's and X's are you saying that you want your company name in setup -> general settings -> general to be "X" but on the invoices, you don't want mention of X, you want "A" used? or are you saying you want to invoice some clients as X and others as A? 0 Quote Link to comment Share on other sites More sharing options...
wdele Posted September 12, 2014 Author Share Posted September 12, 2014 wow... i'm confused with A's and X's are you saying that you want your company name in setup -> general settings -> general to be "X" but on the invoices, you don't want mention of X, you want "A" used? or are you saying you want to invoice some clients as X and others as A? The first one. I want X to be the name for my WHMCS installation, but the invoices should have the name A. 0 Quote Link to comment Share on other sites More sharing options...
Alex - Arvixe Posted September 12, 2014 Share Posted September 12, 2014 (edited) The first one. I want X to be the name for my WHMCS installation, but the invoices should have the name A. You can modify the language in the invoice template file. Step 1. Adding the language, follow this article: http://docs.whmcs.com/Language_Files#Usage_Instructions (or skip, see note below) Step 2. Edit the invoice template (and PDF template) replacing the old language phrase with the newly created one (Or you can skip #1 and insert your company name directly into the template) The files you'd need to edit are: viewinvoice.tpl and invoicepdf.tpl Edited September 12, 2014 by Alex - Arvixe 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 12, 2014 Share Posted September 12, 2014 just to expand a little on Alex's reply, I don't think that you need to do Step 1 as you're not really modifying any existing language settings, you're replacing a system variable with your custom name ("A") - and I assume that name is going to be the same regardless of the language used by your clients. so in viewinvoice.tpl, you would replace all instances of {$companyname} with whatever "A" is... depending on your template, it might be along the lines of changing... {if $logo}<p><img src="{$logo}" title="{$companyname}" /></p>{else}<h1>{$companyname}</h1>{/if} to... {if $logo}<p><img src="{$logo}" title="Wdele" /></p>{else}<h1>Wdele</h1>{/if} it's a little more involved tweaking the invoicepdf template, so what you will probably have to do is replace the following (this might be different depending on your template)... $pdf->Cell(160,6,trim($companyaddress[0]),0,1,'R'); with... $pdf->Cell(160,6,'Wdele',0,1,'R'); obviously, change Wdele to whatever your "A" company name is. 0 Quote Link to comment Share on other sites More sharing options...
wdele Posted September 12, 2014 Author Share Posted September 12, 2014 (edited) How would I be able to change these files? They're encrypted... Edit: Oh, you mean the .tpl files. Edited September 12, 2014 by wdele 0 Quote Link to comment Share on other sites More sharing options...
Alex - Arvixe Posted September 12, 2014 Share Posted September 12, 2014 Yes, the .tpl files are not encrypted and can be found in the templates area (templates/*your active temlate*/viewinvoice.tpl) Let us know if you need anymore help . 0 Quote Link to comment Share on other sites More sharing options...
wdele Posted September 12, 2014 Author Share Posted September 12, 2014 Yes, the .tpl files are not encrypted and can be found in the templates area (templates/*your active temlate*/viewinvoice.tpl) Let us know if you need anymore help . Yep, I found them. Thanks 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.