简体   繁体   English

Opencart3:如何实现 email 通知

[英]Opencart3: How is implemented email notifications

In Opencart 1.5.X email notifications for new order\customers\etc was implemented via catalog/model/checkout/order.php in confirm() method.在 Opencart 1.5.X email 中,新订单\客户\等的通知是通过目录/模型/结帐/订单实现的。php 在 confirm() 方法中。 But in OC3.X this code was completely rewrited and I can not find how this functionality is implemented in this version.但是在 OC3.X 中,这段代码被完全重写了,我找不到这个功能是如何在这个版本中实现的。

Your list of notifications implements in different places.您的通知列表在不同的地方实现。 Email notifications mostly implements in /catalog/controller/mail/ Email 通知主要在/catalog/controller/mail/中实现

There you can find affiliate , forgotten , order , register and transaction .在那里你可以找到附属忘记订购注册交易

Each controller related to one or more different models.每个 controller 涉及一个或多个不同的型号。 You can find a related models using search in these controller, looking for $this->model_ .您可以在这些 controller 中使用搜索找到相关型号,查找$this->model_

For example /catalog/controller/mail/order.php contains references mostly on /catalog/model/checkout/order.php ( $this->model_checkout_order ).例如/catalog/controller/mail/order.php包含主要在/catalog/model/checkout/order.php ( $this->model_checkout_order ) 上的引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM