%@ Language=VBScript %> <% '************************************************************************* ' DO NOT MODIFY THIS SCRIPT IF YOU WANT UPDATES TO WORK! ' Function : Customer 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, rs2 'Customer dim idCust dim status dim dateCreated dim dateCreatedInt dim name dim lastName dim customerCompany dim phone dim email dim password dim address dim city dim locState dim locState2 dim locCountry dim zip dim paymentType dim shippingName dim shippingLastName dim shippingPhone dim shippingAddress dim shippingCity dim shippingLocState dim shippingLocState2 dim shippingLocCountry dim shippingZip dim futureMail dim generalComments dim taxExempt dim affiliate dim commPerc 'Work Fields dim action dim orderCount dim affCount '************************************************************************* '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 %>
Customer Maintenance
| Name | <%=name & " " & lastName%> |
| Company | <%=customerCompany%> |
| <%=email%> | |
|
Customer Status - To prevent a customer from logging on to
their account and viewing their Orders, set the Status to
"InActive". Tax Exempt - If set to "Yes", taxes will NOT be calculated on orders placed by this customer. If set to "No", taxes will be calculated as normal. Mailing List - If set to "Yes", the customer will be included in newsletter distributions. This is also known as 'Opted In'. Affiliate - If set to "Yes", the customer will be able to use their customer ID for affiliate sales. You will also need to enter a commission percentage for the customer. If the field shows "Applied", it means the customer applied to become an affiliate and is awaiting approval. Affiliate Report - Enter a Start/End date to generate an affiliate sales report for this customer. Only paid orders are included in the report. Totals exclude taxes and shipping. Affiliate Link - To allow an affiliate to link to your store and receive commission for the referral, the link must be constructed in a specific way. Notably, the link must include the variable "idAff", with the Affiliate ID as the value of this variable. The Affiliate ID is the same as the Customer ID. For example, for this customer, the link would be : <%=urlNonSSL%>default.asp?idAff=<%=idCust%> Comments - These are private "notes" on the Customer. Any text entered into this field can NOT be viewed by the Customer. Other Fields - You can modify other customer information including their billing and shipping address (optional). For maximum flexibility, the form is only checked to ensure that any mandatory fields are entered. |