该模块用于添加客户地址属性。命名空间是 Thushara,模块名称是 New
属性名称是联系人
在管理面板中,模块显示为已激活,但未添加属性。
这是 \local\Thushara\New\etc\config.xml
<config>
<modules>
<Thushara_New>
<version>0.1.0</version>
</Thushara_New>
</modules>
<frontend>
<routers>
<new>
<use>standard</use>
<args>
<module>Thushara_New</module>
<frontName>new</frontName>
</args>
</new>
</routers>
<layout>
<updates>
<new>
<file>new.xml</file>
</new>
</updates>
</layout>
</frontend>
<global>
<models>
<new>
<class>Thushara_New_Model</class>
<resourceModel>new_mysql4</resourceModel>
</new>
<new_mysql4>
<class>Thushara_New_Model_Mysql4</class>
<entities>
<new>
<table>new</table>
</new>
</entities>
</new_mysql4>
</models>
<resources>
<new_setup>
<setup>
<module>Thushara_New</module>
<class>Mage_Customer_Model_Entity_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</new_setup>
<new_write>
<connection>
<use>core_write</use>
</connection>
</new_write>
<new_read>
<connection>
<use>core_read</use>
</connection>
</new_read>
</resources>
<blocks>
<new>
<class>Thushara_New_Block</class>
</new>
</blocks>
<helpers>
<new>
<class>Thushara_New_Helper</class>
</new>
</helpers>
</global>
<global>
<fieldsets>
<sales_convert_quote_address>
<contact>
<to_order_address>*</to_order_address>
<to_customer_address>*</to_customer_address>
</contact>
</sales_convert_quote_address>
<customer_address>
<contact>
<to_quote_address>*</to_quote_address>
</contact>
</customer_address>
</fieldsets>
</global>
这是 \local\Thushara\New\sql\new_setup\mysql4-install-0.1.0.php