Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Multi store customers question  (Read 4515 times)

Offline raauulrg

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Multi store customers question
« on: November 01, 2016, 02:58:18 PM »
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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4362
  • Karma: +301/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Multi store customers question
« Reply #1 on: November 01, 2016, 10:39:59 PM »
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:
Code: [Select]
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:
Code: [Select]
$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

Offline raauulrg

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Multi store customers question
« Reply #2 on: November 04, 2016, 04:50:14 PM »
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.

 

Powered by SMFPacks Social Login Mod