cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.1+ multiple stores and domains, shared customer sessions, shared carts

Magento 2.1+ multiple stores and domains, shared customer sessions, shared carts

I apologize in advance if there's an easy to find answer for this but I've been reading this forum and Google for the past couple of days and I'm stumped.  I'm new to Magento, so with any answers please be detailed and don't presume I know where put place code (thanks!).

 

I've setup 3 stores and store views under 3 domains using Magento 2.1.5.  I used this to setup the websites, stores and storeviews and this part is working well: http://devdocs.magento.com/guides/v2.1/config-guide/multi-site/ms_websites.html

 

Three domains - not subdomains.

www.domain1.com

www.domain2.com

www.domain3.com

 

Things are looking good with different root categories, different sets of products shown, custom UI, etc.

 

I haven't been able to get the shared session or carts working yet.

 

I've turned on global accounts in the admin for customers and I've set the cookie path to "/".  I've turned on SID in the URLs but don't see this happening.

 

I presume this is obsolete for my version of Magento:

3. 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.  From https://astrio.net/blog/share-magento-cart-between-multistores/

 

Any current docs, posts or blogs for this for V2.1+ would be very helpful.

 

Thanks!