public function postProcess() { if (Module::isInstalled('agilemultipleseller') and isset($_POST['assign_all_products']) and intval($_POST['assign_all_products']) == 1 and !$this->is_seller) { AgileSellerManager::assign_all_products_under_category(Tools::getValue('id_category')); $this->confirmations[] = $this->l('You requested has been executed successfully.'); } if (Tools::isSubmit('submitBulkassigntocategory') && !$this->is_seller) { if (isset($_POST[$this->table . 'Box'])) { $categoryids = $_POST[$this->table . 'Box']; foreach ($categoryids as $id) { if (intval($id) <= 0) { continue; } AgileSellerManager::assignObjectOwner('category', $id, Tools::getValue("id_seller")); } } else { $this->errors[] = "No categories was selected to assign."; } return; } parent::postProcess(); }