Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    56
    Plugin Contributions
    0

    Default Customize the Order Confirmation E-Mail?

    I would like to customize the order confirmation e-mail that gets sent out.

    I would like it to include the credit card TYPE (not number or anything like that), just the credit card type that was used in the e-mail that goes out to the store manager.

    It looks like this is the file --- /includes/classes/order.php

    but I can't quite decipher it.

    Again, it looks like I want to do something in this area:

    //addresses area: Billing
    $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
    EMAIL_SEPARATOR . "\n" .
    zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], 0, '', "\n") . "\n\n";
    $html_msg['ADDRESS_BILLING_TITLE'] = EMAIL_TEXT_BILLING_ADDRESS;
    $html_msg['ADDRESS_BILLING_DETAIL'] = zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, '', "<br />");

    if (is_object($GLOBALS[$_SESSION['payment']])) {
    $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
    EMAIL_SEPARATOR . "\n";
    $payment_class = $_SESSION['payment'];
    $email_order .= $GLOBALS[$payment_class]->title . "\n\n";
    if ($GLOBALS[$payment_class]->email_footer) {
    $email_order .= $GLOBALS[$payment_class]->email_footer . "\n\n";
    }
    } else {
    $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
    EMAIL_SEPARATOR . "\n";
    $email_order .= PAYMENT_METHOD_GV . "\n\n";
    }
    $html_msg['PAYMENT_METHOD_TITLE'] = EMAIL_TEXT_PAYMENT_METHOD;
    $html_msg['PAYMENT_METHOD_DETAIL'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->title : PAYMENT_METHOD_GV );
    $html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->email_footer : '');


    lines 910 - 932

    Any help? Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Customize the Order Confirmation E-Mail?

    Quote Originally Posted by ehdesign View Post
    I would like it to include the credit card TYPE (not number or anything like that), just the credit card type that was used in the e-mail that goes out to the store manager.
    v1.3.8 has this built-in.
    .

    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.

  3. #3
    Join Date
    Nov 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Customize the Order Confirmation E-Mail?

    I looked around - couldn't find it - where is it?

    Thansk

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Customize the Order Confirmation E-Mail?

    What version of Zen Cart are you using now?
    Which payment modules do you have enabled? Which one is your main one?
    What addons/contributions are installed?
    .

    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.

 

 

Similar Threads

  1. v150 How do I customize the order totals section of the order confirmation email?
    By brannon125 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Feb 2012, 10:30 AM
  2. Order Confirmation Email - How to Customize the format?
    By daffy in forum General Questions
    Replies: 2
    Last Post: 31 Dec 2008, 01:10 AM
  3. How do I change the first line of the Order Confirmation e-mail?
    By tkelley66 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Sep 2008, 08:02 PM
  4. Adding a link in the order confirmation e-mail?
    By cikk in forum General Questions
    Replies: 0
    Last Post: 16 Aug 2008, 01:00 AM
  5. Order Confirmation Mail : how to customize a little'
    By jack82 in forum General Questions
    Replies: 14
    Last Post: 3 Oct 2007, 06:58 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