Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <config>
  3. <modules>
  4. <Wli_Registrationdemo>
  5. <active>true</active>
  6. <codePool>local</codePool>
  7. </Wli_Registrationdemo>
  8. </modules>
  9. </config>
  10.  
  11. <config>
  12. <modules>
  13. <Wli_Registrationdemo>
  14. <version>0.1.0</version>
  15. </Wli_Registrationdemo>
  16. </modules>
  17. <global>
  18. <events>
  19. <customer_register_success>
  20. <observers>
  21. <Wli_Registrationdemo_customer_register_success>
  22. <type>singleton</type>
  23. <class>Wli_Registrationdemo_Model_Observer</class>
  24. <method>customerRegisterSuccess</method>
  25. </Wli_Registrationdemo_customer_register_success>
  26. </observers>
  27. </customer_register_success>
  28. </events>
  29. </global>
  30. </config>
  31.  
  32. <?php
  33. class Wli_Registrationdemo_Model_Observer {
  34. public function customerRegisterSuccess(Varien_Event_Observer $observer) {
  35. $event = $observer->getEvent();
  36. $customer = $event->getCustomer();
  37. $email = $customer->getEmail();
  38. if($email) {
  39. //Create custom code over here as per your requirements !
  40. }
  41. }
  42. }
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement