close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart - random blank order emails

Thread began 3/01/2017 9:24 am by rob75685 | Last modified 3/16/2017 11:32 am by Ray Borduin | 802 views | 10 replies |

rob75685

eCart - random blank order emails

hi guys

I have eCart running on a site - www.earlyyearsdirect.com - for a few years now.

Occasionally something happens like this: the order receipt is received by email, followed by another 5 which are blank... see attachments.

Bit of a weird one as it doesn't happen every time. All emails have the same SagePay order no.

Any ideas to get me started ? Every time I test it works fine.

Thanks for your help as always

Sign in to reply to this post

Ray BorduinWebAssist

I could take a look. I'm not sure I could spot a problem, but I might be able to come up with a solution so that repeat orders wouldn't send repeat emails.

Sign in to reply to this post
Did this help? Tips are appreciated...

rob75685

hi Ray

Thanks for your help with this, I've attached the eCart files plus the checkout page which sends the email. Just let me know if there's anything really obvious that would cause repeat emails with empty orders.

The checkout page does forward on to another page (attached)

Let me know if you need anything else

Sign in to reply to this post

Ray BorduinWebAssist

Can I see the email body page? I'm going to add a check on the top of the checkout page to make sure the variables are set that are in the empty emails and not send when they are.

Sign in to reply to this post
Did this help? Tips are appreciated...

rob75685

hi Ray, yes of course - attached

thanks very much

Attached Files
WAUE_success_2.php
Sign in to reply to this post

Ray BorduinWebAssist

On line 97 of the checkout success page you have your trigger:
if (("" == "")) {

I see the cart is empty when you get the blank emails, so you can probably just update that to:
if ((!$eCart1->EOF())) {

And that will prevent them from sending out. I'm not exactly sure what would cause that intermittently, but this should be a viable solution.

Sign in to reply to this post
Did this help? Tips are appreciated...

rob75685

thanks Ray I'll drop this in place

Sign in to reply to this post

rob75685

hi Ray

That's now had the effect of generating 20+ repeating emails with the order details...

I've had to revert back, so any other thoughts?

thanks
Rob

Sign in to reply to this post

Ray BorduinWebAssist

That doesn't make any sense. The original trigger is:
if (("" == "")) {

Which is essentially "always"

Updating the trigger to:
if ((!$eCart1->EOF())) {

Means "if the cart isn't empty". I can't imagine any way that an added condition can cause more emails to be sent. Is there another page that might be sending the email?

Sign in to reply to this post
Did this help? Tips are appreciated...

rob75685

hi Ray

No... there's a second page that's directed to after the email post... but that has no scripts, see attached

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...