dark_effie Posted April 18, 2011 Share Posted April 18, 2011 Hi,Creating tabs in presta 1.3 is so simple which you can easily add new tab on a back-end page by clicking Tools-> tabs.But now in presta 1.4, where can i find it? Link to comment Share on other sites More sharing options...
jeevanoss Posted April 18, 2011 Share Posted April 18, 2011 You can see in the same path in presta 1.4 , Back Office >> Tools >> Tabs Link to comment Share on other sites More sharing options...
dark_effie Posted April 18, 2011 Author Share Posted April 18, 2011 There is no Tab pane under my Tools. I attach a screenshot of my Back-end. Link to comment Share on other sites More sharing options...
dark_effie Posted April 26, 2011 Author Share Posted April 26, 2011 I already found it. At the back-end area. Employees->Tabs.Here is what i am going to develop.I have a new tab named "Labels" under the Catalog Tab, by adding my AdminLabels. The problem is when i go to Catalog->Labels and click "Add new". The form is not displayed.Is there anyone who can help? thanx.Database table: ps_labelFields Type id_label int(10)name varchar(255)color varchar(255)description varchar(255)active tinyint(1)my Label.php code class LabelCore extends ObjectModel { public $id; /** @var integer label id */ public $id_label; /** @var string name */ public $name; /** @var string text */ public $description; /** @var string color */ public $color; /** @var boolean Status */ public $active = 1; protected $fieldsRequired = array('name', 'color', 'active'); protected $fieldsSize = array('name' => 32, 'text' => 32, 'color' => 32); protected $fieldsValidate = array('name' => 'isCatalogName'); protected $fieldsSizeLang = array('name' => 32); protected $fieldsValidateLang = array('description' => 'isGenericName'); protected $table = 'label'; protected $identifier = 'id_label'; protected $webserviceParameters = array( 'fields' => array( 'active' => array('sqlId' => 'active'), 'name' => array('sqlId' => 'name') ), ); public function getFields() { parent::validateFields(); $fields['id_label'] = (int)($this->id); $fields['name'] = pSQL($this->name); $fields['color'] = pSQL($this->color); $fields['active'] = (int)$this->active; return $fields; } public function getFields() { parent::validateFields(); if (isset($this->id)) $fields['id_supplier'] = (int)($this->id); $fields['name'] = pSQL($this->name); $fields['date_add'] = pSQL($this->date_add); $fields['date_upd'] = pSQL($this->date_upd); $fields['active'] = (int)($this->active); return $fields; } } AdminLabels.php Link to comment Share on other sites More sharing options...
jeevanoss Posted April 26, 2011 Share Posted April 26, 2011 The issue is due to you declared LabelCore::getFields() in Label.php two times.Remove one definition function getFields() in Label.php & check Link to comment Share on other sites More sharing options...
jeevanoss Posted April 26, 2011 Share Posted April 26, 2011 The issue is due to you declared LabelCore::getFields in Label.php two times.Remove one definition function getFields in Label.php & check Link to comment Share on other sites More sharing options...
Recommended Posts