的Prestashop 1.6.1.13和TrustPilot SFA 2.0服务

问题描述:

我跟着帮助指导他们的BT指南是基于发送订单确认trustpilot的SFA融入的Prestashop。 当订单确认发送的trustpilot役收到密件抄送电子邮件,并添加到发送队列的电子邮件,要求进行审查。 这个问题可能是:的Prestashop 1.6.1.13和TrustPilot SFA 2.0服务

1)顺序进行,但未能付款>邮寄反正 2)的顺序进行,并祈祷,确定,但客户想删除订单>电子邮件已经发送

因此,解决办法是发送密件抄送电子邮件,当达到发货状态时。 当发货状态由后台操作员手动更改时,客户将收到发货的模板电子邮件。

我不是压倒一切的Prestashop的专家和编程等等II试图使覆盖到mail.php类像这样的:

<?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; 
} 
?> 

我不知道这是否是正确的,但在此之前创建一个混乱我想任何帮助:)

谢谢

我thsi工作液结束。 我在这里发布的代码,所以如果有人需要这样的工作:

<?php 
/* 
MODIFIED VERSION TO SUPPORT TRUSTPILOT SEND ON SHIPPED STATUS CHANGE 
*/ 

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) 
    { 

     if($template == 'shipped') { $bcc = array('[email protected]'); } 

     return 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); 

    } 

} 

现在我只有一个问题:don0't有{}邮件占位符shipped.html。如何覆盖AdminOrdersController.php让我允许在邮件模板中添加新的邮件占位符?