%
'Display Product Specific Includes
Include_TellAFriend = True
Include_Specials = False
Include_Best_Sellers = False
Dim strProduct_InfoOptions
strProduct_InfoOptions = ""
Dim intProduct_Info_i
Dim strProduct_InfoChosenOptions
if Request.form("action") <> "" then
select case LCase(Request.Form("action"))
case "add_product"
if request("pid") <> "" then
if request("POCount") <> "" then
For intProduct_Info_i = 1 to Int(request("POCount"))
if strProduct_InfoOptions <> "" then
strProduct_InfoOptions = strProduct_InfoOptions & "," & CLng(request("PO" & intProduct_Info_i))
else
strProduct_InfoOptions = CLng(request("PO" & intProduct_Info_i))
end if
strProduct_InfoChosenOptions = strProduct_InfoChosenOptions & "|" & CLng(request("PO" & intProduct_Info_i)) & "|"
Next 'intProduct_Info_i
end if
sAddItemToShoppingCart request("pid"), strProduct_InfoOptions
end if
end select
end if
'Update our Counter for this product
sUpdateProductViewed (request("pid"))
Dim objProduct_InfoRS
Set objProduct_InfoRS = fRetrieveProductInfo(request("pid"))
Dim objProduct_Options
Set objProduct_Options = fRetrieveProductAttributes(request("pid"))
Dim mnyProduct_Price
Dim mnyProduct_SpecialPrice
Dim strProduct_Image
With objProduct_InfoRS
if .eof = false then
if .fields("products_pagetitle").value <> "" then strPageTitle = .fields("products_pagetitle").value
if .fields("products_pagedescription").value <> "" then strPageDescription = .fields("products_pagedescription").value
if .fields("products_pagekeywords").value <> "" then strPageKeywords = .fields("products_pagekeywords").value
end if
%>
<%
if .eof = false then
'Set our Current Manufacturer
intCurrManufacturer = .fields("fkmanufacturers").value
Include_manufacturer_info = True
if .fields("products_image").value <> "" then
strProduct_Image = .fields("products_image").value
else
strProduct_Image = Application("PRODUCT_BLANK_IMAGE")
end if
%>
<%
End If
End With
Set objProduct_Options = Nothing
Set objProduct_InfoRS = Nothing
%>