Closed (fixed)
Project:
Commerce Authcache
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2013 at 13:59 UTC
Updated:
11 May 2014 at 10:03 UTC
Jump to comment: Most recent
Comments
Comment #1
wadmiraal commentedThat's strange. I cannot reproduce this behavior. It works for me with anonymous carts (several anonymous users at once, all carts are different and correct for each user/session).
Did you try emptying your browser cache ? Force-reloading the page ?
Comment #2
jount commentedIt worked for me after disabling authcache debug mode.
I've been looking to php backtrace, and noticed that drupal_goto() was called with drupal_exit() after adding a product to cart, and "headers already sent" error appeared in Drupal logs. It seems anonymous session was not started because debug headers were sent from authcache on hook_exit. But I'm not 100% sure about it.
After disabling authcache's debug mode, everything worked for me. Hope this information will help people, who experience similar problem.
And thanks again for a great module!
P.S. For future UX improvement of the module - I think it would be great to have some ajax throbber indicating that cart block is currently loading.
Comment #3
wadmiraal commentedThanks for the information. This will certainly help other people as well.
As for the throbber, I fully agree. That's why I added a CSS class to the container while the AJAX request is made ;-). I do not want to add any styles or graphics to this module - I want it to be purely functional code. The class is "commerce-authcache-target". The div with this class will be replaced with the cart content. So you can add a throbber to the div background using CSS. It will disapear as soon as the content is replaced.
Comment #4
wadmiraal commentedChanging the status so other users with a similar problem find this.
Answer is in #2
Comment #5
wadmiraal commentedComment #6.0
(not verified) commentedfixed typos
Comment #7
willowdigit commentedI am experiencing a slightly different yet related problem. Refer to Tutorial: Commerce Kickstart 2 and Authcache 2 to Mario Baron's problem.
' if the user visited a few pages before adding a product to cart if for whatever reason that user leaves the cart and returns to one of the pages previously visited the shopping cart view will return the "Shopping cart empty" value even thou there is an item inside the shopping cart.'
He did not install Commerce Authcache, yet I did hoping it would solve that issue, yet it did not.
I have enabled the modules as per the tutorial referred to. Using Drupal 7.28, commerce_kickstart-7.x-2.14, Authcache 7.x-2.0-beta3, and Commerce Authcache 7.x-1.0-beta1+0-dev.
Comment #8
IckZ commentedI've the same Problem as WillowDigit. I've also enabled the same modules as he did. Can anyone confirm a bug or is this such a missing setting or anything else?