Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default order confirmation email problem

    When my order confirmation e-mail is sent out to me the admin it is missing a key code that I would like to see. It is the Pyament Method.

    Acutally Payment Method shows in the e-mail but it does not say: Paypal or Pay at Event (walk in module) on the e-mail. I must be missing some code. Anyone know how I can add this code back to my e-mail_template_checkout (which is sending this e-mail out)?

  2. #2
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: order confirmation email problem

    I am sorry I am trying to modify the e-mail that is sent to admin (not the e-mail sent to the customer). How can I add the payment type onto the e-mails sent to admin (order confirmation)?

  3. #3
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: order confirmation email problem

    This is what happened. I installed several different add-ons like: Fast and Easy Checkout which changed the order.php.

    There was some php coding on the orders.php (a couple lines) that I most likely removed during set up (at the time I didn't want the Payment Method in the orders confirmation e-mail). This coding puts adds the Payment Method to the notificaiton e-mails that the admin gets, and tells wether they paid via Paypal or will pay at event (pay at store).

    Can anyone please give me the code to add back to my orders.php that will add the Payment Method (type of payment) to my order confirmation e-mails?

    This was in the original orders.php but I don't know which code it was. This is very important as my client wants to see how his visitors paid, in the e-mail instead of logging into the store (because it saves him lots of time this way).

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

    Default Re: order confirmation email problem

    Go to www.zen-cart.com and in the top right of the page is the download link where you can get the original Zen Cart files. Get the version which matches the version you're using on your site. Unzip it, and you'll have access to the original version of the file you're asking about. You can use that to put the original working code back on your site.
    .

    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. #5
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: order confirmation email problem

    OK. I am starting to think it has nothing to do with the admin/orders.php.

    I downloaded the the new version of zen cart (full file set) and am comparing to my current files using beyond compare (a file comparing utility).

    In my e-mail folder there is an e-mails_template_checkout.html and I compared the new e-mail template with my current template. I noticed that this was missing and added it:
    Code:
    <tr>
            <td class="content-line-title"><strong>$PAYMENT_METHOD_TITLE</strong></td>
          </tr>
          <tr>
            <td class="payment-detail">$PAYMENT_METHOD_DETAIL</td>
          </tr>
      $PAYMENT_METHOD_FOOTER</td>
          </tr>
    During testing the e-mail now has in bold lettering: Payment Method (which is brought by the $PAYMENT_METHOD_TITLE above). But the line that should say what type of payment is blank. That is the: $PAYMENT_METHOD_DETAIL

    So the e-mail is defined, and I now know I need make sure the $PAYMENT_METHOD_DETAIL shows. It does not. I entered this into the Developers toolkit and found this:
    Code:
    Searching 41 files ... for: PAYMENT_METHOD_DETAIL 
     
    /MYFOLDERSTRUCTURE/includes/classes/order.php 
    Line #947 : $html_msg['PAYMENT_METHOD_DETAIL'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->title : PAYMENT_METHOD_GV );
    This orders.php file is not in the admin folder like I thought before. So I file compared these. And both the new and old files have this coding above.

    There is no $PAYMENT_METHOD_DETAIL in the admin/orders.php (brand new file or my current one).

    Comparing both order e-mails, admin/order.php and includes/classes/orders.php I cannot find anything missing that is related to $PAYMENT_METHOD_DETAIL

    Seems to me that the $PAYMENT_METHOD_DETAIL should not be drawing a blank in the notification e-mail. Especially since the: $PAYMENT_METHOD_TITLE shows just fine.

    Any ideas as to what to check next?

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

    Default Re: order confirmation email problem

    If the payment module itself has been altered to return a blank title or description, then that's what will show on the email too. ie: its language files
    .

    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. #7
    Join Date
    Apr 2007
    Location
    Dayton, Ohio
    Posts
    682
    Plugin Contributions
    0

    Default Re: order confirmation email problem

    That is what I was thinking last night. There were some cases in the language files that I removd the text all together. That is I left the definition but removed all text in between the single quotes. Basically it just hid the text. This is an example:
    Code:
    define('TEST_TEXT, '');
    I have two payment modules enabled: Paypal Website Payment Standard and Check/Money Order. In testing I am selecting the Check/Money Order option during checkout and then completing order. This shows the blank in the e-mail so it could only be the Check/Money order that is causing this problem.

    I don't think I modified that module other than the language file. This is what I found: During checkout the confirmation page has two options show (Paypal or Check/Money Order) and you can check each box. The Check/Money order language file has been modified to say: "Pay at Event" during checkout.

    That language file was found here: MYFOLDERLOCATION/includes/languages/english/modules/payment/MYTEMPLATE/moneyorder.php and this is what is says now:
    Code:
      define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Pay at Event');
      define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Please bring your payment when attending the event so that we can collect at the door. You can make payment to: Apics Dayton Chapter');
      define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', 'Please bring your payment when attending the event so that we can collect at the door. You can make payment to: Apics Dayton Chapter');
    This was the original code:
    Code:
      define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Check/Money Order');
      define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Please make your check or money order payable to:<br />' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br /><br />Mail your payment to:<br />' . nl2br(STORE_NAME_ADDRESS) . '<br /><br />' . 'Your order will not ship until we receive payment.');
      define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Please make your check or money order payable to:" . "\n\n" . MODULE_PAYMENT_MONEYORDER_PAYTO . "\n\nMail your payment to:\n" . STORE_NAME_ADDRESS . "\n\n" . 'Your order will not ship until we receive payment.');
    I don't see how this would break the process. I also typed: Pay at Event into the Developers toolkit and this is the only file that shows this.

    I looked at the main english file and did not see any important misses or related to this. I don't know where to look or type into the Developers toolkit to find this coding that needs modified. Anywhere specific I might be able to look for this problem?

 

 

Similar Threads

  1. v150 Order confirmation to third party email - PROBLEM
    By MelodyW in forum Managing Customers and Orders
    Replies: 3
    Last Post: 23 Apr 2013, 03:11 PM
  2. welcome email problem and order confirmation email problems
    By oneelios in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2010, 11:18 AM
  3. Order confirmation email problem
    By hzha in forum General Questions
    Replies: 8
    Last Post: 1 Jan 2008, 10:36 AM
  4. Email order confirmation total problem
    By gapi78 in forum General Questions
    Replies: 6
    Last Post: 22 Nov 2007, 09:05 AM
  5. problem email confirmation order
    By peppecol in forum General Questions
    Replies: 2
    Last Post: 9 Sep 2007, 11:18 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