I have been struggling with this for hours now... It seems that every time I think I have found a fix (after perusing thousands of messages!), it doesn't work.
Ok, the problem is this: when I return from paypal after confirming the order, my shopping cart still shows the order. This is making people think that there order hasn't gone through, and the item is "Out of Stock" now.
However, The order is properly processed (inv reduced, email sent, IPN results ok) - but the cart is not emptied. And yes, I do return to my cart from paypal, so that is not it...
As for other problems I have encountered, we are also NOT getting the discount applied (paypal_IPN sends amount before discount, even though it shows the discount applied in checkout_confirmation.php page). I'm sure that these problems are probably related.
So, to sum up: how do I get the shopping cart to empty after a successful purchase?
Bryce