Jump to content

[SOLVED]siret and ape in address.tpl


Recommended Posts

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 by R.Kinkeris (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...