% Dim strMsg if request("action") = "process" then 'Check and save our submitted data if request("shipping_method") <> "" then if Len(request("order_comments")) > 250 then strMsg = strMsg & "Please keep your comments to under 250 Characters" else fUpdateOrderShipping Session("CustomerID"), request("shipping_method"), request("order_comments") response.Redirect("checkout_payment.asp?sid=" & strSessionID) end if else strMsg = strMsg & "Please specify your preferred Shipping Method" end if end if 'Do we have any items in our basket? Dim ShoppingCartCheckRS 'Recordset Object Set ShoppingCartCheckRS = fGetShoppingCartContents with ShoppingCartCheckRS if .eof = false then 'How much do we have currently have? while not .eof ShoppingCartSubTotal = ShoppingCartSubTotal + Round( .fields("scratch_basket_quantity").value * fCalculateShoppingCartItem(.fields("fkproducts").value, .fields("products_options_values").value),2) .movenext Wend else 'No Items response.Redirect(fGenerateLink("shopping_cart.asp")) end if end with Set ShoppingCartCheckRS = Nothing fStartCheckoutProcess Session("CustomerID") 'Is it Electronic Delivery Only? If fElectronicOnlyShipping(Session("CustomerID")) = True then fUpdateOrderShipping Session("CustomerID"), 0, "" response.Redirect("checkout_payment.asp?sid=" & strSessionID) End If %> <% strPageTitle = Application("STORE_NAME") & " Checkout" %> <% strPageKeywords = Application("STORE_NAME")%>
|
|