On OC 2.3.0.2 when a new order is completed by the customer, most of the time the confirmation email is not sent and I can see in the order menu "Notified customer > No". This does not happen 100% of the time. More like 80% of the time and I have not figured out the pattern. Please note that the rest of the emails are sent normally.
I tried to look in the error log and found 3 'errors'/PHP Notice the time the order was made:
Code: Select all
PHP Notice: Undefined index: fax in /catalog/controller/checkout/guest.php on line 273
PHP Notice: Undefined index: address_2 in /catalog/controller/checkout/guest.php on line 285
PHP Notice: Undefined index: address_2 in /catalog/controller/checkout/guest.php on line 336
Code: Select all
//line 273 had:
$this->session->data['guest']['fax'] = $this->request->post['fax'];
//replaced 273 with:
if($this->request->post['address_2']==NULL || !isset($this->request->post['address_2'])){
$this->session->data['payment_address']['address_2'] = "";
}else{
$this->session->data['payment_address']['address_2'] = $this->request->post['address_2'];
}
//line 285 had:
$this->session->data['payment_address']['address_2'] = $this->request->post['address_2'];
//replaced 285 with:
if($this->request->post['address_2']==NULL || !isset($this->request->post['address_2'])){
$this->session->data['payment_address']['address_2'] = "";
}else{
$this->session->data['payment_address']['address_2'] = $this->request->post['address_2'];
}
//line 336 had:
$this->session->data['shipping_address']['address_2'] = $this->request->post['address_2'];
//replaced 336 with:
if($this->request->post['address_2']==NULL || !isset($this->request->post['address_2'])){
this->session->data['shipping_address']['address_2'] = "";
}else{
$this->session->data['shipping_address']['address_2'] = $this->request->post['address_2'];
}
My firsth thought is to make an order.log where on each line is the exact date and time with the order id. That way I can gather data through the error log to see what is wrong.
Can somebody help me with the emails or the order log? Should I be looking something else?