11 replies [Last post]
cwittusen's picture
Offline
Joined: 01/30/2008
Juice: 86
Was this information Helpful?

Hi:
I have just finished configuring my web site and I'm testing it right now to add product as anonymous; when I do this, the product (shopping cart block) doesn't show, not even a link indicating that I have added a product. However, if I log in, then it all of suddenly shows.

This is of course not what I'm looking for and I have searched high and low for a resolution but don't seem to find one, I have found post about this being a issue and undesired behavior but not a solution. I don't use cache so it isn't the cache messing it up, I also set the block to show even if its empty. When I had it displaying even though it is empty, the products would not be added into the shopping cart even when I added them and this only occurred when I was using it as anonymous.

Any help with this is greatly appreciated; I'm using Drupal 6.x and Ubercart ubercart-6.x-2.0-rc3

Regards,
Chris

park27's picture
Offline
Joined: 06/18/2009
Juice: 6
Re: Shopping Cart not displaying for anonymous users

I had the same problem, solved it by disabling caching at admin/settings/performance.

pavelgee's picture
Offline
Joined: 11/30/2009
Juice: 4
Hmmm, it can't be the right

Hmmm, it can't be the right solution - we need cache, too!
Let's hope there's a workaround before we go live.

Time Lost's picture
Offline
Joined: 11/12/2010
Juice: 5
Shopping Cart not displaying for anonymous users in Caching Mode

Was this ever solved anywhere? I am running into the same problem now and the site is supposed to go live next week!
When Caching mode is turned on 'Normal' the cart does not show whats in the cart for anonymous users.
When caching mode is turned off, everything works fine.

Any solutions? Thanks!

longwave's picture
Offline
Joined: 09/20/2008
Juice: 487
Re: Shopping Cart not displaying for anonymous users in Caching

Disable cache, or use the uc_ajax_cart module to load the cart block via AJAX. Normal caching means the entire HTML page is cached for anonymous users, which would include the cart block - so they would see a cached copy of the cart, which would contain the wrong items (probably none).

--
These forums are for general support questions about Ubercart.
Bug reports and feature requests should be posted at http://drupal.org/project/issues/ubercart
Latest API documentation can be found at http://api.ubercart.me/

ledom's picture
Offline
Joined: 10/08/2008
Juice: 81
Re: Re: Shopping Cart not displaying for anonymous users in Cach

Something new about this? got this problem on ubercart 2.4
Disabling cache it is not really a solution...

Time Lost's picture
Offline
Joined: 11/12/2010
Juice: 5
Re: Shopping Cart not displaying for anonymous users

I did try using uc_ajax_cart but it still had the problem.

jakonta's picture
Offline
Joined: 03/02/2011
Juice: 14
Re: Re: Shopping Cart not displaying for anonymous users

I was having this issue as well (without the uc_ajax_cart module) and was really frustrated by it. Turns out it was working but Firefox wasn't displaying the changes to the site. I am using normal drupal page caching and after clearing out cookies / cache the cart block started showing up for anonymous users.

shadowmihai's picture
Offline
Joined: 03/29/2011
Juice: 10
No solution Yet

drupal 7 - anonymous users can't see cart blocks at all. Caching doesn't seem to be the problem. I read the above and no help. Any other solutions?

shadowmihai's picture
Offline
Joined: 03/29/2011
Juice: 10
Anonymous Users Cannot See Cart

In my case, they can see the category cart view but cannot drill down past the top level.

I have searched everywhere for an answer:

1. This is NOT a caching problem; all caching is turned off at both Drupal core and website level.

2. This is NOT a permissions designation issue; permissions are *identical* for anonymous and authenticated users.

3. This SEEMS POSSIBLY to be a views issue, but access permissions on the catalog view uc_catalog are set to "none" so there should be no restriction. I tested by setting the views permissions to those with permission to "view published content" and then to "view catalog" with no change in behavior.

4. Have found no similar issues posted on the Views issues pages. I see nothing here that helps me...

Any ideas anyone!

===== [EDIT]=========

Okay, in this case, it appears to be a conflict with the module Organic Groups (OG7 for Drupal 7) and the way it controls access to content. Changing permissions and access within OG makes no difference at all. Neither does clearing caches and rebuilding permissions. The only way to get the catalog view back for anonymous viewers is to uninstall OG and then rebuild permissions.

=====[EDIT 2]========
The Simple Access module also causes this problem - even if you don't create any access groups or rules, which is supposed to allow all content to remain public. It doesn't. Again, the only way to reinstate the anonymous view is to uninstall Simple Access and rebuild permissions. The the uc_catalog view works again.

RogueM's picture
Offline
Joined: 06/14/2011
Juice: 5
Re: Anonymous Users Cannot See Cart

shadowmihai, you are right in number 1, but wrong in number 2, this is permission related... enable 'Bypass content access control' for Anonymous users and watch in amazement your catalog view coming back to life!

And yes, this is very f**ed up, but right now, that's all I can tell you, though I suspect the ACL module is part of the problem.

RogueM's picture
Offline
Joined: 06/14/2011
Juice: 5
Re: Re: Anonymous Users Cannot See Cart

This was indeed due to the ACL module in my case (required by the Forum Access module on our site).

I found the following module that resolved my problem, and I suspect similar access restrictions on taxonomy terms that may result from installing the ACL or content-control related modules:

http://drupal.org/project/tac_lite

The D7 port is in its infancy and throws a log of notices and warning into the watchdog logs, but at least it seems to work with no operational issue for me. YMMV.