Results 1 to 10 of 40

Hybrid View

  1. #1
    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

  2. #2
    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

 

 

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