Jump to content

Order complete email - Disable


Recommended Posts


I've seen that this has been posted before but I haven't really found a suitable answer. I want to disable CubeCart from sending an order complete email when I change the status of an order to complete.

I have tried deleting the order complete template, but that results in a 500 error when I go to set an order to complete, and the order stays on processing. I have also tried to keep the email template with the html content blank, but CubeCart will not allow me to save a blank template and keeps the content.

Otherwise all I can think of is leaving the order on processing, or putting up with sending an order complete email.


Also, as a quick aside, I feel as if my site is loading a little bit slowly on the product category pages where the items are listed. Is there any way to optimize this?

Everything else has been working quite smoothly otherwise and I have been really happy with CubeCart!

Link to comment
Share on other sites

Really, the only way to suppress sending Order Complete emails is to make this edit:

In the file /classes/order.class.php, near line 506 (for CC6.2.x), find:

$mailer->sendEmail($this->_order_summary['email'], $content);

Change to:

// $mailer->sendEmail($this->_order_summary['email'], $content);

What version of CubeCart are you using? If CC6.2.x, then make sure caching is enabled (admin, Store Settings, Advanced tab).

You tried deleting the template? How? What, exactly, did you delete? In admin, Error Log, System Error Log tab, what error is shown related to email templates?

Edited by bsmither
Link to comment
Share on other sites

I'm on version 6.1.15

Unfortunately there are no errors in the error log.

I deleted the English(UK) version of the order complete template, keeping the (US) language version. My site is set only for UK English.

Also, Caching is enabled.

If I make that edit to the php file, will I still be able to automatically send out other emails such as the order received email?

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.

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.

  • Create New...