Results 1 to 5 of 5
  1. #1
    Join Date
    May 2004
    Location
    Sachse, Texas
    Posts
    113
    Plugin Contributions
    0

    Default Order Confirmation Email- Remove CC

    Howdy Folks! I haven't been around these parts for a while :)

    Not sure if it's the lack of caffeine or just me being dense, but I cannot figure out how to remove the credit card number from appearing on order confirmation emails.

    The middle numbers are xxxx'd out of course, but I would like to remove it completely.

    I have accomplished removing it from the email template, but it still shows on text emails that are sent out.

    Please help, or please send coffee!

    Thanks! Have a great day!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Order Confirmation Email- Remove CC

    And you don't want his because ...

    As a consumer I do like to know which piece of plastic I used for which thing I bought so I can track the charges and refunds if needed.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Sep 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Order Confirmation Email- Remove CC

    I am also looking to remove the credit card info from customer e-mail confirmation. I need to do it for some type of compliance as I was told we can't show more than 5 digits of a customer's credit card at any given time. I'd just like to remove it entirely, however I am not sure what file it is in.

  4. #4
    Join Date
    Sep 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Order Confirmation Email- Remove CC

    Nevermind. I was able to find it. It's in orders.php
    Search for the function "send_order_email"

    Comment out this section:

    if (is_object($GLOBALS[$_SESSION['payment']])) {
    $cc_num_display = (isset($this->info['cc_number']) && $this->info['cc_number'] != '') ? substr($this->info['cc_number'], 0, 4) . str_repeat('X', (strlen($this->info['cc_number']) - 8)) . substr($this->info['cc_number'], -4) . "\n\n" : '';
    $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
    EMAIL_SEPARATOR . "\n";
    $payment_class = $_SESSION['payment'];
    $email_order .= $GLOBALS[$payment_class]->title . "\n\n";
    $email_order .= (isset($this->info['cc_type']) && $this->info['cc_type'] != '') ? $this->info['cc_type'] . ' ' . $cc_num_display . "\n\n" : '';
    $email_order .= ($GLOBALS[$payment_class]->email_footer) ? $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 != '') ? nl2br($GLOBALS[$payment_class]->email_footer) : (isset($this->info['cc_type']) && $this->info['cc_type'] != '' ? $this->info['cc_type'] . ' ' . $cc_num_display . "\n\n" : '');

  5. #5

    Default Re: Order Confirmation Email- Remove CC

    I also wanted to change the numbers provided in the confirmation email, but I didn't want to delete the entire command. If you take the first portion of the code mentioned in the previous post:
    if (is_object($GLOBALS[$_SESSION['payment']])) {
    $cc_num_display = (isset($this->info['cc_number']) && $this->info['cc_number'] != '') ? substr($this->info['cc_number'], 0, 4) . str_repeat('X', (strlen($this->info['cc_number']) - 8)) . substr($this->info['cc_number'], -4) . "\n\n" : '';
    And replace it with this:
    if (is_object($GLOBALS[$_SESSION['payment']])) {
    $cc_num_display = (isset($this->info['cc_number']) && $this->info['cc_number'] != '') ? str_repeat('X', (strlen($this->info['cc_number']) - 4)) . substr($this->info['cc_number'], -4) . "\n\n" : '';
    You'll end up with the following in your confirmation email:
    XXXXXXXXXXXX1111
    You can find the code in includes > classes > order.php. The code in question is near the end. Use the admin tool box to find the appropriate lines. I tested this out several times using 1.3.8a, and it's worked well so far. I prefer this method since you at least get the last four digits, but you hide the first four.

 

 

Similar Threads

  1. v139f Remove IP addresses from Order Confirmation Email
    By vdivito in forum Managing Customers and Orders
    Replies: 2
    Last Post: 11 Jul 2016, 02:44 PM
  2. v150 How to remove unwanted detail in Order Confirmation email?
    By Athens Collectibles in forum General Questions
    Replies: 4
    Last Post: 26 May 2012, 08:10 PM
  3. v150 Remove "Office Use" section from Admin copy of Order Confirmation email
    By mkyle in forum Managing Customers and Orders
    Replies: 17
    Last Post: 19 May 2012, 11:05 PM
  4. Can I remove the line-breaks in order confirmation email?
    By idc1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Dec 2011, 03:19 AM
  5. How Do I Remove Extra Lines from Order Confirmation Email?
    By powrwrap in forum General Questions
    Replies: 7
    Last Post: 22 May 2011, 11:09 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR