Jump to content

Set default group (yes I've tried the normal things)


Recommended Posts

I’m going mad. I think.

I just want to change the default group for new customer registrations. Any solution will do.

1st I changed the code in classes/Customer.php

From:

$this->id_default_group = (int)Configuration::get('PS_CUSTOMER_GROUP');

To

$this->id_default_group = 4;

It didn’t work.

I made sure the cache was turned off. I deleted the cache. I cleared the browser history I opened the shop again.

Still the default group was 3 (strange because originally it was 1).

Then I went into the database and change the id_default_group in the table ?????customer. I set that to 4.

Still when I create a new customer (front end) they end up with the customer ID=3

I can confirm I have looked in groups and yes, there is a group with the ID=4 (it’s the one I want).

What am I doing wrong??? How to I get prestahop to default new customer to group 4?

Link to comment
Share on other sites

×
×
  • Create New...