更新有关事件 checkout_onepage_controller_success_action 的确认电子邮件

发布于 2024-10-23 13:51:19 字数 333 浏览 3 评论 0原文

我遇到了一个问题,我想知道您是否可以帮助我解决这个问题。

我需要在以下事件中更新我的确认电子邮件:checkout_onepage_controller_success_action,并仅在我的更新完成后才发送它。

问题是我没有找到代码中的确认电子邮件发送到哪里?它可能不是事件的观察者,不是吗?

也许你可以帮助我,因为我需要用一些重要信息更新这封电子邮件,这些信息是我在收到付款确认后才收到的。

无论如何,祝你周日愉快,也许你能帮助我,祝你

一切顺利对于您的不同项目,

Anselme

PS 我正在使用 magento 1.4.0.2

I’m facing an issue and i’m wondering if you could help me with it ..

I need to update my confirmation email on the following event: checkout_onepage_controller_success_action, and send it only after my updates are done inside it..

Problem is I don’t find where is sent the confirmation email in the code ? and it’s probably not an observer on an event no ?

Maybe you could help me with it because i need to update this email with some important Information that I only got after I have a payment confirmation ..

Anyway I wish you a nice sunday and maybe you will be able to help me,

All the best for your different projects,

Anselme

PS i'm using magento 1.4.0.2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

像极了他 2024-10-30 13:51:19

在类 Mage_Sales_Model_Order 内部,有一个函数 sendNewOrderEmail 可以触发订单的电子邮件。这是由结帐模型调用的(Mage_Checkout_Model_Type_Onepage,我安装的第 741 行)。根据您正在查找的信息类型,您可能无法保证该信息在框架想要发送电子邮件时可用。

如果是这种情况,您可以重写 sales_order 类并更改该函数的内容。您可以重写该函数来检查是否存在必要的数据,并仅在数据可用时才发送电子邮件,而不是立即发送电子邮件。如果数据不可用,您可能希望将其添加到某种作业队列中,以便可以定期检查是否有正确的信息并在必要时发送。

重写 sales_order 类本身的原因是框架中还有其他几个地方调用了 sendNewOrderEmail 函数,并且将其更改为 g

Inside of the class Mage_Sales_Model_Order, there is a function sendNewOrderEmail which fires the email for the order. This is called by the checkout model (Mage_Checkout_Model_Type_Onepage, line 741 on my install). Depending on what type of information you are looking for, you may not be able to guarantee that this information is available at the time that the framework wants to send the email.

If that is the case, you could override the sales_order class and change the contents of that function. Rather than sending the email immediately, you could override the function to check for the presence of the necessary data, and send it only if the data is available. If the data is not available, you would want to add it to some sort of job queue so that it could be periodically checked for the right information and sent when necessary.

The reason for overriding the sales_order class itself is that there are several other places in the framework where the sendNewOrderEmail function is called, and changing it g

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文