Jump to content

avoid "order confirmation" email by back office


doblerc

Recommended Posts

Hi, I have installed PS version 1.6.1.3 and I need to know how I can create a order from the back office and the shop don't send the "order confirmation" email .

 

I have select "return" in order status, for avoid sending mail by the state, but the "order confirmation" email is automatically sent.

 

There is a configuration, plugin, or codification for avoid this?

 

thank in advance.

Link to comment
Share on other sites

ok, I solved it by coding... the file /classes/PaymentModule.php has the send of the "order confirmation" email... I created a new order status called for example "Return", and in the line 778 of PaymentModule I put this:

 

if ((int)$order->current_state <> STATUS_ID) {

   Mail::Send(

   .....

   );

}

 

STATUS_ID is the id of the new status I have created.

 

 

Whith this implementation, when you create a new order in the back office and select "Return" as the status order, the order confirmation" email will not send , this don't affect to the front office orders or back offices orders with different status.

 

If anyone knows another way, plugin or something better....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...