%@ Language=VBScript %> <% '************************************************************************* ' DO NOT MODIFY THIS SCRIPT IF YOU WANT UPDATES TO WORK! ' Function : Order Discount 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 'DiscOrder dim idDiscOrder dim discCode dim discPerc dim discAmt dim discFromAmt dim discToAmt dim discStatus dim discOnceOnly dim discValidFrom dim discValidTo 'Work Fields dim I dim action '************************************************************************* '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 %>
Order Discount Maintenance
|
Discount Code - Mandatory. Unique
alpha-numeric code that will be entered by the customer
to qualify for a discount. Don't use any special characters
or spaces. Order Amount From - Mandatory. The minimum total order amount (excluding taxes and shipping) required to qualify for the discount. Order Amount To - Mandatory. The maximum total order amount (excluding taxes and shipping) required to qualify for the discount. Discount Percentage - Optional if Discount Amount is entered. The percentage of the the total order amount (excluding taxes and shipping) that will be deducted from the order total. Discount Amount - Optional if Discount Percentage is entered. The amount of the the total order amount (excluding taxes and shipping) that will be deducted from the order total. Status - Mandatory. A discount has to be "Active" to be available for use. To prevent a discount from being used, set this to "InActive" or "Used". Discounts that can only be used once (see below), will automatically be set to "Used". Use Once Only? - Mandatory. If set to "Yes", the system will automatically update the status to "Used" after the first time the discount has been applied by any customer. Date Valid From - Mandatory. The date from which the discount will be valid (DD/MM/YYYY). Date Valid To - Mandatory. The date from which the discount will no longer be valid (DD/MM/YYYY). |