Forums / General Questions / Duplicate orders only when email is turned ON (using moneyorder module)

Duplicate orders only when email is turned ON (using moneyorder module)

Locked

Views: 794

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
9 Feb 2010, 6:33 PM
#1
jbhansen avatar

jbhansen

New Zenner

Join Date:
Dec 2006
Posts:
19
Plugin Contributions:
0

Duplicate orders only when email is turned ON (using moneyorder module)

We are having orders duplicated after they are submitted.

I think it's tied to the email being turned on (or off).

If email is turned on, orders process, get duplicated, and the confirmation email is sent, linked to the second of the two orders in the system.

If email is turned off, orders don't get duplicated, but obviously no emails are sent. This also makes our Contact Us page defunct.

Awhile back, I read somewhere that email processing is part of the checkout procedure and if the emails fail, the checkout might not complete properly. This seems to be the case.

has anyone any advice on how to troubleshoot this properly and find a solution? It just started this morning and as far as we can tell, none of our email settings - either in Zen-cart or locally on the email server - have changed.

By the way, I've seen a few threads on this subject, but but most of them have had to do with payment modules being tied into the checkout process, which we don't use. (We are a wholesale business and we process payments completely outside of zen-cart, so we just have the Check payment module modified to display "method on account" and that's the only option anyone has...)

Thanks much for any help.

9 Feb 2010, 6:35 PM
#2
jbhansen avatar

jbhansen

New Zenner

Join Date:
Dec 2006
Posts:
19
Plugin Contributions:
0

Re: Duplicate orders only when email is turned ON (using moneyorder module)

By the way, email in my zencart is set to smtpauth.

Also, we tried turning email on and setting the "Send Copy of Order Confirmation Emails To" field blank, but got the same errors as above.

Using zencart 1.3.8a, php 5.2.6, PHP memory limit 32MB

10 Feb 2010, 3:21 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Duplicate orders only when email is turned ON (using moneyorder module)

Are you able to replicate the problem yourself? ie: consistently, on demand?
Or is it just something that's happening with intermittent orders?

I'm guessing that maybe your email server is very slow in responding to attempts to connect and send messages, and thus your customers are being forced to wait while that takes place, and they end up clicking the Submit button a second time, thus aborting the first order attempt partway through, and then only completing the second one, thus the emails only showing the second link, not the first.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.