11 replies [Last post]
ezdev's picture
Offline
Joined: 03/17/2010
Juice: 47
Was this information Helpful?

I have not been able to replicate this issue, however, two people have reported the same problem. It seems that they add items to cart but when they view the cart they are told the cart is empty.

I am not using the latest versions of IE or Firefox and I'm thinking that this might be a browser issue.

Has anyone experienced this problem. I am running Drupal 6 and Ubercart.

Cliff

scottrouse's picture
Offline
Joined: 05/25/2010
Juice: 10
"There are no products in your shopping cart."

I'm definitely having this issue, and I've been banging my head against the wall trying to figure out the issue all morning.

I'm running the latest browsers on Mac. Issue happens to anonymous users on Safari, FF and Chrome on Mac. I haven't tested on IE/Windows, although I believe it is happening there, as well.

I discovered it today when my client reported that she had not received an email about a pending UC order which was submitted on 5/24. The order was in the log, so the cart issue must have not been happening then. I went to make a test order today (to check the email notifications) and was unable to add any items to my cart. When logged in, I am able to add without any issues.

On 5/23, I updated the following modules on my site (previous stable release to current stable release):

  • ctools
  • filefield
  • imageapi
  • imagefield
  • logintoboggan
  • panels
  • views_slideshow

Other than those module updates (and some scheduled sql db backups), no other actions had been performed on the site that could have caused this issue (to my knowledge).

You can attempt to replicate the issue on the live site at http://curriculumsystems.com but please do not complete the checkout process (unless you'd like to purchase something) as this is the live site.

Anyone have any thoughts?

Thanks,
Scott

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Re: "There are no products in your shopping cart."

Just checked it out and I get the same thing on http://curriculumsystems.com

Just wondering what your using to redirect to SSL from product page to the cart?

scottrouse's picture
Offline
Joined: 05/25/2010
Juice: 10
Secure Pages

I'm using the Secure Pages module.

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Give this a shot. Go to your

Give this a shot.

Go to your database table users and make sure anon users id is set to 0
Try with cache on or off
Make sure your permission settings are set correctly

scottrouse's picture
Offline
Joined: 05/25/2010
Juice: 10
Amazing

You are amazing, alien73.

There was no user 0 in my users table for some reason. (I have no idea why.) I added a record with UID of 0 and now items can be added to the cart by anonymous users. I would have never thought of that.

Any ideas as to why that may have happened all of a sudden?

Thank you, also, to Cliff for bringing this issue up here (so I could find it with Google).

-Scott

alien73's picture
Offline
Bug Finder
Joined: 11/10/2007
Juice: 450
Re: Amazing

It could be a number of things..

importing users?
upgrading?

Glad you got it rolling!

scottrouse's picture
Offline
Joined: 05/25/2010
Juice: 10
Import

I did import a large number of users when the project was just launching, but that was months ago. The anonymous shopping cart has certainly worked since then. I guess it could be somehow related to the recent module updates I did, though I'm not sure.

In any case, thanks a ton for your help!

-Scott

amcoms's picture
Offline
Joined: 04/04/2012
Juice: 38
anon user not working on new install

I have this issue and have a anon user set in the db with 0

logged in as admin can add to cart and view but logged out it's a different story

any ideas?

Thanks
A

manolis's picture
Offline
Joined: 08/04/2008
Juice: 35
Re: Shopping Cart Empty reported when items were in cart or supp

The uid 0 solution doesn't always work, I'm using SSL for my whole site and the anonymous
users see "View your shopping cart." instead of the whole cart.
Try it your self, if you haven't loged in and you change http to https you will see that
you can't use the cart..
Does anyone know how to make it work?

cheers

amcoms's picture
Offline
Joined: 04/04/2012
Juice: 38
cart items added do not show for anon users

Given this issue goes right back to 2007 5 years on and it's still an issue, Are there any reasons and explanations to be found except create a user with 0? Which does not work!!

I would have thought it would have been a little better documented for this much heralded ubercart solution!

Why are all these OS projects so lacking in step by step setups and guidelines, it makes setting up and developing a PITA

I find it incredible that a simple feature like

a visitor looks at a website and adds something in a cart to the basket but it doesn't display! WhY????

Andrew

amcoms's picture
Offline
Joined: 04/04/2012
Juice: 38
cart items added do not show for anon users

Given this issue goes right back to 2007 5 years on and it's still an issue, Are there any reasons and explanations to be found except create a user with 0? Which does not work!!

I would have thought it would have been a little better documented for this much heralded ubercart solution!

Why are all these OS projects so lacking in step by step setups and guidelines, it makes setting up and developing a PITA

I find it incredible that a simple feature like

a visitor looks at a website and adds something in a cart to the basket but it doesn't display! WhY????

Andrew