Jump to content

Edit Logo in Invoice PDF without FTP


CyberBeat

Recommended Posts

Hello,

I am wondering how i would be able to edit the Logo in the invoice document without having access to the WHMCS files as our host has put them on another server and will not give us access to it.

We asked our host, and they said this.

 

Unfortunately, we don't offer support for WHMCS, but we can confirm that you DON'T need access to the server to edit the logo. Please find help on forums.

 

So that is what i am doing here :D

 

And another problem, i think it is because of it being on another server, but I have set up the Cron job using the details given by WHMCS automation page, but i get a error in the emails,

No input file specified.

 

any ideas?

 

Thank you,

Braydon

Link to comment
Share on other sites

I'm a noob with WHMCS, just installed today, but I see it has option to input a URL for your logo in the general config.

 

For cron jobs on another server, try using the GET method instead, as that also allows you to input the full URL

 

Hope that helps,

 

- Vince

Link to comment
Share on other sites

i have tried the url logo thingy but i think that is only for emails, and not for the PDF.

 

and for the cron jobs, it gives me a whole load of crap when i do the get one,

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>406 Not Acceptable</title>

</head><body>

<h1>Not Acceptable</h1>

<p>An appropriate representation of the requested resource /admin/cron.php could not be found on this server.</p>

<p>Additionally, a 404 Not Found

error was encountered while trying to use an ErrorDocument to handle the request.</p>

</body></html>

Link to comment
Share on other sites

I'm a noob with WHMCS, just installed today, but I see it has option to input a URL for your logo in the general config.

 

I'm affraid that's the logo in your normal templates, not for the PDF invoice.

 

If you want to load the cronjob from an external URL, try:

0 0 * * * wget -q http://www.url-to-whmcs-install.com/admin/cron.php >/dev/null 2>&1
Link to comment
Share on other sites

Yay that seems to be working! it says in the LOG that it runs and completes!

All i did was remove the "0 0 * * * " from that command Moo posted and added in my address and it works! thnak you!

 

now about that PDF.....

 

Well, the 0 0 * * * was just the time when it needs to run, so every day on 0:00, but I'm glad it works for you.

 

For the PDF part: only possible when you have access to the FTP account. The path to the image file is hard-coded in your invoicepdf.tpl file, and there isn't a file manager in WHMCS which allows you to upload another image.

Link to comment
Share on other sites

  • 1 year later...

For the PDF part: only possible when you have access to the FTP account. The path to the image file is hard-coded in your invoicepdf.tpl file, and there isn't a file manager in WHMCS which allows you to upload another image

 

 

Can you just edit the invoice.tpl file and change the root to the public?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated