protected function afterUpdate($object)
 {
     $res = parent::afterUpdate($object);
     if ($res && Module::isInstalled('agilemultipleseller') && Tools::getValue('id_employee') && Tools::getValue('passwd')) {
         AgileSellerManager::syncSellerCredentials('b2f', Tools::getValue('id_employee'));
     }
     return $res;
 }
 public function postProcess()
 {
     parent::postProcess();
     if (Module::isInstalled('agilemultipleseller') && Tools::getValue('passwd')) {
         include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
         $id_seller = SellerInfo::getSellerIdByCustomerId(Context::getContext()->customer->id);
         AgileSellerManager::syncSellerCredentials('f2b', $id_seller);
     }
 }
 protected function afterUpdate($object)
 {
     $res = parent::afterUpdate($object);
     if ($res && Module::isInstalled('agilemultipleseller')) {
         if (Tools::getValue('id_customer') && Tools::getValue('passwd')) {
             include_once _PS_ROOT_DIR_ . "/modules/agilemultipleseller/SellerInfo.php";
             $id_seller = SellerInfo::getSellerIdByCustomerId(Tools::getValue('id_customer'));
             AgileSellerManager::syncSellerCredentials('f2b', $id_seller);
         }
         $this->create_seller_account($object);
     }
     return $res;
 }