%@ Language=VBScript %> <% '************************************************************************* ' DO NOT MODIFY THIS SCRIPT IF YOU WANT UPDATES TO WORK! ' Function : Order 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 'cartHead dim idOrder dim idCust dim idAffiliate dim orderDate dim orderDateInt dim randomKey dim subTotal dim taxTotal dim shipmentTotal dim Total dim shipmentMethod dim name dim lastName dim customerCompany dim phone dim email dim address dim city dim locState dim locCountry dim zip dim shippingName dim shippingLastName dim shippingAddress dim shippingCity dim shippingLocState dim shippingLocCountry dim shippingZip dim paymentType dim cardType dim cardNumber dim cardExpMonth dim cardExpYear dim cardVerify dim cardName dim generalComments dim orderStatus dim auditInfo dim storeComments dim storeCommentsPriv 'cartRows dim idCartRow dim idProduct dim sku dim quantity dim unitPrice dim unitWeight dim description 'CartRowsOptions dim idCartRowOption dim idOption dim optionPrice dim optionDescrip 'Work Fields dim I dim item dim count dim pageSize dim totalPages dim showArr dim sortField dim delUordHours dim curPage dim showStatus dim showField dim showPhrase '************************************************************************* '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 = 20 'Get Page to show curPage = Request.Form("curPage") 'Form if len(curPage) = 0 then curPage = Request.QueryString("curPage") 'QueryString end if 'Get showStatus showStatus = Request.Form("showStatus") 'Form if len(showStatus) = 0 then showStatus = Request.QueryString("showStatus") 'QueryString end if 'Get showField showField = Request.Form("showField") 'Form if len(showField) = 0 then showField = Request.QueryString("showField") 'QueryString end if 'Get showPhrase showPhrase = Request.Form("showPhrase") 'Form if len(showPhrase) = 0 then showPhrase = Request.QueryString("showPhrase") 'QueryString end if 'Check if a Cookie Reset was requested if Request.QueryString("resetCookie") = "1" then Response.Cookies("OrderSearch").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 = "OrderSearch" then showArr = Split(Request.Cookies(item),"*|*") curPage = showArr(0) showStatus = showArr(1) showField = showArr(2) showPhrase = showArr(3) end if next else 'Save Search Criteria in a Cookie Response.Cookies("OrderSearch") = navCookie(curPage) Response.Cookies("OrderSearch").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 '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 = "idOrder DESC" end if %>
Order Maintenance
| Bulk Modifications |
|
No Orders matched search criteria. |
|||||||
| <% call pageNavigation("selectPageTop") %> | Sort : | ||||||
|
Find Orders(s) - You have several options for finding a
specific Order. Orders are displayed in Order Number sequence, with
the newest orders listed first. 1. You can list all Orders which contain a specific phrase in one of several Order fields. 2. You can list all Orders with a specified Order Status. Delete Unfinalized Orders - When a shopping cart is created by adding a product to the cart, a new order is created and assigned a status of "Unfinalized". The order will retain this status until the end of the checkout process, when the order status changes to "Pending". If the order is successfully paid, the order status will change to "Paid". In the event that the customer leaves the store without completing the checkout process, the order status will remain in the system as "Unfinalized". The good thing about this is that it gives you an idea of how many "abandoned" carts you get. After a while, you may remove them from the system to free up space. Authorize Payment - Click to authorize and process credit card payments for an order through Authorize.Net. This is only necessary if the payment has not already been authorized and processed during the checkout process, such as when you use Offline payments. This option will only be available if you activated it in your store's configurations. Invoice - Click to view a printable Invoice for the Order. Edit Order - Click to change Order Status and/or Information. Delete Order - Check the box next to order(s) you want to delete, and click "Yes". View Order - Click the Order Number to view an Order. View Customer - Click the Customer Name to view the Customer's detail. |