Jump to content

Edit History

bombis

bombis

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!

bombis

bombis

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);

 

Hello!

I am setting the default group once the user is already logged so the customer ill always exist in the database

Thanks for your suggestion!

×
×
  • Create New...