R.Kinkeris Posted May 3, 2013 Share Posted May 3, 2013 (edited) Hello, I want to add 2 fields named siret and ape to address update form. But I can't manage to do that. What I did so far - added both fields to PS_ADDRESS in address.php I added 'siret' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'ape' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), and /** @var string SIRET */ public $siret; /** @var string APE */ public $ape; and in adminAddressController.php { $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('SIRET:'), 'name' => 'siret', 'size' => 14, 'required' => false, ); } elseif ($addr_field_item == 'ape') { $temp_fields[] = array( 'type' => 'text', 'label' => $this->l('APE:'), 'name' => 'ape', 'size' => 5, 'required' => false, ); } But It still wont get the values which I enter when I register. After I added these codes, and registered, the PS_ADDRESS siret and ape fields still stay as null. Any ideas what I did wrong or what else I have to do? P.S. 1.5 Edited May 7, 2013 by R.Kinkeris (see edit history) Link to comment Share on other sites More sharing options...
R.Kinkeris Posted May 7, 2013 Author Share Posted May 7, 2013 Solved. My problem was that random named theme override file was overriding my changes. Link to comment Share on other sites More sharing options...
lordbdp Posted May 25, 2013 Share Posted May 25, 2013 What have you done finaly ? Link to comment Share on other sites More sharing options...
Recommended Posts