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.
How to Remove Credit Card Information From Sales Email in Magento How to Remove Credit Card Information From Sales Email in Magento Reviewed by Web Technology Funda on 2:59:00 AM Rating: 5

No comments

Free! Free!Free! Subscribe to Get Free PHP (Magento) tutorial Update in Your Inbox!!! Hurry Up!!!