custom module of magento not working on live -


i have created custom module from: https://magento.stackexchange.com/questions/14163/adding-custom-attribute-to-customer. , working on local not working on live: config.xml (app/code/local/your/customattribute/etc/config.xml)

<?xml version="1.0"?> <config>     <modules>         <your_customattribute>             <version>0.1.0</version>         </your_customattribute>     </modules>     <global>         <resources>             <your_customattribute_setup>                 <setup>                     <module>your_customattribute</module>                     <class>mage_customer_model_entity_setup</class>                 </setup>                 <connection>                     <use>core_setup</use>                 </connection>             </your_customattribute_setup>             <your_customattribute_write>                 <connection>                     <use>core_write</use>                 </connection>             </your_customattribute_write>             <your_customattribute_read>                 <connection>                     <use>core_read</use>                 </connection>             </your_customattribute_read>         </resources>     </global> </config> 

and next file install-0.1.0.php(app/code/local/your/customattribute/sql/your_customattribute_setup/install-0.1.0.php):

<?php $installer = $this;  $installer->startsetup();  $setup = new mage_eav_model_entity_setup('core_setup');  $entitytypeid     = $setup->getentitytypeid('customer'); $attributesetid   = $setup->getdefaultattributesetid($entitytypeid); $attributegroupid = $setup->getdefaultattributegroupid($entitytypeid, $attributesetid);  $installer->addattribute("customer", "customattribute",  array( "type"     => "varchar", "backend"  => "", "label"    => "custom attribute", "input"    => "text", "source"   => "", "visible"  => true, "required" => false, "default" => "", "frontend" => "", "unique"     => false, "note"       => "custom attribute"      ));      $attribute   = mage::getsingleton("eav/config")->getattribute("customer", "customattribute");   $setup->addattributetogroup( $entitytypeid, $attributesetid, $attributegroupid, 'customattribute', '999'  //sort_order ); 

please tell me going wrong. in advance.

if local server on windows of difference in file naming or case cause if hosting linux hosting..

also, clear cache on live, after installation of module


Comments

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -