sem1986 Posted March 31, 2017 Share Posted March 31, 2017 (edited) Hello, everybody. I use Prestashop 1.6.1.4. And I need automatic send email to my trustpilot.com account with customer data, when order is delivered. Now it is sending mail via mailalerts module when new order. Maybe somebody knows how to do this, or maybe for that exist some module. Thanks Edited March 31, 2017 by asdasd1234 (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted March 31, 2017 Share Posted March 31, 2017 Clarify... you want the automatic email when you SHIP the item (aka you changed the order status to Shipped), or when the item is DELIVERED to the recipient? Link to comment Share on other sites More sharing options...
sem1986 Posted March 31, 2017 Author Share Posted March 31, 2017 I need this email when delivered.I can enable in backend sending email for the customer when the status of order changed in "Delivered". And I hope that there is the way to send this email not only the customer but in my Trustpilot account, or send it instead of the customer to Trustpilot account.My main task it is notified trustpilit.com when the order is delivered. And that notification I need to send with customer data.Here is how it works by default - https://support.trustpilot.com/hc/en-us/articles/203391983-Automatic-Feedback-Service-Implementation-Guide-Prestashop Link to comment Share on other sites More sharing options...
bellini13 Posted April 1, 2017 Share Posted April 1, 2017 And how do you know when it is delivered? Or more important, how will your Prestashop store know it was delivered so that it could send an email. Do you have some module installed that will send automated emails to TrustPilot? There is nothing in the core of Prestashop that is going to do this for you... Link to comment Share on other sites More sharing options...
ANGELO Vintage Posted June 22, 2017 Share Posted June 22, 2017 he want simply send the shipped template when on backoffice he change status not only to the customer but alo in BCC to the trustiplot automatic invite service. Is something i try to accomplish me too but i don't know how to hook the mail.php adding a BCC email only if template is "shipped" Link to comment Share on other sites More sharing options...
bellini13 Posted June 22, 2017 Share Posted June 22, 2017 So the right thing would be to create a module that listens for order status changes, and then react to the change by sending the shipped email directly to trustiplot. Prestashop will already have sent the shipped email to the customer. The alternative is to change the core classes of Prestashop so that when the order status changes, and the order status is 'shipped', that it adds the trustiplot email to bcc. PS v1.6.1.4 already supports BCC on emails, so you should not need to change mail.php at all. Depending on the above approach, which determine which classes need to change or be created. If you are not familiar with PHP coding, then you likely would need to hire someone to do this for you Link to comment Share on other sites More sharing options...
ANGELO Vintage Posted June 22, 2017 Share Posted June 22, 2017 So the right thing would be to create a module that listens for order status changes, and then react to the change by sending the shipped email directly to trustiplot. Prestashop will already have sent the shipped email to the customer. The alternative is to change the core classes of Prestashop so that when the order status changes, and the order status is 'shipped', that it adds the trustiplot email to bcc. PS v1.6.1.4 already supports BCC on emails, so you should not need to change mail.php at all. Depending on the above approach, which determine which classes need to change or be created. If you are not familiar with PHP coding, then you likely would need to hire someone to do this for you creating an override of mail.php like thhis could work? <?php class Mail extends MailCore { public static function Send($id_lang, $template, $subject, $template_vars, $to, $to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null, $bcc = null, $reply_to = null) { // add trustpilot SFA 2.0 if($template == 'shipped') { $bcc->addBcc('*********@invite.trustpilot.com'); } // send to customer $ret = parent::Send($id_lang, $template, $subject, $template_vars, $to, $to_name, $from, $from_name, $file_attachment, $mode_smtp, $template_path, $die, $id_shop, $bcc, $reply_to); return $ret; } ?> Link to comment Share on other sites More sharing options...
bellini13 Posted June 23, 2017 Share Posted June 23, 2017 yup, I forgot about the template variable, that should do the trick. Link to comment Share on other sites More sharing options...
ANGELO Vintage Posted June 23, 2017 Share Posted June 23, 2017 seems i've made a mistake somewhere in the code it give me error 500 Link to comment Share on other sites More sharing options...
bellini13 Posted June 24, 2017 Share Posted June 24, 2017 i replied to your other topic. there is no reason to have multiple discussions on the same issue 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