Jump to content

[SOLVED] Change user group after registration


Recommended Posts

Hi,

I have diff. groups:

1. visitors [id=1]
2. member [id=2]
3. vip [id=3]
4. friends [id=4]

When a visitor register he/she will be added to the visitor group [id=1] by default.

What I am trying to do here is, once a visitor register and create account, I want to change his/her group to be member group [id=2] automatically not manually.

WHY?!

We accept order by phone, and we would like to encourage our visitors to sign-up and register in our website so they can get 5% off if they made their own orders using their accounts. By using this "member group" the prices will be displayed with the 5% discount once they log in.

On the other hand, if a customer call to make an order, he/she shouldn't get this 5% off, so we need to display our prices without the 5% off.


I really need help here, Please help/advice...

Thanks in advance...

Link to comment
Share on other sites

Okay,

I found out how to do it :-)

and here is how if any one would like to do it:

[1] open Customer.php on FTP_ROOT/classes/
[2] search for the following code (line 118 or around on 1.3.1.1)

$this->id_default_group = 1;


[3] change 1 to the group id you want it to be default for registered customers.
[4] Save.

You are ready to go :)

HTH some one...

G'Luck

  • Like 1
Link to comment
Share on other sites

  • 11 months later...
  • 5 months later...

Okay,

I found out how to do it :-)

and here is how if any one would like to do it:

[1] open Customer.php on FTP_ROOT/classes/

[2] search for the following code (line 118 or around on 1.3.1.1)

$this->id_default_group = 1;

[3] change 1 to the group id you want it to be default for registered customers.

[4] Save.

You are ready to go :)

HTH some one...

G'Luck

It is'n ok. When I make Order without registration, then system apply 5% discount. It is wrong.

Link to comment
Share on other sites

  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...