public function toggleStatus() { $ret = parent::toggleStatus(); if (_PS_VERSION_ > '1.5') { return $ret; } if (!Module::isInstalled('agilemultipleseller')) { return $ret; } if (!$this->active) { AgileSellerManager::disableSellerProducts($this->id); } else { if (intval(Configuration::get('AGILE_MS_SELLER_APPROVAL')) == 1) { require_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/agilemultipleseller.php"; AgileMultipleSeller::sendSellerAccountApprovalEmail($this->id); } } return $ret; }