close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email on Last Page, not Confirmation

Thread began 6/28/2011 8:35 am by codamedia | Last modified 6/29/2011 7:27 am by Jason Byrnes | 853 views | 1 replies |

codamedia

Email on Last Page, not Confirmation

I placed an email confirmation on the last page of the checkout (the succes page).

Also on the success page, at the very bottom of the page is code provided in these forums to clear the cart. This code (being at the bottom) allows the order confirmation to display, then clears the cart. If the person reloads the page - it shows as a blank order. (exactly what I want)

The problem I have is with the trigger for the email.

1: If I set it for when the page loads it works fine. Problem is, if the person refreshes the page it sends it again, of course with a blank receipt.

Preferred method
2: If I set it to send ONLY if the eCart object is not empty, it never sends. The email code is near the top of the page so the code to clear the cart should not intefere, but it seems to be.

Any suggestions?

Sign in to reply to this post

Jason ByrnesWebAssist

the To address should use a session variable. in the Universal email wizard double check the variable name being used for the to address, then click the lightning bolt next to trigger and select that variable.


you may also want to add code to specifically unset that variable at the bottom of the page.

for example if the to address variable is $_SESSION['email'] add this case at the bottom of the page:

php:
<?php if(isset($_SESSION['email'])) unset($_SESSION['email']); ?>
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...