fix mail sending when no discount added
This commit is contained in:
parent
21ca232a11
commit
aefba6f752
@ -67,7 +67,7 @@ class AdminPrivateSaleMailDelay extends AdminTab {
|
||||
$contenu_mail = str_replace("%discount%", $discount->name , $contenu_mail);
|
||||
}
|
||||
|
||||
$customer = new Customer($discount->id_customer);
|
||||
$customer = new Customer($data->id_customer);
|
||||
$send = Mail::Send(
|
||||
$cookie->id_lang,
|
||||
'ps_delay',
|
||||
@ -83,10 +83,10 @@ class AdminPrivateSaleMailDelay extends AdminTab {
|
||||
NULL,
|
||||
dirname(__FILE__).'/mails/'
|
||||
);
|
||||
$send = true;
|
||||
//$send = true;
|
||||
|
||||
if(!$send){
|
||||
$mails_errors[] = $order->id;
|
||||
$mails_errors[] = $data->id;
|
||||
}
|
||||
|
||||
$mail++;
|
||||
|
Loading…
Reference in New Issue
Block a user