Thread: pdf Invoice 3

Page 1 of 2 12 LastLast
Results 1 to 10 of 39

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default pdf Invoice 3

    Hi,
    I am trying out this module

    http://demo.zen-cart.at/docs/rl_invoice3/index_en.html

    to produce pdf invoices automatically, and have them available for download by the customer.

    I am surprised to not find any reference to this in the forum, is anyone using this module?

    I have a problem with it at the moment in that it creates pdfs on demand from the Admin but does not create them automatically when an order is made,

    regards
    Steve

  2. #2
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: pdf Invoice 3

    Hi Steve,

    Have you made any progress with this? I am trying this mod out, too, but have been having a few problems including the one you mentioned. I posted about another problem, have you experienced this, too? http://www.zen-cart.com/forum/showthread.php?t=134828

    Zen Cart and it's community are the best!!

  3. #3
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: pdf Invoice 3

    Hi,
    I pm'd the author but received no response, so I am documenting my findings/changes and will post this up as a contribution with minor changes when I am finished.

    I think we should make this the support thread for the module.

    Have you noticed that in admin-tools there is a new section for testing the module? It is not documented at all, I found it by accident!

    Your problem
    I just installed it and it works great apart from in the account order history page, when you click the link to download the pdf invoice it creates an alert box with the message:

    C:\DOCUME~1\Main\LOCALS~1\Temp\Y2YkldCz.pdf.part could not be saved, because the source file could not be read.

    This is from a live, remotely hosted test site.

    The pdf is being created properly, I can go to root/pdf and see the pdf file and download it with an ftp program and it is all correct, but for some reason trying to download it through a browser won't work. I have tried with FF 3.x and IE8 with the same (non)results. I did notice that the path was different in the different browsers, in FF it is:

    my_site.com/index.php?main_page=rl_invoice3&fn=75843_99ba4a0dfbdbf6c53ac2f9fd3c6db4af.pdf&or der=75843

    and in IE8 it is:

    my_site.com/index.php?main_page=rl_invoice3&zenid=6e49c0e4a47ad0f7438c283dc1105e24&fn=75843_ 99ba4a0dfbdbf6c53ac2f9fd3c6db4af.pdf&order=75843

    For some reason it puts the zenid in with the link in IE8. Could all of this have something to do with the problem?

    I would encourage folks to try this out, it looks like it has nice features, including a drag and drop template editor and ajax features.

    I don't know if what I have experienced are bugs or not. I tried this in a fresh 1.3.8a install with all patches and bug fixes applied to rule out my heavily modified 1.3.7.1 and it is the exact same problem. I followed the installation and configuration instructions. If I go to admin>customers>orders and then click on the pdf invoice button it will open a new tab with the correct pdf invoice but it uses this path:

    my_site.com/admin/rl_invoice3.php?oID=75843

    Any suggestions? I can't ask on the zen cart German forum since I don't speak German and can't even find a thread about this mod because of the language barrier.
    This may be the answer:
    in Zen-Cart Admin-Configuration-Attribute Settings

    for WINDOWS servers:
    a) "Download by Redirect" - MUST be set to FALSE
    b) Streaming - TRUE is better. See Zen Cart FAQ https://www.zen-cart.com/tutorials/i...hp?article=292

    for UNIX servers:
    a) "Download by Redirect" - Either setting should work

    If:
    "Download by Redirect" is set to TRUE

    then the directory
    /catalog/pub MUST have read/write permissions 777 or 755

    as the module creates a randomly-named folder from which the client downloads a copy of the pdf.


    regards
    Steve

  4. #4
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: pdf Invoice 3

    Quote Originally Posted by torvista View Post
    Hi,
    I pm'd the author but received no response, so I am documenting my findings/changes and will post this up as a contribution with minor changes when I am finished.

    I think we should make this the support thread for the module.

    Have you noticed that in admin-tools there is a new section for testing the module? It is not documented at all, I found it by accident!

    Your problem


    This may be the answer:
    in Zen-Cart Admin-Configuration-Attribute Settings

    for WINDOWS servers:
    a) "Download by Redirect" - MUST be set to FALSE
    b) Streaming - TRUE is better. See Zen Cart FAQ https://www.zen-cart.com/tutorials/i...hp?article=292

    for UNIX servers:
    a) "Download by Redirect" - Either setting should work

    If:
    "Download by Redirect" is set to TRUE

    then the directory
    /catalog/pub MUST have read/write permissions 777 or 755

    as the module creates a randomly-named folder from which the client downloads a copy of the pdf.


    regards
    Steve
    Hi Steve,

    That was it! I needed to set the permission for the pub directory to 777 and now it works as expected! Thank you!!!

    I noticed the template testing feature and the font testing. I like this mod, and I like the drag and drop template editing.

    I agree that the pdf should be created automatically upon ordering. And I have "send pdf invoice with order" set to 1 in admin>configuration>pdf invoice3 but no pdfs are sent with the order confirmation emails. Have you had any success getting this to work?

    I am trying this out alongside the pdf order center 1.2.1 to evaluate which one we would like to use. I like features from both but pdf invoice3 is much simpler, if I can get it to autogenerate and attach on order confirmation emails I think we will go with it.

    I will certainly do what I can to help support this mod, especially after I have gotten more familiar with it.

    Thanks again for your help!

    Zen Cart and it's community are the best!!

  5. #5
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: pdf Invoice 3

    Hi,
    glad to know you have fixed it. It took me hours to figure out what was happening!

    The only other "faults" I have found are

    1) /templates/tpl_account_history_info_default.php

    has two unencoded ampersands

    change:
    Code:
    $pa = zen_href_link('rl_invoice3', '', 'SSL') . '&fn=' . $v['fn'] . '&order=' . $_GET['order_id'];
    Code:
    to:
    $pa = zen_href_link('rl_invoice3', '', 'SSL') . '&fn=' . $v['fn'] . '&order=' . $_GET['order_id'];
    2) There is a hard-coded error message in rl_invoice3/header_php.php which should be replaced with a define:
    for example

    Code:
    if (!file_exists($pdfName)) die(RL_INVOICE3_FILE_MISSING . $downloads->fields['orders_products_filename'])
    add to catalog/includes/languages/english/extra_definitions/rl_invoice3.php

    Code:
    define('RL_INVOICE3_FILE_MISSING', 'ERROR - Unable to find file.<br />Please contact us directly to report this error.<br />Thank You<br /><c/f: ');
    I have not had time to investigate the auto-emailing function yet, but given the quality of this module I am sure it will be a configuration issue/user error!.

    regards
    Steve

  6. #6
    Join Date
    Nov 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: pdf Invoice 3

    Hi this mod sounds exactly what I am looking for i.e. to send pdf (or html) invoices automaticaly when a customer pays.
    Can anybody point me in the direction of the mod download please!!

    Thanks

  7. #7
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: pdf Invoice 3

    Hi,

    this mod is difficult to find since it disappeared from the link in my first post but it is in sourceforge if you look inside the file list for Zen Cart German:

    http://sourceforge.net/projects/zencart-german/files/

    and for german-speakers or those good at guessing like me, it is on a german forum, but you will have to register to download anything from here:

    http://www.zen-cart.at/zcvb/forum/do...d=8&linkid=149

    Note that the module is in english and german.

    There are other interesting modules on this forum that don't exist here, like Mega_Orders_1.3 which is a merge of 4 order editing modules (not tried it yet).

    regards
    Steve

  8. #8
    Join Date
    Oct 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: pdf Invoice 3

    has anyone got the auto-email function to work?

    EDIT: never mind that one. I think I figured that out.

    Had to change "send by orderstatus...." to 1
    Last edited by GezaazY; 30 Oct 2009 at 03:40 PM.

  9. #9
    Join Date
    Oct 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: pdf Invoice 3

    Does anyone know how to change the PDF file layout?

    I have changed the background already but I need to make lot of changes on the layout (move things aroung, add/remove things etc)

  10. #10
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: pdf Invoice 3

    Hi GezaazY,
    I cannot get the pdfs to be attached.

    Can you confirm what settings you are using in the admin?

    1) Send by orderstatus greater/equal than:
    the default is 3|100 but I don't understand what the |100 refers to.
    I assume you have this set to just "1" with no bar?

    2) Send pdf invoice with order
    obviously "1".

    Anything else to make it work?

    thanks
    Steve

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. PDF Invoice Trend
    By ryanb4614 in forum General Questions
    Replies: 1
    Last Post: 19 Feb 2010, 12:10 AM
  2. Mail the PDF Invoice
    By Vandana in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Sep 2009, 12:03 PM
  3. Send PDF invoice email
    By sagivle1 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Nov 2008, 03:16 AM
  4. Invoice :: FrontEnd & BackEnd :: PDF
    By webschnecke in forum General Questions
    Replies: 0
    Last Post: 6 Mar 2008, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg