Returning to Previous page When Clearing Cart
I was looking for something that would automatically take the visitor back to the page that got him/her to the cart.asp page.
I do not want to add another Continue Shopping button.
It should do the redirect immediately and without any further human intervention. Probably somewhere around the "WA eCart Clear Cart" block of code (somewhere around line 18 of cart.asp. I have attached the code below.
<%
' WA eCart Clear Cart
if (cStr(Request.Form("birdie_Clear_100")) <> "" OR cStr(Request.Form("birdie_Clear_100.x")) <> "") then
set birdie = WA_eCart_ClearCart(birdie)
Redirect_redirStr=""'_redirStr
if (Redirect_redirStr <> "") then
birdie_redirStr = Redirect_redirStr
end if
birdie_cartAction = "ClearCart"
end if
%>