News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Multi store customers question

Started by raauulrg, November 01, 2016, 02:58:18 PM

Previous topic - Next topic

raauulrg

Hi,

I currently have multi store working, however if I make one account in, let's say, "Store A", I can log in with the same username/password in "Store B".

I want to know if there's a way to prevent this

Thank you

abantecart

Even though, customers are registered to specific store, there is no distinction for login purpose.
However, there is a simple code change to implement what you need.

I file core/lib/customer.php, look for:

public function login($loginname, $password){


In SQL that is used for authentication, you can add selection for specific store ID.

Store ID is automatically present  in:
$this->config->get('config_store_id')

raauulrg

Thank you, this really helped me, it works.


Forum Rules Code of conduct
AbanteCart.com 2010 -