rockstardev
rockstardev

Reputation: 13537

Adding to cart shows "there are no products in your shopping cart"?

If I am logged in, and I click on "buy now", it takes me to the shopping cart where I can checkout. However, if I'm not logged in and I click on "buy now", it says:

There are no products in your shopping cart.

You can test it by going to http://www.nordbruch.org and clicking on Buy Now anywhere.

Any ideas as to why?

Upvotes: 0

Views: 967

Answers (2)

Sahil Gupta
Sahil Gupta

Reputation: 78

The problem can be due :

  1. If your website is recently migrated : Then There must be problem with your mysql database . Try checking your "users" table in the database and see if the anonymous user uid is SET to 0, if not then make it 0 .

  2. SSL problem like you are using secure-pages etc module.. You can try setting the $base_url variable in your settings.php file.

You can try re-importing the database or you can import it to your local machine to check if its working there or not.

Hope this helps.

Upvotes: 1

Muhammad Reda
Muhammad Reda

Reputation: 27053

If you can add products to shopping cart while you are logged in, then the functionality works fine.

It could be a permission issue. I have a very limited experience with ubercart. Try to go to admin/people/permission and check if anonymous users have the permission to add to cart (or whatever ubercart calls it).

Upvotes: 0

Related Questions