Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Multiple CustomerContact on multi-store solution?

Vote:
 

Suppose I have a Commerce B2C solution for two or more stores in a corporation.

  • Each store has its own product catalog.
  • Each customer can create an account in each store. Each account has its own login user, which is linked in the CustomerContact.UserId property.
  • An order in store A will be linked to the customer contact in store A. An order in store B will be linked to the customer contact in store B. And so on.

How would you guys solve the "get current customer" on the site?

It looks like the CustomerContext is limited and impossible to override or replace (it has no interface and is accessed from its singleton property).

#297002
Feb 22, 2023 10:20
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.