Ok, I am aware that when using the paypal_ipn module, the order gets added to the DB before the customer goes to Paypal web site, but stock level doesn't go down *YET* on the purchased items.
Then payment is done, customer is redirected to checkout_process.php, and stock gets sutracted, emails get sent, etc.
Problem comes when the customer does not return to the store for whatever reason, that the item will be sold but stock won't be sutracted... I hope this won't be a big deal, and that most people will go back to the store after doing the payment.
---
Ok, I went too fast. Checking out paypal_ipn.php I see that stock gets sutracted from there, AND emails also get sent from there, on function confirmation() which I suppose is called from checkout_process.php. I wouldn't even have noticed if it wasn't because I had modified the emails that get sent from checkout_process.php so the subject would be "EMAIL_TEXT_SUBJECT (# order number)" instead of just "EMAIL_TEXT_SUBJECT", and I noticed that my test purchases did not have the order number on the subject.
Wonder why they would be sending the email from there, instead of leting checkout_process.php handle it...?
I would say I am not even asking for anything on this post. What was the answer...? Oh well.





LinkBack URL
About LinkBacks







Bookmarks