...when in fact there are items in the cart.

I first noticed that the block was working fine and showed several items in my cart. Then after just a page refresh the block would display "No product in cart".

This also started happening after clicking on links, say if I was in the cart section then I clicked on my store page link, after loading the store page the block would again return "No product in cart."

I am using drupal 6.14 and Ubercart 6.x-2.0

Comments

erik seifert’s picture

Assigned: Unassigned » erik seifert

Could be a cache issue. Try with another browser ?

florissantti’s picture

Version: 6.x-2.x-dev » 6.x-2.0-alpha7

I too get this same problem on all different browsers (firefox/safari/IE). It gets fixed when page caching is set from "normal" to "none."

erik seifert’s picture

I think best solution is to install http://drupal.org/project/cacheexclude and add following path:

uc_ajax_cart/*

bismigalis’s picture

I have the same problem. It is not only "No product in cart" at random, but previous state of ajax cart block at random e.g.
I had some products in the cart and after removing they appear on some pages etc.

I think this is becouse response on path 'uc_ajax_cart/show' is caching somehow somewhere, but I dont now where

solution in #3 didnt helped me

when general cache settings is off then module work like a charm

erik seifert’s picture

@see

I think best solution is to install http://drupal.org/project/cacheexclude and add following path:
uc_ajax_cart/

bismigalis’s picture

erikseifert thanx for trying help , but I uderstood just now this module not compatible with general cache setting on. This merely ajax-for-cool module. But I was need cache on for anonymous and therefor installed this module.

erikseifert thanx for cool module anyway, I will hack it for my needs

erik seifert’s picture

Ok. Next alph8 version will have supprot for "normal" cache

erik seifert’s picture

Status: Active » Reviewed & tested by the community

Please test ;- )

erik seifert’s picture

Version: 6.x-2.0-alpha7 » 6.x-2.0-alpha8
tunic’s picture

Status: Reviewed & tested by the community » Fixed

Almost a year without comments so this bug seems to be fixed :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.