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

Redirect on Add to Cart not redirecting

Thread began 7/26/2010 10:15 am by Gareth.TannattNash253613 | Last modified 7/27/2010 11:39 am by Gareth.TannattNash253613 | 844 views | 7 replies


Redirect on Add to Cart not redirecting


Help I'm experiencing some fun in that the redirect on add to cart buton pressed is not redirecting, it merely refreshes the page?

my test & development design site can be seen here - flower.asp?id=1&Roses+S-delivered-in-Bortsmouth-by-Bortsmouths-premier-florist-Design+Florist+Site

(Please ignore the design as it is in development) and should once add to cart is pressed (on either product) should redirect to here -


but it fails?

my code looks like this (part of)-

' WA eCart AddToCart
if (cStr(Request.Form("FloristWebCart_3_ATC")) <> "" OR cStr(Request.Form("FloristWebCart_3_ATC.x")) <> "") then
ATC_itemID = cStr(Request.Form("FloristWebCart_3_ID_Add"))
ATC_AddIfIn = 0
ATC_RedirectAfter = "cart/cartso.asp"
ATC_RedirectIfIn = ""
ATC_RSPos = ProductPrice3.AbsolutePosition
DO while (NOT ProductPrice3.EOF)
if (cStr(ProductPrice3.Fields("ID").value) = cStr(ATC_itemID)) then
ATC_itemName = "" & cStr((ProductPrice3.Fields.Item("Name").Value)) & ""' column binding
ATC_itemDescription = "" & cStr((ProductPrice3.Fields.Item("ProductDescription").Value)) & ""' column binding
ATC_itemWeight = cDbl("0")' column binding
ATC_itemQuantity = "" & cStr(Request.Form("FloristWebCart_3_Quantity_Add")) & ""' column binding
ATC_itemPrice = cDbl("" & cStr((ProductPrice3.Fields.Item("Price").Value)) & "")' column binding
Exit DO
end if
ProductPrice3.AbsolutePosition = ATC_RSPos
if (IsNumeric(ATC_itemQuantity) AND ATC_itemQuantity <> 0) then
set FloristWebCart = FloristWebCart_AddToCart(ATC_AddIfIn, ATC_RedirectIfIn, ATC_itemID, ATC_itemName, ATC_itemDescription, ATC_itemWeight, ATC_itemQuantity, ATC_itemPrice)
if (ATC_RedirectAfter <> "" AND FloristWebCart_redirStr = "") then
FloristWebCart_redirStr = ATC_RedirectAfter
end if
Session("WAEC_ContinueRedirect") = cStr(Request.ServerVariables("Script_Name")) & "?" & cStr(Request.QueryString())
end if
end if

What have I missed?

Thanks in advance

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





Ease of use


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