close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Send email on checkout success

Thread begun 10/16/2012 11:32 am by Joe Lowery | Last modified 10/16/2012 1:13 pm by Jason Byrnes | 2953 views | 8 replies |

Joe Lowery

Send email on checkout success

I'm trying to send a separate receipt to the client when someone checkouts successfully. The site is using Authorize.net SIM (remote checkout).

I put the Create Email Message sb on the checkout_success page and now am getting these error messages when I checkout:


Warning: require_once(../WA_eCart/muirhead_PHP.php) [function.require-once]: failed to open stream: No such file or directory in /home/muirhead/wwwroot/muirheadfoods.com/webassist/email/muirhead_receipt.php on line 4

Fatal error: require_once() [function.require]: Failed opening required '../WA_eCart/muirhead_PHP.php' (include_path='.:/usr/lib/php') in /home/muirhead/wwwroot/muirheadfoods.com/webassist/email/muirhead_receipt.php on line 4

I'm sure both muirhead_PHP.php and muirhead_receipt.php are on the remote server in their respective folders. What am I missing?

Thanks - Joe

Sign in to reply to this post

Jason ByrnesWebAssist

the error is saying that there is a require once line on the webassist/email/muirhead_receipt.php file, but there should not be a require once line on that file, it should not be in the email file itself, but in the file you applied Universal Email to.

Sign in to reply to this post

Joe Lowery

Okay, I removed that and now I'm getting the following:

Warning: require_once(../../Connections/connMuirhead_DB.php) [function.require-once]: failed to open stream: No such file or directory in /home/muirhead/wwwroot/muirheadfoods.com/webassist/email/muirhead_receipt.php on line 2

Fatal error: require_once() [function.require]: Failed opening required '../../Connections/connMuirhead_DB.php' (include_path='.:/usr/lib/php') in /home/muirhead/wwwroot/muirheadfoods.com/webassist/email/muirhead_receipt.php on line 2

I do have a recordset on the email page. Should I not have the connection call there?

- Joe

Sign in to reply to this post

Jason ByrnesWebAssist

the require once for the connection is only moving down 2 directories:
../../Connections/connMuirhead_DB.php

it needs to move down 3:
../../../Connections/connMuirhead_DB.php

Sign in to reply to this post

Joe Lowery

Inching close to a solution. I made that change and now get a new error:

Fatal error: Call to a member function GetContent() on a non-object in /home/muirhead/wwwroot/muirheadfoods.com/webassist/email/muirhead_receipt.php on line 4

Line 4 of that file reads: "$muirhead->GetContent();"

- Joe

Sign in to reply to this post

Jason ByrnesWebAssist

delete that line, it goes along with the eCart object include.

Sign in to reply to this post

Joe Lowery

Well, at least the failures are getting more impressive. The checkout appeared to go through and then, I got this on the screen:

===============

A new order for MuirheadFoods.com

Order Submitted: 10-16-2012 | 3:40 PM EDT
Order ID: 6756
["Order ID: 6756" was repeated about 30 times ]
Order ID: 6756

Fatal error: Call to a member function IsEmpty() on a non-object in /home/muirhead/wwwroot/muirheadfoods.com/webassist/email/muirhead_receipt.php on line 113

==============

The above (minus the repeating order ID # and error) was the start of the email and should not appear on screen?

What now? - Joe

(And thanks for slogging through this with me!)

Sign in to reply to this post

Joe Lowery

re: Send email on checkout success

So I realized that I had the order ID in the loop and removed it, but I still don't know what to do about the eCart objects that are used in the page. Can I not put a display-only cart on the emailed page?

I've attached the email template page as a zip file in hopes that will help.

Best - Joe

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

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