%@ Language=VBScript %> <% '************************************************************************* ' DO NOT MODIFY THIS SCRIPT IF YOU WANT UPDATES TO WORK! ' Function : Product Maintenance ' Product : CandyPress Store Administration ' Version : 2.5 ' Modified : February 2004 ' Copyright: Copyright (C) 2004 CandyPress.Com ' See "license.txt" for this product for details regarding ' licensing, usage, disclaimers, distribution and general ' copyright requirements. If you don't have a copy of this ' file, you may request one at webmaster@candypress.com '************************************************************************* Option explicit Response.Buffer = true const adminLevel = 1 %> <% 'Database dim mySQL, cn, rs 'Products dim idProduct dim description dim descriptionLong dim details dim relatedKeys dim price dim listPrice dim imageURL dim smallImageURL dim sku dim stock dim weight dim active dim hotDeal dim homePage dim fileName dim noShipCharge dim reviewAllow dim reviewAutoActive dim sortOrder 'Work Fields dim I dim item dim count dim pageSize dim totalPages dim showArr dim sortField dim curPage dim showPhrase dim showField dim showStart dim showCat dim showActive dim showHome dim showSpecial dim showShip dim showReview '************************************************************************* 'Open Database Connection call openDB() 'Store Configuration if loadConfig() = false then response.redirect "sysMsg.asp?errMsg=" & server.URLEncode("Could not load Store Configuration settings.") end if 'Set Row Colors dim rowColor, col1, col2 col1 = "#DDDDDD" col2 = "#EEEEEE" 'Set Number of Items per Page pageSize = 50 'Get Page to show curPage = Request.Form("curPage") 'Form if len(curPage) = 0 then curPage = Request.QueryString("curPage") 'QueryString end if 'Get showPhrase showPhrase = Request.Form("showPhrase") 'Form if len(showPhrase) = 0 then showPhrase = Request.QueryString("showPhrase") 'QueryString end if 'Get showField showField = Request.Form("showField") 'Form if len(showField) = 0 then showField = Request.QueryString("showField") 'QueryString end if 'Get showStart showStart = Request.Form("showStart") 'Form if len(showStart) = 0 then showStart = Request.QueryString("showStart") 'QueryString end if 'Get showCat showCat = Request.Form("showCat") 'Form if len(showCat) = 0 then showCat = Request.QueryString("showCat") 'QueryString end if 'Get showActive showActive = Request.Form("showActive") 'Form if len(showActive) = 0 then showActive = Request.QueryString("showActive") 'QueryString end if 'Get showHome showHome = Request.Form("showHome") 'Form if len(showHome) = 0 then showHome = Request.QueryString("showHome") 'QueryString end if 'Get showSpecial showSpecial = Request.Form("showSpecial") 'Form if len(showSpecial) = 0 then showSpecial = Request.QueryString("showSpecial") 'QueryString end if 'Get showShip showShip = Request.Form("showShip") 'Form if len(showShip) = 0 then showShip = Request.QueryString("showShip") 'QueryString end if 'Get showReview showReview = Request.Form("showReview") 'Form if len(showReview) = 0 then showReview = Request.QueryString("showReview") 'QueryString end if 'Check if a Cookie Reset was requested if Request.QueryString("resetCookie") = "1" then Response.Cookies("ProdSearch").expires = Date() - 30 else 'Check if a Cookie Recall was requested if Request.QueryString("recallCookie") = "1" then for each item in Request.Cookies if item = "ProdSearch" then showArr = Split(Request.Cookies(item),"*|*") curPage = showArr(0) showPhrase = showArr(1) showField = showArr(2) showStart = showArr(3) showActive = showArr(4) showHome = showArr(5) showSpecial = showArr(6) showShip = showArr(7) showReview = showArr(8) showCat = showArr(9) end if next else 'Save Search Criteria in a Cookie Response.Cookies("ProdSearch") = navCookie(curPage) Response.Cookies("ProdSearch").expires = Date() + 30 end if end if 'After attempting to retrieve the search criteria through the various 'mechanisms above (Form/QueryString/Cookie), check that some of the 'critical values are valid. If not, set to default values. if len(curPage) = 0 or not isNumeric(curPage) then curPage = 1 else curPage = CLng(curPage) end if if len(showField) = 0 then showField = "SKU" end if 'Check what we will be sorting the results on sortField = Request.Form("sortField") 'Form if len(sortField) = 0 then sortField = Request.QueryString("sortField") 'QueryString end if if len(sortField) = 0 then sortField = "SKU" end if %>
Product Maintenance
| Add New Product |
|
No Products matched search criteria. |
||||||||||||
| <% call pageNavigation("selectPageTop") %> | Sort : | |||||||||||
|
Overview - Products are the heart of your store. Each
product can be linked to one or more Categories, and can have
one or more Option Groups linked to them. You can also set
Product Discounts for each product, create Product Groups, and
much more. Abbreviations - To conserve space in the product listing, some of the headings have been shortened.
Edit Product - Change Product information. You can also add or remove the product from a Category, add or remove Option Groups and Product Discounts, and much more. Delete Product - Check the box(es) next to the Product(s) you want to delete and click "Yes" at the bottom. |