akasht94 Posted January 27, 2017 Share Posted January 27, 2017 I want to use mail::send() for sending the notification to admin when order is placed in prestashop.My mail are working for customers but i want to send a mail to shop admin too regarding order placement.And one more thing i dont want to use any seperate plugin for this,I have my payment module in which at the end order status is changed after placing a order.So, I just need to use Mail::send() in that file in order to send notification. Mail::Send((int)$order->id_lang,'order_conf',Mail::l('Order confirmation', (int)$order->id_lang),$data,$this->context->customer->email,$this->context->customer->firstname.' '.$this->context->customer->lastname,null,null,$file_attachement,null, _PS_MAIL_DIR_, false, (int)$order->id_shop ); something like this need to implement but this is not working directly. All suggestions are welcome. Thanks in advance. Link to comment Share on other sites More sharing options...
bellini13 Posted January 27, 2017 Share Posted January 27, 2017 wouldn't it be easier to to just use the mail alerts module Link to comment Share on other sites More sharing options...
akasht94 Posted January 27, 2017 Author Share Posted January 27, 2017 No actually that was a payment module on which i want to use this functionality instead of adding dependency on other module. Link to comment Share on other sites More sharing options...
bellini13 Posted January 28, 2017 Share Posted January 28, 2017 sorry, but that makes no sense. that would mean for each payment module you use/develop, you would have to add this logic. just enable mailalerts module and it will take care of this for you. 1 Link to comment Share on other sites More sharing options...
akasht94 Posted February 1, 2017 Author Share Posted February 1, 2017 (edited) Thanks for your suggestion but I found how to implement my idea in my module without making my module dependent on any other module like mail alert. Edited February 1, 2017 by akasht94 (see edit history) Link to comment Share on other sites More sharing options...
Rémi Posted December 19, 2017 Share Posted December 19, 2017 I'm curious to have the solution. Mailalerts send me a confirmation , but, a rather have the more complete client commande, with prices witout taxes and taxes on a separate line etc.... 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