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.
- Open the file app/design/frontend/default/your_theme/template/payment/info/cc.phtml
- 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())) ?> - 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())) ?>–> - Save the file.
How to Remove Credit Card Information From Sales Email in Magento
Reviewed by Web Technology Funda
on
2:59:00 AM
Rating:
No comments