To do this within the clear cart code you can just borrow from the continue shopping code. Just after this line of code in your clear cart:
Redirect_redirStr=""'_redirStr
Add in this to set the redirect string to the page the user was on when they added to the cart:
if (true AND cStr(Session("WAEC_ContinueRedirect")) <> "") then
Redirect_redirStr=Session("WAEC_ContinueRedirect")
end if
So in the end the combined code would look like this:
<%
' 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 (true AND cStr(Session("WAEC_ContinueRedirect")) <> "") then
Redirect_redirStr=Session("WAEC_ContinueRedirect")
end if
if (Redirect_redirStr <> "") then
birdie_redirStr = Redirect_redirStr
end if
birdie_cartAction = "ClearCart"
end if
%>
This session variable is set when you add to cart to record the current page, this is for the continue shopping but I think it will do what you are wanting in this case as well. Let me know if this is not what you were looking for.