tfittsy Posted January 28, 2007 Posted January 28, 2007 I've got a few oscommerce stores. Some of them occasionally double charge the customer and put two orders in the admin. I'm just working on another one (I did modify the checkout pages fairly heavily) and now it does double inserts on every single purchase. I would imagine if I was testing with credit card numbers it would double charge them. The checkout_process is only being called once. What could cause double orders every single time? And on the other sites what could cause it occasionally? I tried installing a javascript contribution to disable the submit button after it was clicked but we still got double orders. I also tried writing something in the checkout_process code that would check the last order that a customer made and made sure it was at least 120 seconds earlier. When I did that it wouldn't let me check out two times in less than two minuts, but when it did let me check out it ran it twice again. It makes me think the code is being run twice at the same time. Any help would be greatly appreciated.
FridayNight Posted January 28, 2007 Posted January 28, 2007 my problem is similar... the shop processes two orders (with counted up order numbers + two confirmation mails) when internet explorer is used! @tfittsy: did you tried firefox or opera? ... everything works allright with firefox or opera in my shop. Anybody an idea what the problem of the two orders can be? or where the problem must be located?
tfittsy Posted January 29, 2007 Author Posted January 29, 2007 my problem is similar... the shop processes two orders (with counted up order numbers + two confirmation mails) when internet explorer is used! @tfittsy: did you tried firefox or opera? ... everything works allright with firefox or opera in my shop. Anybody an idea what the problem of the two orders can be? or where the problem must be located? I've tried it with firefox and I can confirm that it works properly. I don't know what IE would have to do with processing the order twice though. I am using IE7. Which version of internet explorer are you using?
FridayNight Posted January 29, 2007 Posted January 29, 2007 ... the same is it maybe a session problem?
FridayNight Posted January 29, 2007 Posted January 29, 2007 ... would be great if a oscommerce pro can give us some support :-"
tfittsy Posted January 29, 2007 Author Posted January 29, 2007 I have tried it in IE 6 and it also does double orders in that version. Have any others experienced this? I don't have any idea where to start.
tfittsy Posted January 29, 2007 Author Posted January 29, 2007 Did you edit your checkout pages at all? On my site that is doing the double orders I have added another box that is similar to the comments box and also on the shipping option page I added a delivery date and delivery time. I have plenty of other osC sites that don't have this problem (at least not with every purchase.) and I think it could have been one of the changes I made, except for the fact that it works fine in FF and not at all in IE.
FridayNight Posted January 29, 2007 Posted January 29, 2007 pretty sure that i installed at least one contribution affecting the checkout would it help if we compare some files?
tfittsy Posted January 29, 2007 Author Posted January 29, 2007 pretty sure that i installed at least one contribution affecting the checkout would it help if we compare some files? I suppose it could, but I don't even know which files it could be. it could be anything from the orders.php class file to the checkout_shipping, payment, confirmation, or process files.
FridayNight Posted January 29, 2007 Posted January 29, 2007 you're right, no idea where to start debugging ... and after all i am just an average php coder ... so, if somebody want's to have a look at some of my files please, your're very welcome!
FridayNight Posted January 29, 2007 Posted January 29, 2007 i try to find a working backup from my shop and compare it with my latest one... this will take some time ...
FridayNight Posted January 29, 2007 Posted January 29, 2007 ... the first three backups didn't work, seems like the problem is older than I expected ... @tfittsy: maybe you try the same?
northerndreamer Posted January 29, 2007 Posted January 29, 2007 My store had it's first double order on 1/28/07. The customer was charged twice on their CC. I'm see 3 instances of checkout_success about 1 or two minutes apart, looking at my visitors report. This is weird.
FridayNight Posted January 29, 2007 Posted January 29, 2007 @northerndreamer: did you also tested firefox/opera against internet explorer?
FridayNight Posted January 30, 2007 Posted January 30, 2007 Finally I found a working backup ... so which file compare first? (actually I continue working on this problem ... after a couple hours sleep)
northerndreamer Posted January 30, 2007 Posted January 30, 2007 @northerndreamer: did you also tested firefox/opera against internet explorer? I don't have either installed, so no I haven't tried it.
tfittsy Posted January 30, 2007 Author Posted January 30, 2007 ... the first three backups didn't work, seems like the problem is older than I expected ... @tfittsy: maybe you try the same? My backups all seem to show the same problem. I'll try to find something a little further back.
FridayNight Posted January 30, 2007 Posted January 30, 2007 checked: checkout_process.php - minimal changes, some metatags checkout_success.php - minimal changes, some metatags checkout_confirmation.php - minimal changes, some metatags includes/classes/order.php - no changes
FridayNight Posted January 30, 2007 Posted January 30, 2007 files don't match--------------------- admin\agb\agb.odt admin\agb\agb.pdf admin\agb\agb.txt admin\includes\boxes\reports.php admin\includes\boxes\tools.php admin\includes\functions\general.php admin\includes\languages\english\categories.php admin\includes\languages\english\customers.php admin\includes\languages\english\invoice.php admin\includes\languages\english\orders.php admin\includes\languages\english\orders_status.php admin\includes\languages\german\categories.php admin\includes\languages\german\customers.php admin\includes\languages\german\invoice.php admin\includes\languages\german\orders.php admin\includes\languages\german\orders_status.php admin\includes\languages\english.php admin\includes\languages\german.php admin\includes\column_left.php admin\includes\configure.php admin\includes\database_tables.php admin\includes\filenames.php admin\.htaccess admin\categories.php admin\customers.php admin\invoice.php admin\orders.php admin\orders_status.php includes\boxes\categories.php includes\boxes\information.php includes\boxes\manufacturers.php includes\boxes\shopping_cart.php includes\boxes\whats_new.php includes\classes\boxes.php includes\classes\payment.php includes\functions\general.php includes\functions\html_output.php includes\languages\english\checkout_process.php includes\languages\english\checkout_shipping.php includes\languages\english\checkout_success.php includes\languages\english\create_account.php includes\languages\english\index.php includes\languages\german\modules\order_total\ot_total.php includes\languages\german\modules\payment\moneyorder.php includes\languages\german\about_us.php includes\languages\german\account_history_info.php includes\languages\german\advanced_search.php includes\languages\german\agb.pdf includes\languages\german\agb.txt includes\languages\german\checkout_confirmation.php includes\languages\german\checkout_payment.php includes\languages\german\checkout_process.php includes\languages\german\checkout_success.php includes\languages\german\conditions.php includes\languages\german\contact_us.php includes\languages\german\create_account.php includes\languages\german\index.php includes\languages\german\print_order.php includes\languages\german\privacy.php includes\languages\german\shipping.php includes\languages\german\sitemap.php includes\languages\english.php includes\languages\german.php includes\modules\customer_testimonials.php includes\modules\dynamic_mopics.php includes\modules\new_products.php includes\modules\product_listing.php includes\modules\product_specials.php includes\modules\star_product.php includes\application_top.php includes\configure.php includes\database_tables.php includes\filenames.php includes\print_header.php about_us.php account.php account_edit.php account_history.php account_history_info.php account_newsletters.php account_notifications.php account_password.php address_book.php address_book_process.php advanced_search.php advanced_search_result.php allmanufacturers.php checkout_confirmation.php checkout_payment.php checkout_payment_address.php checkout_process.php checkout_shipping.php checkout_success.php conditions.php conditions_print.php contact_us.php cookie_usage.php create_account.php create_account_success.php customer_testimonials.php dynamic_mopics.css featured_products.php index.php info_shopping_cart.php login.php logoff.php password_forgotten.php popup_image.php popup_search_help.php privacy.php product_info.php product_reviews.php product_reviews_info.php product_reviews_write.php products_new.php reviews.php shipping.php shopping_cart.php sitemap.php specials.php ssl_check.php stylesheet.css tell_a_friend.php Which file shall I examine next?
FridayNight Posted January 31, 2007 Posted January 31, 2007 ... just to many files ... I try to find the two backups which follow each other and compare them ...
FridayNight Posted January 31, 2007 Posted January 31, 2007 ... there is no other way ... I have to find and solve this double order ie problem ... @tfittsy: is your checkout ssl secured?
FridayNight Posted February 1, 2007 Posted February 1, 2007 This is really a hard one! I tried a lot things in the configure.php but unfortunately without success... HELP! :'(
FridayNight Posted February 2, 2007 Posted February 2, 2007 ... switched off ssl ... with no effect ... still two orders with IE ... 8 backups and still no progress ... :'(
tfittsy Posted February 2, 2007 Author Posted February 2, 2007 ... switched off ssl ... with no effect ... still two orders with IE ... 8 backups and still no progress ... :'( my checkout page does have ssl. It does the same thing whether it's on or off.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.