doblerc Posted October 18, 2016 Share Posted October 18, 2016 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 More sharing options...
vekia Posted October 18, 2016 Share Posted October 18, 2016 you want to disable emails only for back office order creation process, or both for front + bo ? Link to comment Share on other sites More sharing options...
doblerc Posted October 18, 2016 Author Share Posted October 18, 2016 only for back office Link to comment Share on other sites More sharing options...
doblerc Posted October 19, 2016 Author Share Posted October 19, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now