Is there an event for customer account registration in Magento?

后端 未结 17 2008
轻奢々
轻奢々 2020-12-04 17:23

I would like to be able to run some functionality with a module that I am building whenever a customer registers an account, but I can\'t seem to f

17条回答
  •  孤城傲影
    2020-12-04 17:42

    I found the event checkout_submit_all_after.

    
       
          
             my_example/observer
                customerRegistered                        
          
       
    
    

    In my Observer.php I get the quote object that is passed in.

    public function customerRegistered (Varien_Event_Observer $observer) {
        $quote = $observer->getQuote();
        $checkout_method = $quote->getData();
        $checkout_method = $checkout_method['checkout_method'];                      
    
        if ($checkout_method == Mage_Checkout_Model_Type_Onepage::METHOD_REGISTER) {        
    }
    

    Do not use $quote->getCheckoutMethod() it gives you login_in instead. Not sure why. Hope this helps.

提交回复
热议问题