Jump to content

Multistore Move To Live "share Customers" And "share Orders" Broken


Guest

Recommended Posts

So yeah, I move my multistore to my live environment and now the "share customers" and "share orders" isn't working anymore. I did some test orders before moving, could this have an impact? I removed them all in the DB, same for guest and user carts.

 

If anyone could point me in the right direction it is greatly appreciated.

 

edit:

using multiple domains, do I need this?

http://addons.prestashop.com/en/checkout-modules/19233-share-cart-customer-in-multistore-cross-domain.html

Edited by Guest (see edit history)
Link to comment
Share on other sites

Further investigation and info.

 

Parked domains are used and all this works. The only thing not working is cart and user sharing.

One user can log in to multisple shops but when switching shops there is no recognition. There's a separate set of cookies for each shop, I need one session for all shops and then it'll work again.

Edited by Guest (see edit history)
Link to comment
Share on other sites

I had it all under one domain with virtual uri's.

Yeah I'm going to buy this module and test it. But first I will ask the developer of that module.

I'll post my findings here.

thanks mate

Link to comment
Share on other sites

Alright, that module works.

Only downside is that it uses redirect links to update cookies and carts. The module provides a redirect script which rewrites/copies the cookies for the all visited domains.

 

This means a clean visit to another shop will not catch the current cart. (Maybe this could be caught by checking the http referrer and redirecting accordingly when one is found)

 

For example:

- shop-1.com - add 1 product

- open new window: shop-2.com - cart is not updated

- open shop-2.com with special redirect link from module => cart is updated.

 

When you first start off in shop-1.com you only have a cookie from this shop. Visiting another shop needs to be done using the redirect to make sure the cookies are copied to that domain.

 

Sidenote

I've read up on this subject and it seems Facebook and Microsoft do it by using iframes with JavaScript for each domain. This sounds more elegant and it would mean the above problem is resolved. OpenID and OAuth could also work or using CORS with custom server headers http://stackoverflow.com/questions/3342140/cross-domain-cookies.

 

A great opportunity for a seasoned developer to make a more robust module for multistore + multi domain Prestashop.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...