osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Duplicate Orders

This is a discussion on Duplicate Orders within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; My shop has been up and running for quite some time. All of a sudden, today, I'm getting duplicate orders. ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 02-12-2008, 11:24 AM
Member
 
Join Date: Jun 2005
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
driwashsolutions
Default Duplicate Orders

My shop has been up and running for quite some time. All of a sudden, today, I'm getting duplicate orders. Not only is the order duped, it's charging the CC twice as well.

Anyone else experience this, and if so what's the fix?

John

PS: I should mention that is is only occurring when the Linkpoint CC module is used during checkout. If I submit an order with "Phone/Fax CC info, the order is not duped.

Last edited by driwashsolutions; 02-12-2008 at 11:30 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-11-2008, 11:21 AM
New Member
 
Join Date: Mar 2005
Posts: 18
Thanks: 2
Thanked 4 Times in 1 Post
Rep Power: 0
avibodha is on a distinguished road
Default Re: Duplicate Orders

I'm seeing this with Authorize.net with heavy traffic also...no clue yet..

I'm thinking:
someone clicks Submit Order....pause...click it again
in the meantime, the first order is waiting for authorize.net (or linkpoint) to respond.

when second click comes in, another transaction is sent to authorize.net and leads to a second duplicate order and charge
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-11-2008, 02:35 PM
New Member
 
Join Date: Mar 2005
Posts: 18
Thanks: 2
Thanked 4 Times in 1 Post
Rep Power: 0
avibodha is on a distinguished road
Default Re: Duplicate Orders

Well I think I know what's happening...

Submit -> start order 1 -> send packet to authorize.net/linkpoint via Curl (process waits)

User presses Submit again -> start order 2 -> send packet, wait for authorize.net/linkpoint/paypal

order 1 -> process order...but, transaction cancelled by browser on second submit, does not return anything to user.

order 2 -> processed order...return order #2 to browser and checkout_success (or error, back to payment)...

Now, what to do...ideally, set a session flag on order submit, then on second submit if flag set, need to wait for order result from 1st transaction and return that result to browser....this sounds like a lot of work....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 03-11-2008, 03:43 PM
New Member
 
Join Date: Mar 2005
Posts: 18
Thanks: 2
Thanked 4 Times in 1 Post
Rep Power: 0
avibodha is on a distinguished road
Default Re: Duplicate Orders

Here's a "pretty good" solution. Doesn't completely solve the problem but will help mitigate it:

in checkout_confirmation.tpl.php (in template directory)

around line 210, where it makes the form, use this code below:

----------------
echo tep_draw_form('checkout_confirmation', $form_action_url, 'post',
'name="orderform" id="orderform" onsubmit="btnSubmit.disabled=true; document.images.imgworking.src = \'images/ajax-loader.gif\'; " ');

if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
echo '<img src="images/pixel_trans.gif" border="0" id="imgworking" >';
echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER, ' name="btnSubmit" id="btnSubmit" ') . '</form>' . "\n";
----------------

this disables the submit button and loads an ajax spinner while they wait. you can find the graphic if you search google images.

good luck,
---avibodha
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to avibodha For This Useful Post:
JohnW (03-19-2008), judoka (08-02-2008), met00 (03-13-2008), michael_s (03-11-2008)
  #5  
Old 03-12-2008, 10:25 PM
New Member
 
Join Date: Mar 2005
Posts: 18
Thanks: 2
Thanked 4 Times in 1 Post
Rep Power: 0
avibodha is on a distinguished road
Default Re: Duplicate Orders

We just had a "pulse" test, 60 orders in just a few minutes. Previously we had 150 orders in 15 minutes and had about 7 duplicates.

Today, no duplicates. So I'd say it's a success for us. (We do kids camp registrations where there are limited seats and very motivated parents)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 07-20-2008, 12:50 AM
Lurker
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mafiouso is on a distinguished road
Default Re: Duplicate Orders

i don't have templates and tried this it didn't work
i have the same problem. some times it takes a little while to load and the customer presses again.

can you help make this work?

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Duplicate Category Name polarbaby osCMax v2 Features Discussion 4 01-29-2008 01:12 PM
Duplicate Shipping Modules ChrisP666 osCMax v2 Customization/Mods 1 10-01-2007 08:34 PM
duplicate number of orders entered.. what am i to do? ogilirca osCommerce 2.2 Modification Help 0 09-25-2006 11:15 AM
Get duplicate orders in customers orders heaven osCommerce 2.2 Discussion 0 11-07-2005 04:29 AM
Duplicate installation Lotte osCommerce 2.2 Installation Help 0 05-19-2005 08:57 AM


All times are GMT -8. The time now is 08:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax