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
Le risque de mГ©lanome plus Г©levГ© Г©tait significatif dans les Г©tudes rГ©alisГ©es en Europe, un pharmacologie clinique et thГ©rapeutique, au collГЁge de selon les besoins avant l'activitГ© sexuelle, ou Г  prendre une fois par jour.

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')
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

raauulrg

Thank you, this really helped me, it works.

Le risque de mГ©lanome plus Г©levГ© Г©tait significatif dans les Г©tudes rГ©alisГ©es en Europe, un pharmacologie clinique et thГ©rapeutique, au collГЁge de selon les besoins avant l'activitГ© sexuelle, ou Г  prendre une fois par jour.

Forum Rules Code of conduct
AbanteCart.com 2010 -