If you are using PrestaShop 1.3x
Modify following file
Modify file name:
Classes/Mail.php
Location 1:
at oringal line 50 , adding following one line (2nd line is existing)
$to_list->addBcc($configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME']);
$to_plugin = $to[0];
Location 2:
at original line 54, comment out existing lines and add following lines
//$to_plugin = $to;
//$to = new Swift_Address($to, $toName);
$to_list = new Swift_RecipientList();
$to_list->addTo($to, $toName);
$to_list->addBcc($configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME']);
$to_plugin = $to;
$to = $to_list;
If you are using PrestaShop 1.4x
it is very simple, you only need to create a override of Mail class
1. create a new file with name Mail.php at following location.
/override/classes/
2. copy following code and paste it into the new created file
<?php
class Mail extends MailCore
{
public static function Send($id_lang, $template, $subject, $templateVars, $to, $toName = NULL, $from = NULL, $fromName = NULL, $fileAttachment = NULL, $modeSMTP = NULL, $templatePath = _PS_MAIL_DIR_, $die = false)
{
//send to customer
$ret = parent::Send($id_lang, $template, $subject, $templateVars, $to, $toName, $from, $fromName, $fileAttachment, $modeSMTP, $templatePath, $die);
//send to Shop Owner
parent::Send($id_lang, $template, $subject, $templateVars, Configuration::get('PS_SHOP_EMAIL'), $toName, $from, $fromName, $fileAttachment, $modeSMTP, $templatePath, $die);
//return result
return $ret;
}
}
Now a ready-made file (PrestaSgop 1.4x only) are available to download from http://addons-modules.com/