Jump to content

Additional Field For Features Like Features Name


Recommended Posts

hello guys!

help me please. 

 

Prestashop 1.5.6

I have some problem with duplicate the feature.name field in BO.  

I need additional field for features like features name.  

I've duplicate it. It works  in BO, saves in database, but it doesn't display in front office on product page (  

 

My steps:

 

controllers/admin/AdminFeaturesController.php

I have create in public function:

array(
'type' => 'text',
'label' => $this->l('info:'),
'name' => 'name2',
'lang' => true,
'size' => 33,
'hint' => $this->l('Invalid characters:').' <>;=#{}'

) 

in classes/Featured.php  I've create the line in public static

'name2' =>  array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 128),

and in database in ps.feature_lang  i'have create:   name2

 

in product.tpl   - {$feature.name2|escape:'htmlall':'UTF-8'}

 

And everything ok in BO,  but in FO it does not display. (  

 

Can you help me?  

Edited by Baltazar (see edit history)
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...