PrestaShop邮件提醒模块设置

问题描述 投票:0回答:1

我有一个关于邮件提醒模块的问题。实际上,它向4个地址完美无缺地发送了关于订单的邮件,但这些地址中的每一个都看不到还有谁收到了邮件。我知道这听起来并不是什么大问题,因为你随时可以在后面的高级参数里面去看到PS发送的每一封邮件,但是,为了工作需要和加快工作进度,我们希望直接在邮件中看到这一点(比如,当你向多个地址发送邮件时,你可以在 "cc "字段中看到所有的地址)。有没有一种变通的方法来实现类似的结果?这将是非常棒的!

先谢谢你

prestashop
1个回答
0
投票

有没有这样的功能在Prestashop(或任何其他主要CMS电子商务平台,据我所知)。

你需要自定义编码(一个模块)来实现这个功能。


0
投票

在您的模块中 ps_emailalerts/ps_emailalerts.php 加进 Mail::Send 之后 $id_shop , $merchant_mails

例如在我的模块中第458行。

        Mail::Send(
            $mail_id_lang,
            'new_order',
            sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference),
            $template_vars,
            $merchant_mail,
            null,
            $configuration['PS_SHOP_EMAIL'],
            $configuration['PS_SHOP_NAME'],
            null,
            null,
            $dir_mail,
            null,
            $id_shop
        );

替换为

            Mail::Send(
                $mail_id_lang,
                'new_order',
                sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference),
                $template_vars,
                $merchant_mail,
                null,
                $configuration['PS_SHOP_EMAIL'],
                $configuration['PS_SHOP_NAME'],
                null,
                null,
                $dir_mail,
                null,
                $id_shop,
                $merchant_mails        
            );
© www.soinside.com 2019 - 2024. All rights reserved.