groups:129:config.xml

Last modified by CrashTest on Tue, December 18, 2007 17:36
Source|Old Revisions  |  Back To Group

This file, located at /app/code/local/Mage/Points/etc/ is the file that tells Magento what files are to be used for this module.

  1. <?xml version="1.0"?>
  2. <config>
  3.     <modules>
  4.         <!-- declare module's version information -->
  5.         <Mage_Points>
  6.             <!-- this version number will be used for database upgrades -->
  7.             <version>0.1.0</version>
  8.         </Mage_Points>
  9.     </modules>
  10.     <global>
  11.         <!-- declare model group for new module -->
  12.         <models>
  13.             <!-- model group alias to be used in Mage::getModel() -->
  14.             <points>
  15.                 <!-- base class name for the model group -->
  16.                 <class>Mage_Points_Model</class>
  17.             </points>
  18.             <core>
  19.                 <rewrite>
  20.                     <email_template>Mage_Points_Model_Email_Template</email_template>
  21.                 </rewrite>
  22.             </core>
  23.             <sales>
  24.                 <rewrite>
  25.                     <order_item>Mage_Points_Model_Order_Item</order_item>
  26.                     <order>Mage_Points_Model_Order</order>
  27.                 </rewrite>
  28.             </sales>
  29.             <paygate>
  30.                 <rewrite>
  31.                     <authorizenet>Mage_Points_Model_Authorizenet</authorizenet>
  32.                 </rewrite>
  33.             </paygate>
  34.             <customer>
  35.                 <rewrite>
  36.                     <customer>Mage_Points_Model_Customer</customer>
  37.                 </rewrite>
  38.             </customer>
  39.         </models>
  40.         <!-- declare resource setup for new module -->
  41.         <resources>
  42.             <!-- resource identifier -->
  43.             <points_setup>
  44.                 <!-- specify that this resource is a setup resource and used for upgrades -->
  45.                 <setup>
  46.                     <!-- which module to look for install/upgrade files in -->
  47.                     <module>Mage_Points</module>
  48.                 </setup>
  49.             </points_setup>
  50.         </resources>
  51.     </global>
  52. </config>



 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs