November Happy Hour will be moved to Thursday December 5th.

Working with multiple carts

Vote:
 

I'm building a solution where we'll have multiple sites but with a single sign on.
I'm not sure what would be the best way to handle multiple carts though. it's not possible to have multiple carts, right? Should I go for having multiple OrderForms and naming them to the site id or what is the preferred approach?

#91467
Oct 06, 2014 19:10
Vote:
 

Hi,

It's totally possible to have multiple carts.

Basically a customer can have multiple cart per name and per market.

Here's the way to create/get the cart for current user, current market, which the name is specified for the site (pseudo code, you'll need to check the APIs again)

var cartHelper = new CartHelper(SecurityContext.Current.CurrentUserId, "FirstSite", currentMarket);

define some constants for each of your site and then create/get carts based on relevant name should help.

Regards.

/Q

#91469
Oct 06, 2014 19:24
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.