9 replies [Last post]
BWPanda's picture
Offline
Joined: 06/22/2009
Juice: 13
Was this information Helpful?

I use Ubercart and Domain Access on my site(s). I recently installed the Shared Signon module so users can login to one domain, and automatically be logged in to the other domains too. This especially makes it easier when adding products to your cart from multiple domains.

The problem occurs, however, when I try to add a product to my cart as an anonymous user... The product is added to the cart, but when I change domains, the cart is empty. I need a solution that allows an anonymous user to add multiple products to their cart from multiple domains.

Does anything like this already exist? I also tried installing the Ubercart Domain Access module, thinking that might help, but it doesn't appear to... Any ideas?

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Anonymous carts accross different domains

Unless I'm mistaken I don't think that's really possible. Most cookies, for security reasons, can only be shared across the domain (you can go across subdomains, such as www.example.com and store.example.com) but actually changing domains would be a problem.

One possible solution would be in all of your sites' settings.php files, set the $cookie_domain URL to one single domain that you would use as your "base" site. That might solve your issue, but you'd have to test first.

--
Help directly fund development: Donate via PayPal!

BWPanda's picture
Offline
Joined: 06/22/2009
Juice: 13
Re: Re: Anonymous carts accross different domains

Thanks, I'll give that a try. I only have one settings.php file, as I really only have one site (one Drupal installation, one settings.php file, one database) - the Domain Access module makes it look like I have different sites on different domains...

BWPanda's picture
Offline
Joined: 06/22/2009
Juice: 13
Re: Re: Anonymous carts accross different domains

Nope, didn't work. When I uncommented the $cookie_domain and set it to my base domain, my other domains stopped working, they just brought up a Redirect Loop page...

pscheir's picture
Offline
Joined: 07/24/2009
Juice: 2
hello, I am exactly in the

hello,

I am exactly in the same situation. has anyone yet solved this?

thanks!

ritesh's picture
Offline
Joined: 04/11/2011
Juice: 8
Drupal Ubercart not working for domain access module

Hi
I have a product on one of my subdomain.When clicking on add to cart button it is redirecting to base domain cart page with no products in cart.
But when I chenge Url to Subdomain.com/cart......I get my products added there in cart....
All other links like checkout and update cart having same base domain redirection.
I want to redirect to the domain I was.
Please provide a solution as am not able to proceed to integrate ubercart in domain access module site.
Its urgent.
Thanks

Vincent at KIM's picture
Offline
Joined: 09/09/2011
Juice: 31
Anonymous carts accross different domains

Ahoj,

is there a solution for this problem in the meanwhile?
Same/similar situation here:
Domain handling with domain_access.
ubercart-shop in the one subdomain, how can I add add-to-cart-buttons in the other subdomain to add the product to the customer´s cart.

Thanks for any advice

best regards

Vincent

RogerStevens's picture
Offline
Joined: 03/19/2012
Juice: 3
Re: Anonymous carts accross different domains

I've tried a couple of times to get my head around the problem of two domains sharing cart information but its the anonymous user thats always the problem. I dont think you can overcome it because of the security implications.

Vincent at KIM's picture
Offline
Joined: 09/09/2011
Juice: 31
Anonymous carts accross different domains

Ahoj,

thanks for the advice.
My solution now is to copy the ID from the produkt to a views-field "link to shop" by hand.
It´s not directly "add to cart" but just one klick more to access the cart.

regards

Vincent

clashar's picture
Offline
Joined: 04/20/2012
Juice: 3
Ubercart Domain Access

Have someone tried patch for D7 http://drupal.org/node/946574 for Ubercart Domain Access module: http://drupal.org/project/uc_domain ?