public function processUpdate() { $ret = parent::processUpdate(); if (!Module::isInstalled('agilemultipleseller')) { return $ret; } ObjectModel::cleear_unnecessary_lang_data(); return $ret; }
public static function checkAndAddLanguage($iso_code, $lang_pack = false, $only_add = false, $params_lang = null) { $ret = parent::checkAndAddLanguage($iso_code, $lang_pack = false, $only_add = false, $params_lang = null); if (!Module::isInstalled('agilemultipleseller')) { return $ret; } ObjectModel::cleear_unnecessary_lang_data(); return $ret; }
public function update($null_values = false) { global $cookie; if (!Module::isInstalled('agilemultipleseller')) { return parent::update($null_values); } if (!$this->can_edit()) { return false; } if (!parent::update($null_values)) { return false; } if (Module::isInstalled('agilemultipleseller')) { $is_seller = $cookie->profile == (int) Configuration::get('AGILE_MS_PROFILE_ID'); if (!$is_seller and $this->table != 'orders') { $this->assign_entity_owner(); } } if ($this->table == 'product' or $this->table == 'category' or $this->table == 'lang') { ObjectModel::cleear_unnecessary_lang_data(); } return true; }