简体   繁体   English

Magento Observer发送确认

[英]Magento Observer send confirmation

I'm stuck on my Magento observer. 我被困在我的Magento观察员身上。 I want to call an webservice after the order is real placed (so when the confirmation mail is sending). 我想在订单真实放置后调用web服务(所以当确认邮件发送时)。 What observer is hooked on the confirmation e-mail? 什么观察者被挂在确认电子邮件上?

*sales_order_place_after* is a little bit to soon (so there could be a payment failure) * sales_order_place_after *即将推出(因此可能会出现付款失败)

There are 2 main events occurring when customer place order in magento 当顾客在magento下订单时,会发生两件主要事件

One is as you maintain in question 一个是你维持问题

<sales_order_place_after>

And another one is very important when you are using third party payment gateway in magento 当您在magento中使用第三方支付网关时,另一个非常重要

in that situation when customer has pay amount successful on payment gateway's page at that 在那种情况下,客户在支付网关页面上的支付金额成功

time you can get from data from 你可以从中获取数据的时间

<sales_order_payment_pay>

event and you can access order 事件,您可以访问订单

information like 信息如

  $order = $observer->getEvent()->getPayment()->getOrder();

hope this will clear your confusion regarding to get order information after placing 希望这将清除您在下单后获取订单信息的困惑

successful order. 成功的订单。

checkout_onepage_controller_success_action是我需要的。

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

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