Update Breaks Anonymous Shopping Cart

Created on 18 January 2018, almost 7 years ago
Updated 16 October 2024, about 1 month ago

There seems to be a problem with Commerce Kickstart 2.51 update. I have two sites both of which are running Drupal 7.56. Both have received updates [site one: CK 2.49 to 2.51] and [site two: CK 2.50 to 2.51]. All of a sudden both of the sites are having issues displaying shopping cart items to anonymous users. Besides the regular updates of CK, no other permissions have been changed or modules updated.

If I may add, when an item is added;

  1. Shopping Cart Modal pops up for anonymous user, but no items is listed in pop-up window
  2. When Anonymous user go to the shopping cart page, it says the shopping cart is empty
  3. Despite #1 and #2, when an admin goes to the active order page admin/commerce/orders, one can see the anonymous shopping cart items

I've come across similar post online but here are my take on those solutions;

  1. They suggest; Anonymous user role has not been deleted.
    It is still intact in the database
  2. They suggest: Change permission to allow Anonymous Users to View Any Product Type.
    I'm reluctant to do this as it's a security risk in my opinion
  3. They suggest: Change settings for multiple views, by disabling SQL Rewrite
    This is also a security risk as Drupal tells you this when you try to disable SQL Rewrite

Thanks for your help in advance.

πŸ› Bug report
Status

Fixed

Version

2.51

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States npoku

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024