cancel
Showing results for 
Search instead for 
Did you mean: 

Sharing Users and Cart in website with different storeviews

Sharing Users and Cart in website with different storeviews

I have one Magento website, with 6 different stores and 1 storeview per store.

They all have different domainnames, except one, which is a subdomain of one of the stores, like this:

  • domain1.nl
  • subdomain.domain1.nl
  • domain2.nl
  • domain3.nl
  • domain4.nl
  • domain5.nl

At this moment the logged in users can only switch between domain1.nl and subdomain.domain1.nl, without automatically logging out. Also the cart is shared between these two stores. The users or cart are not shared with the other stores (domains).

I have already tried the following:

  • In System -> Configuration -> Customer Configuration -> Share Customer Accounts, I have set it to GLOBAL
  • I have tried 3 possible store configurations, which were quoted at different topics regarding the same problem:

    • If your websites are located in one domain, but in different directories, e.g. "www.example.com/stores/store1" and "www.example.com/stores/store2" you can setup your "Cookie Path" to "/stores/" in System -> Configuration -> Web -> Session Cookie Management.
    • If your websites are located in different sub-domains e.g. "store1.example.com" and "store2.example.com" you can setup "Cookie Domain" to ".example.com" in System -> Configuration -> Web -> Session Cookie Management.
    • If you have different domains, in this case you can add session ID to the URL for another store. Use this construction "Mage::getModel('core/url')->addSessionParam()->getUrl('...')" to get the URL with session parameter. This is probably the one I need, but I do not know where and how to implement this. I have added it to my header.phtml file which has a storeswitcher
  • At the moment my System -> Configuration -> Web -> Session Cookie Management:
    cookiepath: /
    cookie domain: empty

  • Use SID in frontend is set to: YES

  • I have tried Marius's 'Share Carts Between Websites' module: http://marius-strajeru.blogspot.nl/2013/01/share-cart-between-websites.html

Any help is appreciated

I am using Magento CE 1.9.2.4

2 REPLIES 2

Re: Sharing Users and Cart in website with different storeviews

DrCashew, did you ever find a solution for your issue? If so, I would greatly appreciate the answer as well.

Re: Sharing Users and Cart in website with different storeviews

Did you ever find a solution for your issue?