Hi!
I'm writing a shipping module. How can I execute a script (.php file) after the checkout is confirmed (for example, send an e-mail)?
This has to be an extension so I cannot write the code in success.php file.
Thank's!
Shipping methods PHP files are always executed when the user reaches the shipping stage in the checkout. Your only option is to add some code in the success.php file.
Remember you can use vQmod if you don't want to overwrite any code changes
Peter
Remember you can use vQmod if you don't want to overwrite any code changes

Peter
For OpenCart & PHP/MySQL support feel free to PM me
Click here for my extentions
Did I help you? Donate here to show support
alternative way would be to add that to the confirm function in model/checkout/order.php. That will ensure no one triggers your success.php easily without any order, and you always have the right order details
Who is online
Users browsing this forum: No registered users and 1 guest