更新有关事件 checkout_onepage_controller_success_action 的确认电子邮件
我遇到了一个问题,我想知道您是否可以帮助我解决这个问题。
我需要在以下事件中更新我的确认电子邮件: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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在类
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 functionsendNewOrderEmail
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