Advertisement
Guest User

Module config.xml

a guest
Feb 24th, 2015
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.54 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <config>
  3.     <modules>
  4.         <CompanyName_AutomatedImport>
  5.             <version>0.23</version>
  6.             <active>true</active>
  7.             <codePool>local</codePool>
  8.         </CompanyName_AutomatedImport>
  9.     </modules>
  10.     <adminhtml>
  11.         <layout>
  12.             <updates>
  13.                 <companyname_automatedimport>
  14.                     <file>CompanyName_AutomatedImport.xml</file>
  15.                 </companyname_automatedimport>
  16.             </updates>
  17.         </layout>
  18.     </adminhtml>
  19.     <global>
  20.         <helpers>
  21.             <companyname_automatedimport>
  22.                 <class>CompanyName_AutomatedImport_Helper</class>
  23.             </companyname_automatedimport>
  24.         </helpers>
  25.         <events>
  26.             <customer_register_success>
  27.                 <observers>
  28.                     <companyname_automatedimport>
  29.                         <class>companyname_automatedimport/observer</class>
  30.                         <method>customerCreateAfter</method>
  31.                     </companyname_automatedimport>
  32.                 </observers>
  33.             </customer_register_success>
  34.         </events>
  35.         <fieldsets>
  36.             <customer_account>
  37.                 <sap_bp_id><create>1</create><update>1</update></sap_bp_id>
  38.             </customer_account>
  39.         </fieldsets>
  40.         <models>
  41.             <companyname_automatedimport>
  42.                 <class>CompanyName_AutomatedImport_Model</class>
  43.             </companyname_automatedimport>
  44.         </models>
  45.         <resources>
  46.             <companyname_automatedimport_setup>
  47.                 <setup>
  48.                     <module>CompanyName_AutomatedImport</module>
  49.                     <class>CompanyName_AutomatedImport_Model_Entity_Setup</class>
  50.                 </setup>
  51.                 <connection>
  52.                     <use>core_setup</use>
  53.                 </connection>
  54.             </companyname_automatedimport_setup>
  55.         </resources>
  56.     </global>
  57.     <crontab>
  58.         <jobs>
  59.             <companyname_automatedimport>
  60.                 <schedule>
  61.                     <!-- Set the cron_expr as '0 * * * *' to run the process every hour -->
  62.                     <!-- Or set it as '*/3 * * * *' run every 3 minutes -->
  63.                     <cron_expr>*/5 * * * *</cron_expr>
  64.                 </schedule>
  65.                 <run>
  66.                     <model>CompanyName_AutomatedImport/Observer::automatedImportProcess</model>
  67.                 </run>
  68.             </companyname_automatedimport>
  69.         </jobs>
  70.     </crontab>
  71. </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement