Jun 22, 2010

How to Remove Credit Card Information From Sales Email in Magento

In a stock implementation of Magento, when sales emails are sent out, the credit card expiration date and last four are included.
  1. Open the file app/design/frontend/default/your_theme/template/payment/info/cc.phtml
  2. Find the lines that read: __(’Credit Card Number: xxxx-%s’, $this->htmlEscape($this->getInfo()->getCcLast4())) ?>
    __(’Expiration Date: %s/%s’, $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>
  3. Comment this code out, so it looks like this:__(’Credit Card Number: xxxx-%s’, $this->htmlEscape($this->getInfo()->getCcLast4())) ?>
    __(’Expiration Date: %s/%s’, $this->htmlEscape($this->getCcExpMonth()), $this->htmlEscape($this->getInfo()->getCcExpYear())) ?>–>
  4. Save the file.

No comments:

Post a Comment