Results 1 to 10 of 40

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    29
    Plugin Contributions
    0

    Default Re: Invoice to PDF Mailer [support thread]

    I get 2 errors when using this addon:

    1. Where is FILENAME_ORDER_EDIT defined? I cannot find it anywhere.

    2. When I click 'Email PDF' button, received this error: Parse error: syntax error, unexpected T_NEW in /home/username/public_html/admin/dompdf/include/functions.inc.php on line 240
    My showcase/gallery using Zen Cart - Summerdew

  2. #2
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Default Re: Invoice to PDF Mailer [support thread]

    Quote Originally Posted by battra View Post
    I get 2 errors when using this addon:

    1. Where is FILENAME_ORDER_EDIT defined? I cannot find it anywhere.

    2. When I click 'Email PDF' button, received this error: Parse error: syntax error, unexpected T_NEW in /home/username/public_html/admin/dompdf/include/functions.inc.php on line 240
    ok , im sorry , i had editable orders addon installed first ...

    "
    NAME:

    =====

    Edit Orders



    VERSION:

    ========

    1.53 - 8/1/2008 - 1.5, 1.51, 1.52, and 1.53 Changes by Scott Turner
    "

    if u dont have this installed it should just be this:



    if (sizeof($order->products) > 0) {
    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
    }
    break;
    }


    ########
    you want it to look like this:
    ########




    if (sizeof($order->products) > 0) {

    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>&nbsp;&nbsp;<a href="pdfmail.php?oID=' . $oInfo->orders_id . '&email=' . $order->customer['email_address'] . '">' . zen_image_button('button_pdf.gif', 'Email PDF') . '</a>'');

    }

    break;

    }



    ---------



    try that instead

  3. #3
    Join Date
    May 2007
    Posts
    29
    Plugin Contributions
    0

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

    Thanks! How about the parse error?
    My showcase/gallery using Zen Cart - Summerdew

  4. #4
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Default Re: Invoice to PDF Mailer [support thread]

    Quote Originally Posted by battra View Post

    2. When I click 'Email PDF' button, received this error: Parse error: syntax error, unexpected T_NEW in /home/username/public_html/admin/dompdf/include/functions.inc.php on line 240
    its hard to tell, as all the code in that dompdf file should be original and touched bar the config file... u could try re-uploading it , or getting it from src again, but it may be something else maybe server or invoice.php related...

    i even checked out line 240 and traced it back a bit , to function called dec2roman, but no clues to why ur getting the error,
    240:
    Code:
     throw new DOMPDF_Exception("dec2roman() requires a numeric argument.");
    theres what looks like something similiar being written about here:
    http://www.mail-archive.com/php-gene...msg188994.html

    Has anybody out there actually gotten this to work ??
    (i imagine so.. but cant be sure)



    sorry im not much help, but its a bit over my head right now...

  5. #5
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

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

    * converts decimal numbers to roman numerals

    why this is even being called i have no idea, maybe u have some ... characters.. ??

  6. #6
    Join Date
    May 2007
    Posts
    29
    Plugin Contributions
    0

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

    Ok, I found that dompdf requires PHP5. Now I have PHP5 running but received another error "Page Load Error":

    Content Encoding Error
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

    This is the same error posted by lumpylumpy on page 1 of this thread. Any solution to that? Can;t find anything on Google
    My showcase/gallery using Zen Cart - Summerdew

  7. #7
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

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

    Quote Originally Posted by battra View Post
    Ok, I found that dompdf requires PHP5. Now I have PHP5 running but received another error "Page Load Error":

    Content Encoding Error
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

    This is the same error posted by lumpylumpy on page 1 of this thread. Any solution to that? Can;t find anything on Google
    Battra

    try clearing your browser cache and cookies and let me know if that changes anything,

    Hayden.

  8. #8
    Join Date
    May 2007
    Posts
    29
    Plugin Contributions
    0

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

    Nope, still getting the same error after clearing the cache.
    My showcase/gallery using Zen Cart - Summerdew

  9. #9
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

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

    I just installed this module and the button is showing up. although when i click on email pdf i get a internet explorer can not display this page.. I checked the invoices folder on the server and the pdf has been created but it has not been emailed....

    Anyone have a solution?

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. v150 Product Images on Invoice, Email, etc [Support Thread]
    By jackie.taferner in forum All Other Contributions/Addons
    Replies: 29
    Last Post: 26 Aug 2022, 05:52 AM
  3. pdf Invoice 3
    By torvista in forum All Other Contributions/Addons
    Replies: 38
    Last Post: 11 Nov 2013, 05:26 PM
  4. PDF Invoice Trend
    By ryanb4614 in forum General Questions
    Replies: 1
    Last Post: 19 Feb 2010, 12:10 AM
  5. pdf mailer?
    By louisapple in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 14 May 2009, 04:31 AM

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