Forums / All Other Contributions/Addons / Invoice-to-PDF Mailer [support thread]

Invoice-to-PDF Mailer [support thread]

Started by hayden on 9 Nov 2008, 2:08 AM · Views: 23,841

Results 21 to 40 of 40
11 Mar 2009, 7:02 PM
#21
chalfontgifts avatar

chalfontgifts

Zen Follower

Join Date:
Jun 2007
Posts:
122
Plugin Contributions:
0

Invoice-to-PDF Mailer [support thread]

Hi all

I have not installed this yet, but was wondering if some of you could give me some advise.

I would like to use this contribution, but make a few changes to it, and wondered if you could maybe point me in the right direction for where to make these changes.

The changes I require are as follows :

  1. I want to change the email address that the pdf file is sent to. I would like this to be a fixed email address, that is hard coded into the pdfmail.php file. I would also like it to send a copy to the address that is setup in admin for new orders to be recieved.

  2. If I wanted the pdf to be the packing slip instead, where would I change this.

  3. How could I get the pdf to be downloaded to a location on my local hard drive, after it has saved it in the invoices folder on the web server.

  4. If I wanted to just create a pdf and downlod it, without sending it via email, how could this be done.

Thanks for any assistance you can give.

Regards
Laurie

12 Mar 2009, 11:40 AM
#22
chalfontgifts avatar

chalfontgifts

Zen Follower

Join Date:
Jun 2007
Posts:
122
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

Hi

I have installed this now, and trying to get it working without making any changes, so that I can prove the basic code is working.

When I press the email pdf button, it just displays a blank page, with Inernet explorer cannot display the web page.

This is the address it shows in the address bar.

www. chalfontgifts.co.uk/shop/admindir/pdfmail.php?oID=100231&[email protected]

I have changed the email name,domain and placed a space after www. for security, but it does show the correct email for the order selected and does not have the space in, when on the live site.

Any ideas what can cause this.

Regards
Laurie

21 Mar 2009, 12:38 AM
#23
hayden avatar

hayden

New Zenner

Join Date:
May 2008
Location:
South Australia
Posts:
86
Plugin Contributions:
1

Re: Invoice-to-PDF Mailer [support thread]

  1. I want to change the email address that the pdf file is sent to. I would like this to be a fixed email address, that is hard coded into the pdfmail.php file. I would also like it to send a copy to the address that is setup in admin for new orders to be recieved.

Yes.

  1. If I wanted the pdf to be the packing slip instead, where would I change this.
    Yes
  1. How could I get the pdf to be downloaded to a location on my local hard drive, after it has saved it in the invoices folder on the web server.

Yes, i think it allready has this option

  1. If I wanted to just create a pdf and downlod it, without sending it via email, how could this be done.

Yes

21 Mar 2009, 12:40 AM
#24
hayden avatar

hayden

New Zenner

Join Date:
May 2008
Location:
South Australia
Posts:
86
Plugin Contributions:
1

Re: Invoice-to-PDF Mailer [support thread]

chalfontgifts:

Any ideas what can cause this.

Regards
Laurie

possibly your different admin dir path... if its saying the page cannot be found, is it correct in looking for pdfmail.php in /shop/admindir/ ??

21 Mar 2009, 8:31 AM
#25
chalfontgifts avatar

chalfontgifts

Zen Follower

Join Date:
Jun 2007
Posts:
122
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

Thanks for the resonse. I think that part of the path is correct.

If I add this &action=email_to manually to the end of the url, it does bring a page up with the email editor on it.

Not sure if this is what it is supposed to bring up, but the action part of the url appears to be missing when I press the button from the orders page.

Any idea why that is missing ?

Regards
Laurie

21 Mar 2009, 8:58 AM
#26
hayden avatar

hayden

New Zenner

Join Date:
May 2008
Location:
South Australia
Posts:
86
Plugin Contributions:
1

Re: Invoice-to-PDF Mailer [support thread]

this is how it is after clicking the button on a working system: /pdfmail.php?oID=14&email=[email protected]

21 Mar 2009, 9:26 AM
#27
chalfontgifts avatar

chalfontgifts

Zen Follower

Join Date:
Jun 2007
Posts:
122
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

Ok that is what I have after clicking the button. Just brings up a blank page, and the path is correct.

What is the latest version of this contribution ? Where do I get the latest version. Just need to be sure it is the latest version before I start looking in the code.

Any other ideas.

Regards
Laurie

21 Mar 2009, 9:50 AM
#29
chalfontgifts avatar

chalfontgifts

Zen Follower

Join Date:
Jun 2007
Posts:
122
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

Ok I have downloaded from there, and uploaded all files again, just to be sure there were not differences in what we are both looking at.

When I click the button, it does create the pdf file in the invoices directory, but still brings up a blank page.

What should be on the page ?

21 Mar 2009, 9:02 PM
#30
chalfontgifts avatar

chalfontgifts

Zen Follower

Join Date:
Jun 2007
Posts:
122
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

To add to the above. Still no progress on the above.
When i look in the server logs it shows this.

chalfontgifts.co.uk [Sat Mar 21 21:00:14 2009] [error] [client 80.225.138.214] PHP Notice: Use of undefined constant FILENAME_MAILP - assumed 'FILENAME_MAILP' in /home/sites/chalfontgifts.co.uk/public_html/shop/admin/pdfmail.php on line 9, referer: http://www..co.uk/shop/admin/orders.php
chalfontgifts.co.uk [Sat Mar 21 21:00:14 2009] [error] [client 80.225.138.214] PHP Notice: Use of undefined constant TEXT_ATTACH - assumed 'TEXT_ATTACH' in /home/sites/chalfontgifts.co.uk/public_html/shop/admin/pdfmail.php on line 10, referer: http://www.
.co.uk/shop/admin/orders.php
chalfontgifts.co.uk [Sat Mar 21 21:00:14 2009] [error] [client 80.225.138.214] PHP Notice: Undefined index: mail_sent_to in /home/sites/chalfontgifts.co.uk/public_html/shop/admin/pdfmail.php on line 18, referer: http://www.
******.co.uk/shop/admin/orders.php

30 Mar 2009, 8:53 AM
#31
pcspot avatar

pcspot

New Zenner

Join Date:
Aug 2007
Posts:
31
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

Hello,
Was looking for a module like this - thank you very much -however can;t seem to install it right with latest version.

when clicking on the 'email PDF' icon I get the following error:
Warning: require_once(/home/XXX/public_html/admin/dompdf/include/navigationhistory.cls.php) [function.require-once]: failed to open stream: No such file or directory in /home/XXX/public_html/admin/dompdf/dompdf_config.inc.php on line 194

Fatal error: require_once() [function.require]: Failed opening required '/home/XXX/public_html/admin/dompdf/include/navigationhistory.cls.php' (include_path='.:/usr/lib/php') in /home/XXX/public_html/admin/dompdf/dompdf_config.inc.php on line 194

Can't seem to find the navigationhistory.cls.php in the directory. shoudl it be there or is it some other problem?

thanks:wacko:

31 Mar 2009, 6:58 AM
#32
chalfontgifts avatar

chalfontgifts

Zen Follower

Join Date:
Jun 2007
Posts:
122
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

I have had this problem too. Not sure where to get this file from. Maybe the author can help.

31 Mar 2009, 12:21 PM
#33
hayden avatar

hayden

New Zenner

Join Date:
May 2008
Location:
South Australia
Posts:
86
Plugin Contributions:
1

Re: Invoice-to-PDF Mailer [support thread]

hi, sorry for delays, im busy and new to this too but i want to help out:

so around line 194 is the following functions:

/**
 * DOMPDF autoload function
 *
 * If you have an existing autoload function, add a call to this function
 * from your existing __autoload() implementation.
 *
 * @param string $class
 */
function DOMPDF_autoload($class) {
  $filename = mb_strtolower($class) . ".cls.php";
  require_once(DOMPDF_INC_DIR . "/$filename");
}

if ( !function_exists("__autoload") ) {
  /**
   * Default __autoload() function
   *
   * @param string $class
   */
  function __autoload($class) {
    DOMPDF_autoload($class);
  }
}

so it would seem like this "autoload" function is being called with $class parameter = navigationhistory, and thus it tries to function and include file as coded but not there. id say thats an incorrect value for $class... (easy)

why its being called like that im not sure, but it sounds like navigationhistory is some kind of zencart term. (which on googling it is)

ah youve got to love grep (wingrep for windows), you can thouroughly search the contents of folders of files for terms,

so i find mention of this autoload term in the faq of all places:

/invoice_pdf_mailer/admin/dompdf/www/faq.php

load it in your browser for the followign output:

I'm getting the following error:
Fatal error: DOMPDF_autoload() [function.require]: Failed opening required '/var/www/dompdf/include/domdocument.cls.php' (include_path='.:') in /var/www/dompdf/dompdf_config.inc.php on line 146

This error occurs when the version of PHP that you are using does not have the DOM extension enabled. You can check which extensions are enabled by examning the output of phpinfo().

There are a couple of ways that the DOM extension could have been disabled. DOM uses libxml, so if libxml is not present on your server then the DOM extension will not work. Alternatively, if PHP was compiled with the '--disable-dom' switch or the '--disable-xml' switch, DOM support will also be removed. You can check which switches were used to compile PHP with phpinfo().

see how you go now, good luck :frusty:

31 Mar 2009, 10:07 PM
#35
hayden avatar

hayden

New Zenner

Join Date:
May 2008
Location:
South Australia
Posts:
86
Plugin Contributions:
1

Re: Invoice-to-PDF Mailer [support thread]

thanks a bunch buddy , that looks swell , cheers for sharing that with us :D

31 Mar 2009, 10:09 PM
#36
hayden avatar

hayden

New Zenner

Join Date:
May 2008
Location:
South Australia
Posts:
86
Plugin Contributions:
1

Re: Invoice-to-PDF Mailer [support thread]

btw - you missed an f in flexible on your front page intro, it reads lexible instead ;)

2 Feb 2011, 3:07 PM
#37
oqix avatar

oqix

New Zenner

Join Date:
Sep 2009
Posts:
7
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

Hi is there solution for create pdf invoice and sent it to customer automatically after purchase. I am using zencart 1.3.9 and I have pdf invoice button in administration but I needed it to be automatically. Thanks.

2 Feb 2011, 9:46 PM
#38
hayden avatar

hayden

New Zenner

Join Date:
May 2008
Location:
South Australia
Posts:
86
Plugin Contributions:
1

Re: Invoice-to-PDF Mailer [support thread]

hugo13:

you can try this one :: http://demo.zen-cart.at/docs/rl_invoice3/index_en.html

youll have to look at modifying this one.

1 Jun 2011, 6:32 PM
#39
lockerroom avatar

lockerroom

New Zenner

Join Date:
Sep 2009
Posts:
35
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

I suppose there is no way to modify this so that the prices don't show up is there? I want to email a packing slip to my warehouse rather than the invoice.

17 Sep 2013, 9:10 AM
#40
gsmsalers avatar

gsmsalers

New Zenner

Join Date:
Feb 2009
Posts:
71
Plugin Contributions:
0

Re: Invoice-to-PDF Mailer [support thread]

Is there any plan for Zen 1.51 update for this PDF mod?