Page 1 of 1

General question about multi-store

Posted: Thu Dec 12, 2019 9:06 am
by nobodyinteresting
Hey all!

First of all - loving OC so far.

I did set up 2 stores using multistore. I did notice something strange though, and was wondering if there is an easy fix for it.
Currently if user user@domain.com registers on store1 - they can go to store2 and login using the same email/password.
Is there a way to limit that, so if they exist on store1, and they need to get something from store2 - they need to register and have a completely separate account?

Thanks!

Re: General question about multi-store

Posted: Thu Dec 12, 2019 2:59 pm
by opencartmart
There is no readymade setting, unfortunately. You can try searching on the marketplace if there are any extensions that can do it. If you want to do yourself, there are several files where you will have to apply `store_id` in the queries. For example:

1. catalog/model/customer.php - getTotalCustomersByEmail, editPassword etc. (i.e. any query contains `where email =`)
2. system/library/cart/customer.php - login function

There are several more places to be adjusted.