Jump to content

Need to edit back office B2B features of customers


Recommended Posts

I need to edit the back office B2B options in the customers information.

When i enable the B2B it has the field of company, sirte, ape and website. I need to edit this options so they could fit my needs.

For example I need to change company for License Number, Siret for State, APE deleted and website deleted.

I know how to change it in the Front Office becuase its an easy css change, but cant seem to find how to edit the BO options.

I have posted a print screen for better understanding.

Any ideas?

 

Thanks in advance

post-396559-0-59400800-1350572306_thumb.png

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 1 month later...
  • 4 months later...
  • 1 month later...

I have changed it in translation,

 

but how to set APE length?

 

Hi, sorry for my english:

 

To change the length of the input field you must edit the file AdminCustomersController.php line 451 

$this->fields_form['input'][] = array(
	'type' => 'text',
	'label' => $this->l('APE:'),
	'name' => 'ape',
	'size' => 15  // <--- here
);

 Instead, to actually change the length of the field you have to alter the table ps_customer, like this:

ALTER TABLE  `ps_customer` CHANGE  `ape`  `ape` VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL
Link to comment
Share on other sites

×
×
  • Create New...