close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Block UEmail when cart is empty ?

Thread began 8/09/2012 1:31 am by Fritz Stickers | Last modified 8/10/2012 11:22 am by Jason Byrnes | 849 views | 10 replies |

Fritz Stickers

Block UEmail when cart is empty ?

Is it possible to block UEmail when the cart is empty ?
Some customers like to play around with the back-button and sent their order (empty) twice or even three times. Though when submitted the checkout-page, the cart is empty and the session is abandoned. But an email is sent.

Sign in to reply to this post

Jason ByrnesWebAssist

On the page with UE on it, there should be a Redirect If Empty Behavior, Move that behaviors code so it is before the UE code block, this will prevent the email from sending if the cart is empty.

Sign in to reply to this post

Fritz Stickers

Do you mean this piece of code ?

<%
' WA eCart Redirect
if (stickersBE_redirStr <> "") then
Response.Redirect(stickersBE_redirStr)
end if
%>



This is just before the "Session.Abandon" and <!DOCTYPE html .....

Sign in to reply to this post

Jason ByrnesWebAssist

yes, copy that code and place it before the UE code block.

Sign in to reply to this post

Fritz Stickers

Sorry, but that doesn't make a difference.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page please

Sign in to reply to this post

Fritz Stickers

Please see attach.

Attached Files
Redirect.zip
Sign in to reply to this post

Jason ByrnesWebAssist

sorry, i had the wrong code block, This page doesn't have a redirect if empty behavior on it.

Go to the server behaviors panel, click the plus button and select eCart -> General -> Redirect if empty to add one.

once it is added to the page, move it to be before the UE code block.

Sign in to reply to this post

Fritz Stickers

OK ... thanks ... that's working fine.

Sign in to reply to this post

Fritz Stickers

One little thing still occurs ...

When the customer clicks the back-button after he confirmed (on confirmed page) and submits the checkout page again, he will be redirected to the page from the "eCart Redirect If Empty" behaviour. No mail will be sent, that's ok.
Also there is no record added in the database, although the orderID-number of the following order increases with two.

Most likely is it due to "eCart Store Cart Summary (& Details) in Db" !?

Is there a way to prevent this ?

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