Developer forum

Forum » Templates » Share Cart between multiple domains on same solution

Share Cart between multiple domains on same solution

Peter Bille Larsen
Reply

Hi DWs

Can it be possible to share one Cart between several shops/domains on the same solution?

The situation:

1. A client goes into www.myshop.dk and puts a product in basket
2. On same solution there is another brandshop like www.myyellowshop.dk, the user goes to the other domain
3. The content from the first cart is still there though the user have switched domain.
4. The user goes to checkout and all products from all domains are paid for same time.

I know that it has been seen as a bug, but we have a client with this specific need.
 


Replies

 
Peter Bille Larsen
Reply

Solved: Make a seperate shop layer and send all CART commands to this specific one.

 
Nicolai Høeg Pedersen
Reply

Hi Peter

 

Glad you solved it.

 

Sharing carts across domains is not possible because cookies and sessions cannot be shared across them. So it would require some really nasty cross JS code setting some cookies etc. So I do not think we will see it as a built in feature.

 

BR Nicolai

 

You must be logged in to post in the forum