0

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

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

4

1 回答 1

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

于 2013-01-14T16:24:22.760 回答