Community Add-Ons

Maintainers: vincentdemers
Add file to this package
Top » Features

Save order on checkout_confirmation.php page
for osCommerce Online Merchant v2.2

I have a modified store with a particular payment module that uses a popup window... What happens sometimes is that the customer somehow gets confused during checkout and closes the payment popup window before being redirected to my shopping cart (checkout_process.php).

The result is that payment is being processed but the order isn't recorded in admin. Terrible!

The solution I have found for this is to record the order whenever checkout_confirmation.php gets called. When the customer clicks on the 'submit order' button at the bottom of the checkout_confirmation page, payment is being process through the my payment provider’s popup and when the customer gets back to my store, checkout_process.php gets called updating the order information inserted on checkout_confirmation, updating stocks & sending final emails.

Once installed, orders are recorded each time a customer gets to checkout_confirmation.php. Filtering paid and unpaid orders is easy since you can configure your payment module to update the table orders_status_history once payment gets completed. Unpaid orders simply will not show the payment module's messages.

Now if a customer closes the popup before being redirect to my cart, I still have all the order info in admin panel.

This module instructs you on how to modify your OSC installation so that the order gets recorded in DB whenever a customer hits the checkout_confirmation.php page.

Legend:  Download   Report
Expand All / Collapse All
Save order on checkout_confirmation.php page vincentdemers 17 Feb 2008  

There was a error in previously uploaded file. Please follow instructions in these files.

Save order on checkout_confirmation.php page vincentdemers 17 Feb 2008