选择在结账时注册的客户的活动

时间:2013-01-14 06:00:13

标签: magento

我已经为customer_registration_success创建了一个观察者,但是当用户选择注册时,我需要收听在一页结帐时触发的事件。 http://cl.ly/image/2F3L0s1E3g1e

对于这可能是什么事件的任何想法?

1 个答案:

答案 0 :(得分:1)

您可以使用以下逻辑创建自己的“自定义事件”,以检查他们使用哪种方法检查success.phtml或将其合并到sales_order_place_after

$quoteId = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId())->getQuoteId();
$quote = Mage::getModel('sales/quote')->load($quoteId);
$method = $quote->getCheckoutMethod(true);
if ($method == 'register'){
//the customer registered...do your stuff
}

来源:http://www.magentocommerce.com/boards/viewthread/273690/#t375160