Post by nobodyinteresting » Thu Dec 12, 2019 9:06 am

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 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?



Fri Nov 08, 2019 7:53 am

Post by opencartmart » Thu Dec 12, 2019 2:59 pm

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.

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart

Active Member


Wed Oct 02, 2013 3:59 am
Who is online

Users browsing this forum: No registered users and 11 guests