自定义的SenderBuilder功能不起作用

时间:2020-01-02 13:08:46

标签: php magento2.3.3

方案是在发票部分调用发送电子邮件的功能时,需要使用现有的Magento SenderBuilding功能覆盖我的功能。

我制作了我的模块,并将以下内容写在di.xml文件中:

<preference for="\Magento\Sales\Model\Order\Email\SenderBuilder" type="Vendor\ModuleName\Model\SenderBuilder"/>

不过,下订单和结帐(InvoiceSender.php)后,我仍然无法覆盖页面。我写的功能是将pdf附加到发票电子邮件中。

任何人都可以请教。

谢谢。

0 个答案:

没有答案