Jump to content

Multi shop - how to have client NOT authomatically active after registration only for B2B shop


Recommended Posts

Hello everyone,

we have a 1.6 version of Prestashop running smoothly.

We have recently activated the multi shop feature in order to have a B2B shop as well.

What we are trying to achieve is to have

$customer->active = 0;

in the controllers/front/AuthController.php.

That should disable the default behaviour, but it will disable it for the B2C shop as well.

That cannot happen.

I was looking for a variable "id_shop" to use as conditional selector, so if

id_shop == 2

 (where 2 is b2b), than

$customer->active = 0; else $customer->active = 1;

Unfortunately, I found none.

 

Any help?

Thank you very much.

 

Link to comment
Share on other sites

  • 4 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...