Jump to content

Add new field into information tab product


Recommended Posts

Hi,

I'm new, so hi everyone :)

 

I want add new field in prestashop 1.5 on information tab when I add or edit product. This field only insert a bit value to database like online_only field or sale.

 

I add checkbox in information.tpl file and add in product.php file this line

/** @var boolean hit */
   public $hit = false;

 

and in same file

 

'hit' =>						 array('type' => self::TYPE_BOOL, 'shop' => true, 'validate' => 'isBool'),

but when I add last code, the value is inserted but no insert product name and other field.

 

What I forgot add ? Can someone help me ?

Link to comment
Share on other sites

×
×
  • Create New...