on 2017 May 17 9:37 AM
Hi expert,
We want to have separate customers in a hybris instance with 4 websites.
"Separate" means that :
It must be possible to create a customer with the same "uid" on the 4 websites. Currently isn't possible because "uid" is unique.
The addresses of customers must be separate too...
Orders must be separate, but already done by hybris with personnalization
For example :
On website "A", you can login with "test@example.com" with password "abc123"
On website "B", you can login with "test@example.com" with password "qzefqzfeq"
On website "C", you can login with "test@example.com" with password "abc123"
1) Multi-tenants
At the begining of the project (before we know the needs of separates customers), some experts said me : "if you can avoid multi-tenants, it's better".
Using multi-tenants will permits to separate customers. But it introduce already the needs to manage many tenants. Maybe it is to overkill to use multi-tenant for only separate users by website ?
2) Changing customer key
The uid must be unique for a Customer. But i think it should be possible to change that (with development) in order to have "uid + website" = new key. So when a customer create a account on a website "A", his account will be associate with "website A". When he try to login, we verify that he have a login for this website. etc....
3) No others ideas
I didn't have another solution for doing that. If you have other ideas, it'll be appreciate !
Thanks in advance,
Second Option is the best option with our custom code for authentication flow for adding store based on the site user accessing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest to maintain uid as the key but change the logic of populating uid with something as email+websiteid and keep email as common across all customer profiles. In this way customer can access multiple sites with same email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Changing the customer key might seem to be the easiest solution but what about the DB / tables size ?
It is not better and safer to separate the data from each site in different tenant? maybe performance as well?
Anyone has an experience on this, who can provide feedback?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.