phpdeveloper Posted February 1, 2014 Share Posted February 1, 2014 Hi, I need the details to add the product field details, i already tried but i am getting error... and also not storing the in db.... showing error messege : Property Product->gender has bad value (allowed values are: male, female). Thanks in advance.. Link to comment Share on other sites More sharing options...
tarek.fellah Posted February 1, 2014 Share Posted February 1, 2014 (edited) 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 February 1, 2014 by tarek.fellah (see edit history) Link to comment Share on other sites More sharing options...
phpdeveloper Posted February 3, 2014 Author Share Posted February 3, 2014 thanks for ur help Link to comment Share on other sites More sharing options...
Recommended Posts