Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2009 at 21:56 UTC
Updated:
14 Apr 2009 at 13:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
Island Usurper commentedOn the order complete page, it looks like the items are still in the cart, which should look empty by that point. This is caused by the call to uc_cart_get_contents() in uc_cart_empty() because it caches its results in a static variable. The cart block calls that function again before the next page load, so the customer can see their old cart.
Here's a new patch that resets the cart cache after it is emptied.
Comment #2
mikey_p commentedSubscribing
Comment #3
mikey_p commentedThis seems to work as advertised, I'm trying to do some work with conditional actions operating on nodes as they are added to and removed from a cart, and have implemented a hook as seen below, and it seems to work as expected:
Comment #4
Island Usurper commentedGood to hear. Committed.