Email Notification when a new customer has been added - Magento

后端 未结 7 1031
鱼传尺愫
鱼传尺愫 2021-01-03 06:31

I would like to send an email notification to my store\'s contact email address every time when a new customer has been Registered.

I don\'t want to purchase any kin

相关标签:
7条回答
  • 2021-01-03 07:25

    You could extend Mage/Customer/Resource/Customer.php - protected function _beforeSave(Varien_Object $customer)

    if ($result) {
       throw Mage::exception('Mage_Customer', Mage::helper('customer')->__('This customer email already exists'), Mage_Customer_Model_Customer::EXCEPTION_EMAIL_EXISTS);
    } else {
        // SEND EMAIL - Use a custom template 
    }
    
    0 讨论(0)
提交回复
热议问题