Good day!
I hope this is the right section and I have searched forums for solution to my problem, unsuccessfully.
SO, payment module used is "PayPal IPN - Website Payments Standard".
After client is redirected from paypal having successfully paid for chosen product the checkout_success page is shown for previous product not the one that just have been bought. After page reload everything looks fine and order history is OK. Looks like the order insert query is happening after the page is loaded. I've temporarily put sleep(1) in a header of checkout_success and it works but there should be a better solution for this. Any thoughts please?



