Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Double Orders


tfittsy

Recommended Posts

Posted

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.

Posted

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?

Posted
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?

Posted

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.

Posted

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.

Posted
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.

Posted

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!

Posted

... the first three backups didn't work, seems like the problem is older than I expected ...

 

@tfittsy: maybe you try the same?

Posted

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.

Posted

Finally I found a working backup ... so which file compare first?

 

(actually I continue working on this problem ... after a couple hours sleep)

Posted
... 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.

Posted

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

Posted
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?

Posted

... there is no other way ... I have to find and solve this double order ie problem ...

 

@tfittsy: is your checkout ssl secured?

Posted
... 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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...