} else { setEventMessage($price_updaters->error, 'errors'); } } elseif ($action == 'edit_updater' && !empty($save)) { //Verify if process() works $res = $price_updaters->process(); if ($res > 0) { $res = $price_updaters->update($user); } if ($res > 0) { $action = ''; } else { setEventMessage($price_updaters->error, 'errors'); } } elseif ($action == 'delete_updater') { $res = $price_updaters->delete($selection, $user); if ($res > 0) { $action = ''; } else { setEventMessage($price_updaters->error, 'errors'); } } } elseif (!empty($cancel)) { $action = ''; } /* * View */ //Header llxHeader("", "", $langs->trans("CardProduct" . $product->type)); print load_fiche_titre($langs->trans("DynamicPriceConfiguration"));