Baudo Posted March 3, 2015 Share Posted March 3, 2015 (edited) Hi everyone, I want that when I install my module is added a new group for users. I try this: $sql = array(); $sql = 'INSERT INTO `'._DB_PREFIX_.'group` (reduction,price_display_method,show_prices) VALUES (0.00, 0, 1)'; $idgroup = Db::getInstance()->getValue("SELECT MAX(id) FROM `"._DB_PREFIX_."group`"); foreach ($sql as $query) if (Db::getInstance()->execute($query) == false) return false; in $idgroup I have the id of my group, now I have to put the names in the ps_group_lang with the id of the language, is correct? Edited March 3, 2015 by Baudo (see edit history) Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now