4 hours ago, EvaF said:maybe you should not forget
$query ="INSERT IGNORE INTO `"._DB_PREFIX_."customer_group` (`id_customer`, `id_group`) values(id_customer=". $this->context->customer->id . ",7)"; Db::getInstance()->Execute($query);
Thanks for your suggestion!