Jump to content

[SOLVED] add new product field problem


Recommended Posts

You should create a Product.php and place it in the override in the folder classes, and add a gender column in the table product.

   Product::$definition['fields']['gender'] = array('type' => ObjectModel::TYPE_STRING,'validate' => 'isString');
  class ProductCore extends ObjectModel
    { 
       public $gender; 
       } 
Edited by tarek.fellah (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...