Jump to content

Cancelled Orders


vidmarc
 Share

Recommended Posts

I've just had a customer cancel an order. Luckily I checked the store and saw that it had been cancelled, but I didn't receive any sort of notification this had happened. Is there a way to get an email alert when an order is cancelled so I can refund the money quicker?

Link to comment
Share on other sites

We can make a small edit that will send an email to the admin(s) when an order goes to Failed and when an order goes to Cancelled. In /classes/order.class.php:

Near line 483 (in CC604), find:
if ($this->_email_enabled && isset($content)) {
  $mailer->sendEmail($this->_order_summary['email'], $content);
}

Change to:
if ($this->_email_enabled && isset($content)) {
 $mailer->sendEmail($this->_order_summary['email'].','.$this->_notifyAdmins(), $content);
}

The sendEmail() function accepts a comma delimited list of email addresses.

You might also want to read these conversations:

Customer able to cancel order?
Remove ability for customer to cancel order

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...