Jump to content
Sign in to follow this  

Disable the email to customer on order completion

Recommended Posts

Hi All, 

As above, is this possible?

I read that slashing out this line "$mailer->sendEmail($this->_order_summary['email'], $content);" in order.class.php will do it however this doesn't seem to work.

Unless i'm doing this in the wrong place? The section I found it in was " Compose the Order Confirmation email to the customer"

Is this the correct one?



Share this post

Link to post
Share on other sites

You will be wanting to make a change at the following location:

In /classes/order.class.php, find the public function orderStatus().

Scroll to the section of:

case self::ORDER_COMPLETE:

About ten lines later, find:

/* no need to send this email for digital only orders */
if (!$this->_skip_order_complete_email && $this->_email_enabled && ($content = $mailer->loadContent('cart.order_complete', $order_summary['lang'])) !== false) {

This three part test includes whether there exists, and fetches, an email template to populate and send to the customer. What we will do is force this test to false. So, change this line to:

if (false && !$this->_skip_order_complete_email && $this->_email_enabled && ($content = $mailer->loadContent('cart.order_complete', $order_summary['lang'])) !== false) {


Share this post

Link to post
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.

Sign in to follow this  

  • Create New...