<% strPageTitle = Application("STORE_NAME") & " Shopping Cart" %> <% strPageKeywords = Application("STORE_NAME")%>
<% If Request("action") <> "" then Select Case LCase(Request("action")) Case "update" 'Update the Quantity for selected Products Dim objUpdateShoppingCartRS sRetrieveShoppingCart objUpdateShoppingCartRS With objUpdateShoppingCartRS if .eof = false then While NOT .eof If CStr(request("qty" & .fields("pk").value)) <> CStr(.fields("scratch_basket_quantity").value) then If IsNumeric(request("qty" & .fields("pk").value)) = True Then 'Update Quantity if request("qty" & .fields("pk").value) = 0 then fRemoveShoppingCartItem .fields("pk").value else fUpdateShoppingCartItemQuantity .fields("pk").value, request("qty" & .fields("pk").value) end if End If end if If request("chkPID" & .fields("pk").value) = "1" then 'Remove Item fRemoveShoppingCartItem .fields("pk").value end if .movenext Wend end if End With Set objUpdateShoppingCartRS = Nothing Case Else End Select end if Dim objShoppingCartRS sRetrieveShoppingCart objShoppingCartRS Dim strShoppingCart_Image Dim intShoppingCart_First Dim intShoppingCart_Last Dim intShoppingCart_Total Dim strShoppingCart_PageLinks Dim mnyShoppingCartItem mnyShoppingCartItem = 0 ShoppingCartSubTotal = 0 With objShoppingCartRS if .eof = false then sCalculateRecordCounts objShoppingCartRS, intShoppingCart_First, intShoppingCart_Last, intShoppingCart_Total strShoppingCart_PageLinks = fCalculatePageTotals(fGenerateLink("shopping_cart.asp"), .PageCount) %>
<% if Application("TABLE_BACKGROUND_CART") <> "" then %> <% else %> <% end if %>
What's in my Cart?" border="0" alt="What's In My Cart?" title=" What's In My Cart? ">




Displaying <%= intShoppingCart_First %> to <%= intShoppingCart_Last %> (of <%= intShoppingCart_Total %> shopping cart items)

Result Pages: <%= strShoppingCart_PageLinks %>

<% while .AbsolutePage = intCurrent_Page and not .eof if .fields("products_image").value <> "" then strShoppingCart_Image = .fields("products_image").value else strShoppingCart_Image = Application("PRODUCT_BLANK_IMAGE") end if mnyShoppingCartItem = Round( .fields("scratch_basket_quantity").value * fCalculateShoppingCartItem(.fields("fkproducts").value, .fields("products_options_values").value),2) ShoppingCartSubTotal = ShoppingCartSubTotal + mnyShoppingCartItem if intOddEven = True then %> <% end if intOddEven = NOT intOddEven %> <% if Request.Cookies("display") = "links" then %> <% .movenext Wend %>

REMOVE

" value="1">

"><%= (.fields("products_name").value) %><% if .fields("products_status").value = "0" then response.write " (** OUT OF STOCK **) " %> <% else %> "><%= .fields(" title=" <%= .fields("products_name").value %> " height="60"> "><%= (.fields("products_name").value) %><% if .fields("products_status").value = "0" then response.write " (** OUT OF STOCK **) " %> <% end if %> <% if .fields("products_options_values").value <> "" then 'Output ALL Product Options %>
<% sDisplayProductOptions .fields("products_options_values").value %> <% end if %>

QTY " value="<%= (.fields("scratch_basket_quantity").value) %>" size="4">

<%= strCurrencySymbol %><%= FormatNumber(mnyShoppingCartItem,2,-1,-1,-1) %>  




To delete a product or change the Quantity please make any changes and click on Update

Sub-Total: <%= strCurrencySymbol %><%= FormatNumber(ShoppingCartSubTotal,2,-1,-1,-1) %> 
"> Continue Shopping "> Checkout
<% Else 'No Items in cart Yet %>

YOUR SHOPPING CART IS CURRENTLY EMPTY...

<% End If End With Set objShoppingCartRS = Nothing %>