Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Modifying Admin Order Confirmation Email

    Which PayPal module are you using, and why?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Modifying Admin Order Confirmation Email

    PayPal IPN - Website Payments Standard

  3. #13
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Modifying Admin Order Confirmation Email

    If you were to use the more contemporary PayPal Express Checkout module instead of the older Website Payments Standard, you would already be getting the Transaction ID number in your admin emails, since at least v1.3.9a anyway.
    The first line of the admin-copy of the email will show it, like this:
    TransID: 2G49759770491990A

    Order Confirmation from [Store name here]

    [Customer name here]

    Thanks for shopping with us today!
    The following are the details of your order.
    ------------------------------------------------------
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Modifying Admin Order Confirmation Email

    Or, if you insist on using the less reliable Website Payments Standard module, you'd have to hack in the following to make the same thing happen with it:
    Again, this is based on v1.3.9h:

    /ipn_main_handler.php
    line 352, add the new line as highlighted here:
    Code:
            $_SESSION['order_number_created'] = $insert_id;
            $GLOBALS[$_SESSION['payment']]->transaction_id = $_POST['txn_id'];
    and
    /includes/modules/payment/paypal.php
    line 596, add the new highlighted line as shown:
    Code:
        $PDTstatus = ($pdtTXN_is_unique && $PDTstatus);
        if ($PDTstatus == TRUE) $this->transaction_id = $this->pdtData['txn_id'];
        return $PDTstatus;
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Modifying Admin Order Confirmation Email

    Well, Im running 1.38, and my ipn_main_handler.php file doesnt even have 352 lines in it, let alone the line..

    $_SESSION['order_number_created'] = $insert_id;

  6. #16
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Modifying Admin Order Confirmation Email

    Notwithstanding that I firmly believe you should be upgrading ASAP, try putting that line after this one instead:
    Code:
        $order->create_add_products($insert_id, 2);
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #17
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Modifying Admin Order Confirmation Email

    Perfect, thanks for your help

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Admin order confirmation email based on shipping cost
    By jmsnyder23 in forum Managing Customers and Orders
    Replies: 9
    Last Post: 2 Jan 2015, 02:35 AM
  2. Reply to Admin Email Order Confirmation
    By wakenine in forum General Questions
    Replies: 3
    Last Post: 15 Nov 2010, 11:37 PM
  3. Admin Email copy of order confirmation
    By Tech NO Babble in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Aug 2010, 01:13 PM
  4. No order confirmation email to admin
    By deviouscow in forum Managing Customers and Orders
    Replies: 4
    Last Post: 24 Jun 2010, 01:00 AM
  5. Did not recieve Order Confirmation email and no order exists in admin
    By gws76 in forum Managing Customers and Orders
    Replies: 4
    Last Post: 19 May 2008, 12:44 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