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?