Using Kickstart 2.

From the Product Display page. When someone hits the Add To Cart button, the Add To Cart Confirmation overlay only appears when someone is assigned the Admin role. Everyone else gets no indication that an item has been added to the cart.

It's not merely enough to have the Admin Overlay menu enabled. You have to be the actual administrator role.

The Add To Cart Confirmation JS appears to be loaded for all authenticated users and the Rule fires for all users... apparently the js isn't matching with the expected class, but I haven't gotten further than that.

Any ideas? How do I troubleshoot this?

Comments

suntower’s picture

Issue summary: View changes
suntower’s picture

Issue summary: View changes
suntower’s picture

Category: Support request » Bug report
Priority: Normal » Major
rickycheers’s picture

Hi! Were you able to solve the issue?

We just had a similar problem, hope our solution also works for you. It turned out that the "anonymous" user was removed some how (we're not sure why yet), so, we had to take it back into the DB and the problem was solved.

This is what you need to execute in MySQL to create it again.

INSERT INTO users (name, pass, mail, theme, signature, language, init, timezone) VALUES ('', '', '', '', '', '', '', '');
UPDATE users SET uid = 0 WHERE name = '';

For further information in how to restore the anonymous user, see the following documentation.
https://www.drupal.org/node/1029506

ultrandy89’s picture

I also have this problem, I have user 0 and ran the query above just in case. I looked on page and js/css are loaded for my other roles, it just does not work.

oscarpc’s picture

I just had the same problem. The reason was that I enabled the "Disable messages" module. This module removes permission to all roles except admin, to view messages, and allows to give permission per role, to see messages type 'status', 'warning' and 'error'. However all other personalized messages are hidden.

Add To Cart Confirmation sends the message via drupal_set_message ('....', 'commerce-add-to-cart-confirmation') in one of the last lines of commerce_add_to_cart_confirmation.rules.inc and therefore this custom message type "commerce-add-to-cart-confirmation" was hidden.

In general, any code or module that prevents you from displaying messages, either general or custom message type, can cause this problem.

deggertsen’s picture

Is this an issue on the dev version as well? Has anybody tried it?

deggertsen’s picture

Status: Active » Closed (cannot reproduce)

Closing RC2 issues. If this is still a problem in RC3 please reopen and change to rc3.