nlundsten Posted May 14, 2015 Share Posted May 14, 2015 Two things 1) When you visit my whmcs portal page, my custom logo is there, ONLY because I went and found /templates/default/img/whmcslogo.png and i renamed it to whmcslogo.png.backup Then I dropped in my own logo as whmcslogo.png so im guessing this is the wrong way to do it, if so can someone point me in the right direction for this? 2) My main issue is I placed a test order, got to the paypal payment page and just cancelled it, it then returned me to /viewinvoice.php?id=1&paymentfailed=true which is fine, but the problem is that at the top left corner, it says my Company name.. but no logo But if you just were to visit the WHMCS URL, the logo is there.. I gather I need to edit /templates/default/viewinvoice.tpl But on the line it says {if $logo}<p><img src="{$logo}" title="{$companyname}" /></p>{else}<h1>{$companyname}</h1>{/if} I was going to erase {$logo} and put the physical LINK to the image.. but, Just seeing {$logo} suggests to me that its a variable thats defined already somewhere.. So couldnt i just edit what that variable is? or somewhere? or let me know what is the best way to do this Especially because it says if $logo, so that makes it sound like there is a logo defined somewhere so advice on the best way to replace the logo would be great along w/ this invoice logo issue I can easily restore the whmcslogo.png in /templates/default/img/ 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 15, 2015 Share Posted May 15, 2015 the logo URL is defined in setup -> general settings -> general -> logo URL I know the description text says that it's used for emails, but it's used on the invoice too. 0 Quote Link to comment Share on other sites More sharing options...
ManagedCloud-Hosting Posted May 20, 2021 Share Posted May 20, 2021 Hi @brian! How do I remove this only from - viewinvoice.php bur not from emails sent out ? Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 20, 2021 Share Posted May 20, 2021 2 hours ago, ManagedCloud-Hosting said: How do I remove this only from - viewinvoice.php bur not from emails sent out ? you could remove the logo from the HTML invoice using a hook... <?php function hook_view_invoice_remove_logo($vars) { return array("logo" => NULL); } add_hook('ClientAreaPageViewInvoice', 1, 'hook_view_invoice_remove_logo'); but if the logo doesn't exist (which the above hook ensures), the template will display the company name value instead (pulled from General Settings -> Company Name). if you don't want the company name shown either, then you can just change the "return" line of code and null both variables... return array("logo" => NULL, "companyname" => NULL); 1 Quote Link to comment Share on other sites More sharing options...
ManagedCloud-Hosting Posted May 21, 2021 Share Posted May 21, 2021 Thanks @brian! 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.