Jump to content

Add Fields To The Attributes


Bedodkil

Recommended Posts

Hello here to make simple two ScreenShots (before / after)

Before :

 

166420Capturedecran20151214a112804.png

 

What I would like to after:

272407Capturedecran20151214a113250.png

 

This "field more" must be visible on the front office on the product page.
 
Do you know what file I should edit it to achieve this result and the SQL table that is to receive the data in that field?

 

I already have an idea in the file "AdminAttributesGroupsController.php"

public function renderFormAttributes()
{
[...]
$this->fields_form['input'][] = array(
'type' => 'text',
'label' => $this->l('Champ en plus'),
'name' => 'input_name',
'hint' => array(
$this->l('bla bla bla')
)
);
[...]
}

Little important information, I have to edit the files in the folder "override" because I'm on cloud presta ...

 

Sincerely thank you for your help.

 

infos : Prestashop 1.6

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...