public function update()
 {
     $product_types = ecomconfig::getConfig('product_types');
     foreach ($product_types as $key => $value) {
         $this->params["{$value}s"] = listbuildercontrol::parseData($this->params, "{$value}s_list");
     }
     $curcat = new storeCategory($this->params);
     $children = $curcat->getChildren();
     foreach ($children as $key => $child) {
         $chldcat = new storeCategory($child->id);
         $chldcat->is_active = $this->params['is_active'];
         $chldcat->save();
     }
     foreach ($product_types as $key => $value) {
         $type = $value . 's';
         $product_type = new $type();
         $product_type->saveCategories($this->params["{$type}"], $curcat->id, $type);
     }
     parent::update();
 }