We needed to create a second account/register page - which we have done successfully. It works fine.
However, we need customers who register on this page to be placed into Customer Group (ID 4) automatically.
I've been playing around in our duplicate register.php file with no luck. Would this be the line to change?
Any help would be appreciated.
$this->config->get('config_customer_group_id')
$this->load->model('account/customer_group');
$this->data['customer_groups'] = array();
if (is_array($this->config->get('config_customer_group_display'))) {
$customer_groups = $this->model_account_customer_group->getCustomerGroups();
foreach ($customer_groups as $customer_group) {
if (in_array($customer_group['customer_group_id'], $this->config->get('config_customer_group_display'))) {
$this->data['customer_groups'][] = $customer_group;
}
}
}
if (isset($this->request->post['customer_group_id'])) {
$this->data['customer_group_id'] = $this->request->post['customer_group_id'];
} else {
$this->data['customer_group_id'] = $this->config->get('config_customer_group_id');
}