<%'// Storewide Settings // private const scVersion = "4.6b" private const scSubVersion = "" private const scSP = "0" private const scRegistered = "124588" private const scCompanyName = "Quest Nutrition" private const scCompanyAddress = "4712 Admiralty Way, Suite 670" private const scCompanyZip = "90292" private const scCompanyCity = "Marina del Rey" private const scCompanyState = "CA" private const scCompanyCountry = "US" private const scCompanyPhoneNumber = "888-212-0601" private const scCompanyFaxNumber = "310-933-0331" private const scCompanyLogo = "quest%20logo3.jpg" private const scMetaTitle = "" private const scMetaDescription = "" private const scMetaKeywords = "" private const scQtyLimit = 100 private const scAddLimit = 100000 private const scPre = 0 private const scCustPre = 0 private const scBTO = 1 private const scAPP = 0 private const scCM = 0 private const scMS = 0 private const scCatImages = 1 private const scShowStockLmt = 0 private const scOutOfStockPurchase = 0 private const scCurSign = "$" private const scDecSign = "." private const scDivSign = "," private const scDateFrmt = "MM/DD/YY" private const scMinPurchase = 1 private const scWholesaleMinPurchase = 20 private const scURLredirect = "" private const scSSL = "1" private const scSSLUrl = "https://www.questproteinbar.com" private const scIntSSLPage = "1" private const scPrdRow = 3 private const scPrdRowsPerPage = 12 private const scCatRow = 3 private const scCatRowsPerPage = 4 private const bType = "P" private const scStoreOff = "0" private const scStoreMsg = "This store is temporarily off line. This downtime should only last 5-10 minutes. Please check back in a few moments.

We apologize for this inconvenience." private const scWL = 0 private const scTF = -1 private const scorderLevel = "0" private const scDisplayStock = 0 private const scHideCategory = 0 private const AllowNews = 0 private const NewsCheckOut = 0 private const NewsReg = 0 private const NewsLabel = "" private const PCOrd = 0 private const HideSortPro = 0 private const scViewPrdStyle = "C" private const DFLabel = "" private const DFShow = "0" private const DFReq = "0" private const TFLabel = "" private const TFShow = "0" private const TFReq = "0" private const DTCheck = "0" private const DeliveryZip = "0" private const CustomerIPAlert = "0" private const scOrderName = "1" private const scHideDiscField = "0" private const scAllowSeparate = "0" private const ReferLabel = "How did you hear about us?" private const ViewRefer = 1 private const RefNewCheckout = 0 private const RefNewReg = 0 private const sBrandLogo = 0 private const sBrandPro = 0 private const RewardsActive = 0 private const RewardsIncludeWholesale = 0 private const RewardsPercent = 0 private const RewardsLabel = "Reward Points" private const RewardsReferral = 1 private const RewardsFlat = 1 private const RewardsFlatValue = 0 private const RewardsPerc = 0 private const RewardsPercValue = 0 private const pcQDiscountType = 0 private const iBTODisplayType = 0 private const iBTOOutofStockPurchase = 0 private const iBTOShowImage = 0 private const iBTOQuote = 0 private const iBTOQuoteSubmit = 0 private const iBTOQuoteSubmitOnly = 0 private const iBTODetLinkType = 0 private const vBTODetTxt = "View Details" private const iBTOPopWidth = 400 private const iBTOPopHeight = 500 private const iBTOPopImage = 1 private const scConfigPurchaseOnly = 1 private const scTerms = 0 private const scTermsShown = 1 private const scShowSKU = 0 private const scShowSmallImg = -1 private const scHideRMA = 0 private const scShowHD = 1 private const scStoreUseToolTip = 0 private const scErrorHandler = 1 private const scDisableGiftRegistry = "1" private const scAllowCheckoutWR = 0 private const scSeoURLs = 0 private const scSeoURLs404 = "" private const scQuickBuy = 0 private const scATCEnabled = 0 private const scRestoreCart = 0 private const scXML = ".3.0" private const scGuestCheckoutOpt = 1 private const scAddThisDisplay = 0 private const scGoogleAnalytics = "" '// Storewide Settings // %> <%private const scCrypPass="KWVTLEWVXVWCPPINV063680102124" private const scDSN="Provider=sqloledb;Data Source=vps-quest2-mssql.cognecy.com,1433;Network Library=DBMSSOCN;Initial Catalog=mosborn_qpbDB;User Id=mosborn_qpbadmin;Password=WRUK4buswaDe;" private const scDB="SQL" private const scStoreURL="http://www.questproteinbar.com/"%> <% on error resume next 'function to open your database connection function openDB() on error resume next set connTemp=server.createobject("adodb.connection") 'Open your connection connTemp.Open scDSN if err.number <> 0 then response.redirect "dbError.asp" response.End() end if end function 'function to close your database connection function closeDB() on error resume next connTemp.close set connTemp=nothing end function %> <% if session("language")="" then session("language")="english" end if dim dictLanguage set dictLanguage=CreateObject("Scripting.Dictionary") ' english dictLanguage.Add "english_instPrd_A", "Your session was lost. If you get this message again, then make sure that you have cookies enabled in your browser." dictLanguage.Add "english_instPrd_B", "The product cannot be added to the shopping cart.

There are too many items already in your shopping cart. This store has set a limitation to the amount of different products you can purchase at once. The limit is " & scQtyLimit & " products (and " & scAddLimit & " units of each product).

If you would like to purchase the product that you are attempting to add to the shopping cart, please remove at least one other item from the shopping cart, then try adding the selected product again." dictLanguage.Add "english_instPrd_C", "The selected quantity is not allowed.

The quantity you specified exceeds the maximum number of units that you may purchase for any product on this store. The limit is " & scAddLimit & " units. Please reduce the quantity and try again." dictLanguage.Add "english_instPrd_D", "This item no longer exist in the database." dictLanguage.Add "english_instPrd_E", "Items options not available." dictLanguage.Add "english_advSrca_1", "Search our product catalog" dictLanguage.Add "english_advSrca_2", "Category:" 'dictLanguage.Add "english_advSrca_3", "Supplier" dictLanguage.Add "english_advSrca_4", "All" dictLanguage.Add "english_advSrca_5", "Price:" dictLanguage.Add "english_advSrca_6", "From:" dictLanguage.Add "english_advSrca_7", "To:" dictLanguage.Add "english_advSrca_8", "In stock:" dictLanguage.Add "english_advSrca_9", "Keyword(s):" dictLanguage.Add "english_advSrca_10", "Search" dictLanguage.Add "english_advSrca_11", "Part number (SKU):" dictLanguage.Add "english_advSrca_12", "Filter by:" dictLanguage.Add "english_advSrca_13", "Brand:" dictLanguage.Add "english_advSrca_14", "Search on exact phrase." dictLanguage.Add "english_advSrca_15", "Results per page:" dictLanguage.Add "english_advSrca_16", "Sort by:" dictLanguage.Add "english_advSrca_17", "Product ID" dictLanguage.Add "english_advSrca_18", "SKU" dictLanguage.Add "english_advSrca_19", "Description" dictLanguage.Add "english_advSrca_20", "Low Price" dictLanguage.Add "english_advSrca_21", "High Price" dictLanguage.Add "english_advSrca_22", "You can narrow your search by using the following search filters. First select a value from the first drop-down menu, then from the second drop-down menu." dictLanguage.Add "english_advSrca_23", "Searching... Please Wait." dictLanguage.Add "english_advSrca_24", "Showing Top " dictLanguage.Add "english_advSrca_25", " Results" dictLanguage.Add "english_checkout_1", "Your cart is empty, therefore you cannot checkout." dictLanguage.Add "english_checkout_2", "Due to the costs involved with processing an online order, we are unable to accept orders with a total amount of less than " dictLanguage.Add "english_checkout_3", "Register or login to checkout." dictLanguage.Add "english_checkout_4", "If you are a returning buyer enter your login information." dictLanguage.Add "english_checkout_5", "E-mail" dictLanguage.Add "english_checkout_6", "Password" dictLanguage.Add "english_checkout_7", "Forgot your password?" dictLanguage.Add "english_checkout_8", "Registering takes just a few seconds. Register now, and you won't have to enter your personal information again the next time you visit our store." dictLanguage.Add "english_checkout_9", "New customer? Register now." dictLanguage.Add "english_checkout_10", "Already a customer? Log in below." dictLanguage.Add "english_checkout_11", "Your password has been e-mailed to you. Please check your e-mail now to retrieve it and enter it into the form above." dictLanguage.Add "english_checkout_12", " Required for US & CA" dictLanguage.Add "english_checkout_13", "Your account is not set up to place orders on this store. If you have any questions, please contact us." dictLanguage.Add "english_chooseShpmnt_1", "You must select a state or province" dictLanguage.Add "english_chooseShpmnt_2", "Your e-mail is already registered with this store.

You can retrieve your old password or register with a new one.

" dictLanguage.Add "english_chooseShpmnt_3", "Select:" dictLanguage.Add "english_chooseShpmnt_4", "Your account has been locked." dictLanguage.Add "english_chooseShpmnt_5", "Choose Shipping" dictLanguage.Add "english_cRec_1", "Your cart currently contains 0 items." dictLanguage.Add "english_cRec_2", "The quantity you specified exceeds the maximum number of units that you may purchase for any product on this store. The limit is " & scAddLimit & " units. Please reduce the quantity and try again." dictLanguage.Add "english_cRemv", "Enter an item to delete." dictLanguage.Add "english_Custmoda_1", "Modify personal information" dictLanguage.Add "english_Custmoda_2", "First Name: " dictLanguage.Add "english_Custmoda_3", "Phone: " dictLanguage.Add "english_Custmoda_4", "E-mail: " dictLanguage.Add "english_Custmoda_5", "Password: " dictLanguage.Add "english_Custmoda_6", "Address: " dictLanguage.Add "english_Custmoda_7", "Postal Code: " dictLanguage.Add "english_Custmoda_8", "City: " dictLanguage.Add "english_Custmoda_9", "Province: " dictLanguage.Add "english_Custmoda_10", "Country: " dictLanguage.Add "english_Custmoda_11", "Customer Number: " dictLanguage.Add "english_Custmoda_12", "Last Name: " dictLanguage.Add "english_Custmoda_13", "State: " dictLanguage.Add "english_Custmoda_14", "Company: " dictLanguage.Add "english_Custmoda_15", "You must enter a valid phone number." dictLanguage.Add "english_Custmoda_16", "You must enter a valid e-mail address" dictLanguage.Add "english_Custmoda_17", "Postal Code must be a numeric value for addresses within the United States, please use your 5 digit zip code." dictLanguage.Add "english_Custmoda_18", "One or more required fields were not filled in correctly. Please correct these fields and resubmit the form." dictLanguage.Add "english_Custmoda_19", "You must enter either a state or province." dictLanguage.Add "english_Custmoda_20", "The discount code that you entered is not valid." dictLanguage.Add "english_Custmoda_21", "Your account cannot be updated. The email address that you entered, already appears in our database for another user." dictLanguage.Add "english_Custmoda_22", "Receive the store newsletter" dictLanguage.Add "english_Custmoda_23", "Your ZIP code is not within our delivery area." dictLanguage.Add "english_Custmodb_1", "Your data has been modified" dictLanguage.Add "english_Custmodb_2", "You must select a State Code or Province, you cannot select both." dictLanguage.Add "english_Contact_1", "Contact us today! We'll get back to you as soon as possible." dictLanguage.Add "english_Contact_2", "Your Name:" dictLanguage.Add "english_Contact_3", "Your E-mail:" dictLanguage.Add "english_Contact_4", "Subject:" dictLanguage.Add "english_Contact_5", "Message:" dictLanguage.Add "english_Contact_6", "Customer Name: " dictLanguage.Add "english_Contact_7", "Customer Email: " dictLanguage.Add "english_Contact_8", "View/Edit Customer: " dictLanguage.Add "english_Contact_9", "Customer Service Request - " dictLanguage.Add "english_CustPref_1", "Account Menu" dictLanguage.Add "english_CustPref_2", "Track an order" dictLanguage.Add "english_CustPref_3", "Modify Personal Information" dictLanguage.Add "english_CustPref_4", "Logout" dictLanguage.Add "english_CustPref_5", "View Saved Products" dictLanguage.Add "english_CustPref_6", "Status: Wholesale Customer" dictLanguage.Add "english_CustPref_7", "" dictLanguage.Add "english_CustPref_8", "View Previous Orders" dictLanguage.Add "english_CustPref_9", "Start Shopping" dictLanguage.Add "english_CustPref_10", "Welcome back " dictLanguage.Add "english_CustPref_11", "Manage Shipping Addresses" dictLanguage.Add "english_CustPref_12", "Contact Us" dictLanguage.Add "english_Custva_1", "Enter authentication data" dictLanguage.Add "english_Custva_2", "Send" dictLanguage.Add "english_Custva_3", "Forgot your password?" dictLanguage.Add "english_Custva_4", "E-mail:" dictLanguage.Add "english_Custva_5", "Password:" dictLanguage.Add "english_Custva_6", "Already a customer? Log in below." dictLanguage.Add "english_Custva_7", "Not a member yet? Register " dictLanguage.Add "english_Custva_8", "Click here to have it e-mailed to you." dictLanguage.Add "english_Custvb_1", "The password you have entered does not match the one on record. Please try again." dictLanguage.Add "english_Custvb_2", "Your account has been locked." dictLanguage.Add "english_CustviewOrd_1", "Enter all required data." dictLanguage.Add "english_CustviewOrd_2", "You have no orders in this store." dictLanguage.Add "english_CustviewOrd_3", "Pending" dictLanguage.Add "english_CustviewOrd_4", "Shipped" dictLanguage.Add "english_CustviewOrd_5", "Cancelled" dictLanguage.Add "english_CustviewOrd_6", "Order Tracking" dictLanguage.Add "english_CustviewOrd_7", "Processed" dictLanguage.Add "english_CustviewOrd_8", "Date of order" dictLanguage.Add "english_CustviewOrd_9", "Order #" dictLanguage.Add "english_CustviewOrd_10", "Total Cost" dictLanguage.Add "english_CustviewOrd_11", "Status" dictLanguage.Add "english_CustviewOrd_12", "Tax:" dictLanguage.Add "english_CustviewOrd_13", "Shipping:" dictLanguage.Add "english_CustviewOrd_14", "Shipping & Handling Charges:" dictLanguage.Add "english_CustviewOrd_14b", "Processing Charges:" dictLanguage.Add "english_CustviewOrd_15", "Discount Code/Promotion:" dictLanguage.Add "english_CustviewOrd_15A", "Gift Certificate:" dictLanguage.Add "english_CustviewOrd_16", "You have accrued a total of " dictLanguage.Add "english_CustviewOrd_17", " on this purchase." dictLanguage.Add "english_CustviewOrd_18", "This order has been cancelled." dictLanguage.Add "english_CustviewOrd_19", "This order has been shipped" dictLanguage.Add "english_CustviewOrd_20", "Shipped To:" dictLanguage.Add "english_CustviewOrd_21", "Date shipped:" dictLanguage.Add "english_CustviewOrd_22", "Shipped Via:" dictLanguage.Add "english_CustviewOrd_23", "How to Return a Product: If you need to return all or part of this order " dictLanguage.Add "english_CustviewOrd_24", "request a Return Merchandise Authorization (RMA)" dictLanguage.Add "english_CustviewOrd_25", "Tracking No.:" dictLanguage.Add "english_CustviewOrd_26", "This order has been returned" dictLanguage.Add "english_CustviewOrd_27", "Return Date:" dictLanguage.Add "english_CustviewOrd_28", "Reason:" dictLanguage.Add "english_CustviewOrd_29", "Returned Merchandise Authorization (RMA): " dictLanguage.Add "english_CustviewOrd_30", "An RMA request has already been submitted for this order. If you would like to return another product that is also part of this order, please contact Customer Service to make a new request." dictLanguage.Add "english_CustviewOrd_31", "The RMA issued for the order is: " dictLanguage.Add "english_CustviewOrd_32", "Comments: " dictLanguage.Add "english_CustviewOrd_33", "View Printer-Friendly Version" dictLanguage.Add "english_CustviewOrd_34", "An RMA has been issued for this order." dictLanguage.Add "english_CustviewOrd_35", "You request for an RMA has been denied. Details pertaining to the request are below. If you would like to request an RMA for another product that is also part of this order, please contact Customer Service to make a new request." dictLanguage.Add "english_CustviewOrd_36", "The current status is: " dictLanguage.Add "english_CustviewOrd_37", "One or more products purchased as part of this order have been returned. If a credit has been issued, it should be displayed right below the order total on this page. If you have any questions about this order, please contact us." dictLanguage.Add "english_CustviewOrd_38", "Number of Packages: " dictLanguage.Add "english_CustviewOrd_39", "Delivery Date/Time: " dictLanguage.Add "english_CustviewOrd_40", "Order Name: " dictLanguage.Add "english_CustviewOrd_41", "Shipment Information: " dictLanguage.Add "english_CustviewOrd_42", "View Contents >> " dictLanguage.Add "english_CustviewOrd_43", "Estimated Number of Packages: " dictLanguage.Add "english_CustviewOrd_44", "Packages Shipped: " dictLanguage.Add "english_CustviewOrd_45", " of " dictLanguage.Add "english_CustviewOrd_46", "This order has been partially shipped" dictLanguage.Add "english_CustviewOrd_47", "Returns" dictLanguage.Add "english_rma_1", "

Return Merchandise Authorization (RMA)

Do you need to return a product that you purchased from us?

Fill out the form below to request an Return Merchandise Authorization (RMA). Please do not return any products until you have received a RMA from us.

" dictLanguage.Add "english_rma_2", "Order ID:" dictLanguage.Add "english_rma_3", "Product SKU (if any):" dictLanguage.Add "english_rma_4", "Product Name/Description:" dictLanguage.Add "english_rma_5", "Your Name:" dictLanguage.Add "english_rma_6", "Your Last Name:" dictLanguage.Add "english_rma_7", "Reason for Returning the Product(s):" dictLanguage.Add "english_rma_8", "Return Authorization Request Submitted

Your request for a Return Merchandise Authorization has been submitted.

We will review your request and get back to you as soon as possible. You can check the status of your RMA request through the View Previous Orders area of your account. If your request is approved, you will receive a Return Merchandise Authorization number.

Please DO NOT return products until you receive a Return Merchandise Authorization number.

Back" dictLanguage.Add "english_rma_9", "

You may now ship the product(s) to the address shown below.

Please clearly mark the package in which you will return the product(s) with your RMA. Make sure the product(s) are properly packaged.

Upon receipt of the product(s), a customer service representative will get back to you with information regarding whether or not the product(s) will be replaced or fixed." dictLanguage.Add "english_rma_10", "Ship the package to the following address:" dictLanguage.Add "english_rma_11", "Your order contained the following items:" dictLanguage.Add "english_CustviewPast_1", "You currently do not have any previous orders in this store." dictLanguage.Add "english_CustviewPast_2", "Order Date: " dictLanguage.Add "english_CustviewPast_3", "Order Details" dictLanguage.Add "english_CustviewPast_4", "Previous Orders" dictLanguage.Add "english_CustviewPast_5", "Order #" dictLanguage.Add "english_CustviewPast_6", "Order Date" dictLanguage.Add "english_CustviewPast_7", "Order Total" dictLanguage.Add "english_CustviewPast_8", "Repeat Order" dictLanguage.Add "english_CustviewPast_9", "Order Name" dictLanguage.Add "english_CustPastAdd_1", "Some items of your old cart couldn't be located." dictLanguage.Add "english_CustPastAdd_2", "Querystring data missing." dictLanguage.Add "english_CustPastAdd_3", "Session lost." dictLanguage.Add "english_CustPastAdd_4", "You cannot add more items." dictLanguage.Add "english_CustRega_1", "Customer registration" dictLanguage.Add "english_CustRega_2", "Name" dictLanguage.Add "english_CustRega_3", "Phone" dictLanguage.Add "english_CustRega_4", "Email" dictLanguage.Add "english_CustRega_5", "Password" dictLanguage.Add "english_CustRega_6", "Address" dictLanguage.Add "english_CustRega_7", "Zip" dictLanguage.Add "english_CustRega_8", "State" dictLanguage.Add "english_CustRega_9", "City" dictLanguage.Add "english_CustRega_10", "Country" dictLanguage.Add "english_CustRega_11", "Send" dictLanguage.Add "english_CustRega_12", "Last Name" dictLanguage.Add "english_CustRega_13", "Province" dictLanguage.Add "english_CustRega_14", "Company" dictLanguage.Add "english_CustRegb_1", "That email was already used in this store" dictLanguage.Add "english_CustRegb_2", "Thanks, your data was saved." dictLanguage.Add "english_CustRegb_3", "Please select State or Province, you cannot select both." dictLanguage.Add "english_CustSAmanage_1", "Manage Shipping Addresses" dictLanguage.Add "english_CustSAmanage_2", "Shipping Name" dictLanguage.Add "english_CustSAmanage_3", "View/Edit" dictLanguage.Add "english_CustSAmanage_4", "Delete" dictLanguage.Add "english_CustSAmanage_5", "Add new shipping address" dictLanguage.Add "english_CustSAmanage_6", "You have no shipping address." dictLanguage.Add "english_CustSAmanage_7", "New shipping address was added successfully!" dictLanguage.Add "english_CustSAmanage_8", "Shipping address was updated successfully!" dictLanguage.Add "english_CustSAmanage_9", "Shipping address was deleted successfully!" dictLanguage.Add "english_CustSAmanage_10", "Default shipping address" dictLanguage.Add "english_CustSAmanage_11", "Are you sure you want to delete this shipping address?" dictLanguage.Add "english_CustSAmanage_12", "No shipping name specified" dictLanguage.Add "english_CustSAmanage_13", "Address not saved. This address is the same as your default address." dictLanguage.Add "english_CustSAmanage_14", "Address not saved. This address nickname is already taken." dictLanguage.Add "english_CustAddModShip_1", "View/Edit shipping address" dictLanguage.Add "english_CustAddModShip_2", "Recipient Name:" dictLanguage.Add "english_CustAddModShip_3", "Address:" dictLanguage.Add "english_CustAddModShip_4", "City:" dictLanguage.Add "english_CustAddModShip_5", "State:" dictLanguage.Add "english_CustAddModShip_6", "Province:" dictLanguage.Add "english_CustAddModShip_7", "Postal Code:" dictLanguage.Add "english_CustAddModShip_8", "Country:" dictLanguage.Add "english_CustAddModShip_9", "Company:" dictLanguage.Add "english_CustAddModShip_10", "Recipient Phone:" dictLanguage.Add "english_CustAddModShip_11", "Update shipping address" dictLanguage.Add "english_CustAddModShip_12", "First Name:" dictLanguage.Add "english_CustAddModShip_13", "Last Name:" dictLanguage.Add "english_CustAddModShip_14", "Recipient Fax:" dictLanguage.Add "english_CustAddModShip_15", "Recipient E-mail:" dictLanguage.Add "english_CustAddModShip_16", "Recipient Nick Name:" dictLanguage.Add "english_CustAddModShip_17", "Add new shipping address" dictLanguage.Add "english_CustAddModShip_18", "Add new" dictLanguage.Add "english_CustAddModShip_19", "State/Province:" dictLanguage.Add "english_CustviewPastD_1", "This order could not be found in our database." dictLanguage.Add "english_CustviewPastD_2", "Previous Orders" dictLanguage.Add "english_CustviewPastD_3", "Previous Order:" dictLanguage.Add "english_CustviewPastD_4", "Qty" dictLanguage.Add "english_CustviewPastD_5", "SKU" dictLanguage.Add "english_CustviewPastD_6", "Description" dictLanguage.Add "english_CustviewPastD_7", "Options" dictLanguage.Add "english_CustviewPastD_8", "Price" dictLanguage.Add "english_CustviewPastD_9", "Actions" dictLanguage.Add "english_CustviewPastD_10", "Remove" dictLanguage.Add "english_CustviewPastD_11", "Cart Description" dictLanguage.Add "english_CustviewPastD_12", "Total: " dictLanguage.Add "english_CustviewPastD_13", "" dictLanguage.Add "english_CustviewPastD_14", "Order Date: " dictLanguage.Add "english_CustviewPastD_15", "Duplicate this order" dictLanguage.Add "english_CustviewPastD_16", "You do not have proper permissions to view this order." dictLanguage.Add "english_CustviewPastD_17", "" dictLanguage.Add "english_CustviewPastD_18", "" dictLanguage.Add "english_CustviewPastD_19", "" dictLanguage.Add "english_CustviewPastD_20", "This order is pending." dictLanguage.Add "english_CustviewPastD_21", "" dictLanguage.Add "english_CustviewPastD_22", "Date Processed: " dictLanguage.Add "english_CustviewPastD_22b", "This order has been processed" dictLanguage.Add "english_CustviewPastD_23", "Downloadable Product(s) Information" dictLanguage.Add "english_CustviewPastD_24", "Product Name:" dictLanguage.Add "english_CustviewPastD_25", "Download URL:" dictLanguage.Add "english_CustviewPastD_26", "Note: This URL will expire in " dictLanguage.Add "english_CustviewPastD_27", " days." dictLanguage.Add "english_CustviewPastD_28", "Note: This URL will expire at the end of the day." dictLanguage.Add "english_CustviewPastD_29", "Note: This URL has expired." dictLanguage.Add "english_CustviewPastD_30", "License(s):" dictLanguage.Add "english_CustviewPastD_31", "Credited Amount:" dictLanguage.Add "english_CustviewPastD_32", "Repeat Order" dictLanguage.Add "english_Custwl_1", "This item has already been saved to your account.

 

View Saved Products | Back

 

" dictLanguage.Add "english_Custwl_2", "Saved Products" dictLanguage.Add "english_Custwl_3", "The item was successfully added to your list of Saved Products" dictLanguage.Add "english_CustwlRmv_1", "The item wasn't in your Saved Products list" dictLanguage.Add "english_Custwlview_1", "Saved Products" dictLanguage.Add "english_Custwlview_2", "There are currently no products in your Saved Products list" dictLanguage.Add "english_Custwlview_3", "View" dictLanguage.Add "english_Custwlview_4", "Remove" dictLanguage.Add "english_Custwlview_5", "Total" dictLanguage.Add "english_Custwlview_6", "Save the " dictLanguage.Add "english_Custwlview_7", " favorites you've been hoping for in your Saved Products list! Come back at any time to purchase these top picks." dictLanguage.Add "english_Custwlview_8", "SKU" dictLanguage.Add "english_Custwlview_9", "Description" dictLanguage.Add "english_Custwlview_10", "Price" dictLanguage.Add "english_Custwlview_11", "Actions" dictLanguage.Add "english_Custwlview_12", "Add" dictLanguage.Add "english_Custwlview_13", "This item is no longer available for purchase." dictLanguage.Add "english_DBsv_1", "Invalid Session." dictLanguage.Add "english_forgotpasswordmailfrom", scEmail dictLanguage.Add "english_forgotpasswordmailfromName", scCompanyName dictLanguage.Add "english_forgotpasswordmailsubject", "Your password" dictLanguage.Add "english_forgotpasswordmailbody1", "Hello #firstname #lastname." &VBcrlf &VBcrlf & "Your requested password is: #password" &VBcrlf &VBcrlf &"Thank you for shopping with us." &VBcrlf &VBcrlf & scStoreURL dictLanguage.Add "english_forgotpasswordmailbody2", "Hello #name." &VBcrlf &VBcrlf & "Your requested password is: #password" &VBcrlf &VBcrlf &"Thank you for joining us." &VBcrlf &VBcrlf & scStoreURL dictLanguage.Add "english_forgotpasswordsuccess", "We have sent you password to the e-mail address you supplied, you should receive it shortly" dictLanguage.Add "english_forgotpassworderror", "Your email address does not appear to be in our customer database." dictLanguage.Add "english_forgotpasswordexec_1", "Enter your email" dictLanguage.Add "english_forgotpasswordexec_2", "Your email is not registered in this store" dictLanguage.Add "english_forgotpasswordexec_3", "Your password for the store" dictLanguage.Add "english_forgotpasswordexec_4", "Your password for the store is: " dictLanguage.Add "english_forgotpasswordexec_5", "We have sent you an email with your password." dictLanguage.Add "english_forgotpasswordform_1", "Enter your email" dictLanguage.Add "english_forgotpasswordform_2", "Email" dictLanguage.Add "english_forgotpasswordform_3", "Retrieve password" dictLanguage.Add "english_gwAuthorizeCheck_1", "Billing Information" dictLanguage.Add "english_gwAuthorizeCheck_2", "First Name:" dictLanguage.Add "english_gwAuthorizeCheck_3", "Last Name:" dictLanguage.Add "english_gwAuthorizeCheck_4", "Company:" dictLanguage.Add "english_gwAuthorizeCheck_5", "Address:" dictLanguage.Add "english_gwAuthorizeCheck_6", "City:" dictLanguage.Add "english_gwAuthorizeCheck_7", "State:" dictLanguage.Add "english_gwAuthorizeCheck_8", "Zip Code:" dictLanguage.Add "english_gwAuthorizeCheck_9", "Country:" dictLanguage.Add "english_gwAuthorizeCheck_10", "Phone:" dictLanguage.Add "english_gwAuthorizeCheck_11", "Checking Account Information" dictLanguage.Add "english_gwAuthorizeCheck_12", "Name on Account:" dictLanguage.Add "english_gwAuthorizeCheck_13", "Bank Routing Number:" dictLanguage.Add "english_gwAuthorizeCheck_14", "Bank Account Number:" dictLanguage.Add "english_gwAuthorizeCheck_15", "Account Type:" dictLanguage.Add "english_gwAuthorizeCheck_16", "Bank Name:" dictLanguage.Add "english_gwAuthorizeCheck_17", "Organization Type:" dictLanguage.Add "english_gwAuthorizeCheck_18", "All check purchases require either a Tax ID or Driver's License Information" dictLanguage.Add "english_gwAuthorizeCheck_19", "Tax ID:" dictLanguage.Add "english_gwAuthorizeCheck_20", "If you do not have a Tax ID, please complete the Driver's License info below" dictLanguage.Add "english_gwAuthorizeCheck_21", "Driver's License No.:" dictLanguage.Add "english_gwAuthorizeCheck_22", "Driver's License State:" dictLanguage.Add "english_gwAuthorizeCheck_23", "2 digit state code" dictLanguage.Add "english_gwAuthorizeCheck_24", "Driver's License DOB:" dictLanguage.Add "english_gwAuthorizeCheck_25", "mm/dd/yyyy" dictLanguage.Add "english_gwAuthorizeCheck_26", "Amount:" dictLanguage.Add "english_gwAuthorizeCheck_27", "Check Number:" dictLanguage.Add "english_login_1", "Enter all the fields." dictLanguage.Add "english_login_2", "The password you have entered does not match the one on record. Please try again." dictLanguage.Add "english_login_3", "Your account has been locked." dictLanguage.Add "english_login_4", "Terms & Conditions" dictLanguage.Add "english_login_5", "You must review and agree to our Terms & Conditions before placing an order on our store." dictLanguage.Add "english_mainIndex_1", "No featured products have been assigned." dictLanguage.Add "english_mainIndex_2", "Browse Catalog" dictLanguage.Add "english_mainIndex_3", "Online price: " dictLanguage.Add "english_mainIndex_4", "Specials" dictLanguage.Add "english_mainIndex_5", "View Cart" dictLanguage.Add "english_mainIndex_6", "Best Sellers" dictLanguage.Add "english_mainIndex_7", "Featured Products" dictLanguage.Add "english_mainIndex_8", "Your Account" dictLanguage.Add "english_mainIndex_9", "View All" dictLanguage.Add "english_mainIndex_10", "New Arrivals" dictLanguage.Add "english_mainIndex_11", "Quest Protein Bars - Only Available Online!" dictLanguage.Add "english_mainIndex_12", "Product of the Month!" dictLanguage.Add "english_mainIndex_13", "More " dictLanguage.Add "english_NewCust_1", "Your cart is empty, you cannot checkout." dictLanguage.Add "english_NewCust_2", "The passwords do not match. Make sure you enter the same password in both the password and password confirmation fields." dictLanguage.Add "english_NewCust_3", "Please enter a value for this field." dictLanguage.Add "english_NewCust_4", "Please select an option." dictLanguage.Add "english_NewCust_5", "Sign up for the store newsletter" dictLanguage.Add "english_NewCustCheckout_1", "The passwords do not match. Make sure you enter the same password in both the password and password confirmation fields." dictLanguage.Add "english_NewCustCheckout_2", "Please enter a value for this field." dictLanguage.Add "english_NewCustCheckout_3", "Please select an option." dictLanguage.Add "english_NewCustCheckout_4", "Sign up for the store newsletter" dictLanguage.Add "english_order_A", "Customer Information" dictLanguage.Add "english_order_B", "All fields marked with an asterisk are required." dictLanguage.Add "english_order_C", "First Name:" dictLanguage.Add "english_order_D", "Last Name:" dictLanguage.Add "english_order_E", "Company:" dictLanguage.Add "english_order_F", "Phone:" dictLanguage.Add "english_order_G", "E-mail:" dictLanguage.Add "english_order_H", "Password:" dictLanguage.Add "english_order_I", "Password Confirm:" dictLanguage.Add "english_order_J", "Billing address" dictLanguage.Add "english_order_K", "Address:" dictLanguage.Add "english_order_L", "City:" dictLanguage.Add "english_order_M", "State:" dictLanguage.Add "english_order_N", "Province:" dictLanguage.Add "english_order_O", "Postal Code:" dictLanguage.Add "english_order_P", "Country:" dictLanguage.Add "english_order_Q", "Check to use separate shipping address." dictLanguage.Add "english_order_R", "Payment Type" dictLanguage.Add "english_order_S", "Pay with:" dictLanguage.Add "english_order_T", "Enter a Discount or Gift Certificate Code if you have one:" dictLanguage.Add "english_order_U", "Comments" dictLanguage.Add "english_order_Ub", "Optional: additional shipping instructions" dictLanguage.Add "english_order_V", "Optional shipping instructions:" dictLanguage.Add "english_order_W", "Send" dictLanguage.Add "english_order_X", "Optional" dictLanguage.Add "english_order_Y", "For non US or Canada enter " dictLanguage.Add "english_order_Z", "Optional (non US or Canada)" dictLanguage.Add "english_order_AA", "Fax:" dictLanguage.Add "english_order_BB", "Create a Password" dictLanguage.Add "english_order_CC", "Shipping Address - Same as Billing Address?" dictLanguage.Add "english_order_DD", "Saved Address from my Address Book" dictLanguage.Add "english_order_EE", "Address Nick Name:" dictLanguage.Add "english_OrdConfirm_A", "Thank you for shopping at " dictLanguage.Add "english_OrdConfirm_B", "Your order number is: #" dictLanguage.Add "english_OrdConfirm_C", "If you have any questions, please contact us at " dictLanguage.Add "english_orderverify_1", "Enter all required data." dictLanguage.Add "english_orderverify_2", "Your e-mail already exists in this store." dictLanguage.Add "english_orderverify_3", "No coupon or gift certificate used" dictLanguage.Add "english_orderverify_4", "Invalid discount or gift code" dictLanguage.Add "english_orderverify_5", "The discount code or gift certificate that you have entered is no longer valid. Try entering it again.

Note: the discount code or gift certificate that you have entered might have expired, or might have already been used, or cannot be applied to your order (e.g. order amount too low). If you have any questions, please contact us." dictLanguage.Add "english_orderverify_6", "Date: " dictLanguage.Add "english_orderverify_7", "Name: " dictLanguage.Add "english_orderverify_8", "Company:" dictLanguage.Add "english_orderverify_9", "Phone: " dictLanguage.Add "english_orderverify_10", "Address: " dictLanguage.Add "english_orderverify_11", "Comments: " dictLanguage.Add "english_orderverify_12", "Payment Type: " dictLanguage.Add "english_orderverify_13", "Shipping: " dictLanguage.Add "english_orderverify_14", "Discount Code:" dictLanguage.Add "english_orderverify_15", "Subtotal: " dictLanguage.Add "english_orderverify_16", "Tax: " dictLanguage.Add "english_orderverify_17", "Total: " dictLanguage.Add "english_orderverify_19", "Save order" dictLanguage.Add "english_orderverify_18", "Shipping & Handling Charges:" dictLanguage.Add "english_orderverify_20", "Processing Charges:" dictLanguage.Add "english_orderverify_21", "This promotion has expired." dictLanguage.Add "english_orderverify_22", "Discount Cannot be Applied:" dictLanguage.Add "english_orderverify_23", "Billing Address" dictLanguage.Add "english_orderverify_24", "Shipping Address" dictLanguage.Add "english_orderverify_25", "Qty" dictLanguage.Add "english_orderverify_26", "SKU" dictLanguage.Add "english_orderverify_27", "Description" dictLanguage.Add "english_orderverify_28", "Price" dictLanguage.Add "english_orderverify_29", "Options: " dictLanguage.Add "english_orderverify_30", " earned on this purchase: " dictLanguage.Add "english_orderverify_31", " used on this purchase, for a discount of:" dictLanguage.Add "english_orderverify_32", "Unit Price" dictLanguage.Add "english_orderverify_33", "Additional Taxes" dictLanguage.Add "english_orderverify_34", "Delivery Date/Time: " dictLanguage.Add "english_orderverify_35", "All prices include VAT. Total VAT included in this order: " dictLanguage.Add "english_orderverify_36", "'Free Shipping' is not available on the selected shipping service using this coupon." dictLanguage.Add "english_orderverify_37", "Free Shipping" dictLanguage.Add "english_orderverify_38", "The requirements for the coupon that you entered don't match your order details. Please review this coupon's requirements and edit your order accordingly." dictLanguage.Add "english_orderverify_39", "This discount code may not be used with other discounts." dictLanguage.Add "english_orderverify_40", "This discount code has already been applied to the order." dictLanguage.Add "english_orderverify_41", "To use multiple discounts, separate them with a comma." dictLanguage.Add "english_orderverify_42", "This purchase is outside of the European Union. Total VAT excluded from this order: " dictLanguage.Add "english_orderverify_43", "This promotion has not started yet." dictLanguage.Add "english_calculateTax_1", "Your shipping ZIP code, which is used to calculate taxes for this order, is associated with more than one tax rate. Please select your City and County from the drop-down menu shown below so that we may correctly calculate taxes for this order." dictLanguage.Add "english_paymnta_c_1", "Enter Payment Details and Place Your Order" dictLanguage.Add "english_paymnta_c_2", "Type of Payment:" dictLanguage.Add "english_paymnta_c_3", "Terms:" dictLanguage.Add "english_paymnta_c_4", " is required." dictLanguage.Add "english_paymntb_c_1", "Error in form, hidden fields missing" dictLanguage.Add "english_paymntb_c_2", "


Thank you for your order." dictLanguage.Add "english_paymntb_c_3", "Account number is invalid." dictLanguage.Add "english_paymnta_o_1", "Enter Credit Card Information and Place Your Order" dictLanguage.Add "english_paymnta_o_2", "Card Type:" dictLanguage.Add "english_paymnta_o_3", "Card Number:" dictLanguage.Add "english_paymnta_o_4", "Expiration:" dictLanguage.Add "english_paymnta_o_5", "Month:" dictLanguage.Add "english_paymnta_o_6", "Year:" dictLanguage.Add "english_paymnta_o_7", "Security code:" dictLanguage.Add "english_paymnta_o_8", "Name on card:" dictLanguage.Add "english_paymnta_o_9", "Billing address:" dictLanguage.Add "english_paymnta_o_10", "Save data" dictLanguage.Add "english_paymntb_o_1", "Error in form, hidden fields missing" dictLanguage.Add "english_paymntb_o_2", "Statement address receipt: " dictLanguage.Add "english_paymntb_o_3", "Name on card: " dictLanguage.Add "english_paymntb_o_4", "


Thank you for your order.

As soon as your order is processed a confirmation message will be sent to the e-mail address that you provided." dictLanguage.Add "english_paymntb_o_5", "The credit card number is invalid." dictLanguage.Add "english_paymntb_o_6", "The credit card expired." dictLanguage.Add "english_paymntb_o_7", "The credit card security code that you supplied is not valid." dictLanguage.Add "english_paymntb_o_8", "You must supply a credit card security code." dictLanguage.Add "english_paypalOrdConfirm_A", "Thank you for shopping at " dictLanguage.Add "english_paypalOrdConfirm_B", "Your order has been received and a confirmation message containing order details will be sent to you shortly." dictLanguage.Add "english_paypalOrdConfirm_C", "If you have any questions, please contact us at " dictLanguage.Add "english_prdD1_1", "Price" dictLanguage.Add "english_prdD1_2", "You Save: " dictLanguage.Add "english_prdD1_3", " Add to Cart" dictLanguage.Add "english_prdD1_4", "Wholesale Price: " dictLanguage.Add "english_prdD1_5", "View" dictLanguage.Add "english_pricebreaks_1", "Quantity" dictLanguage.Add "english_pricebreaks_2", "Save" dictLanguage.Add "english_pricebreaks_3", "To" dictLanguage.Add "english_pricebreaks_4", "Units" dictLanguage.Add "english_pricebreaks_5", "Quantity discounts for " dictLanguage.Add "english_pricebreaks_6", "Select any items from this category and you will receive the quantity discount shown in the table below. The discount tier is based on the total number of units purchased from the category." dictLanguage.Add "english_referral_1", "Dear " dictLanguage.Add "english_referral_2", "Look at what I found at " 'rma dictLanguage.Add "english_rmathankyou_1", "RMA Request" dictLanguage.Add "english_rmathankyou_2", "A RMA request has been submitted in your store." dictLanguage.Add "english_saveorder_1", "Dear" dictLanguage.Add "english_saveorder_2", "Thanks for shopping at our store" dictLanguage.Add "english_saveorder_3", "Your order details are " dictLanguage.Add "english_saveorder_4", "Your password for the store is: " dictLanguage.Add "english_saveorder_5", "Payment information: " dictLanguage.Add "english_saveorder_6", "Your order at " dictLanguage.Add "english_saveorder_7", " order #" dictLanguage.Add "english_saveorder_8", "Order total" dictLanguage.Add "english_saveorder_10", "No discounts applied." dictLanguage.Add "english_saveorder_11", "Discounts requirements failed." dictLanguage.Add "english_saveorder_12", "Options: " dictLanguage.Add "english_saveorder_13", "You will receive payment confirmation in another e-mail" dictLanguage.Add "english_saveorder_14", "Early Impact generated" dictLanguage.Add "english_sendpassword_1", "Invalid Email Address" dictLanguage.Add "english_sendpassword_2", "We could not find " dictLanguage.Add "english_sendpassword_3", " in our database." dictLanguage.Add "english_advSrcb_1", "You must enter search criteria." dictLanguage.Add "english_advSrcb_2", "No items to display." dictLanguage.Add "english_advSrcb_3", "Products found: " dictLanguage.Add "english_advSrcb_4", "Page " dictLanguage.Add "english_advSrcb_5", " of " dictLanguage.Add "english_advSrcb_6", " - Narrow your search" dictLanguage.Add "english_vShipAdd_1", "Shipping address" dictLanguage.Add "english_vShipAdd_2", "Address:" dictLanguage.Add "english_vShipAdd_3", "City:" dictLanguage.Add "english_vShipAdd_4", "State:" dictLanguage.Add "english_vShipAdd_5", "Postal Code:" dictLanguage.Add "english_vShipAdd_6", "Country:" dictLanguage.Add "english_vShipAdd_7", "Continue" dictLanguage.Add "english_vShipAdd_8", "Please select a state or province" dictLanguage.Add "english_vShipAdd_9", "Province:" dictLanguage.Add "english_vShipAdd_10", "Recipient Name:" dictLanguage.Add "english_vShipAdd_11", "Ship to a recipient on my list" dictLanguage.Add "english_vShipAdd_12", "Company:" dictLanguage.Add "english_showcart_1", "Your cart is empty." dictLanguage.Add "english_showcart_2", "Enter numbers greater than zero." dictLanguage.Add "english_showcart_3", "Your shopping cart contains..." dictLanguage.Add "english_showcart_4", "Qty." dictLanguage.Add "english_showcart_5", "Item #" dictLanguage.Add "english_showcart_6", "Description" dictLanguage.Add "english_showcart_7", "Options: " dictLanguage.Add "english_showcart_8", "Price" dictLanguage.Add "english_showcart_8b", "Unit Price" dictLanguage.Add "english_showcart_9", "Actions" dictLanguage.Add "english_showcart_10", "Remove" dictLanguage.Add "english_showcart_11", "Recalculate" dictLanguage.Add "english_showcart_12", "Total: " dictLanguage.Add "english_showcart_13", "Tax not included" dictLanguage.Add "english_showcart_14", "Keep shopping click here..." dictLanguage.Add "english_showcart_15", "To checkout click here..." dictLanguage.Add "english_showcart_16", "Estimated delivery time: " dictLanguage.Add "english_showcart_17", " day/s" dictLanguage.Add "english_showcart_18", " same day" dictLanguage.Add "english_showcart_19", " undetermined" dictLanguage.Add "english_showcart_20", "Quantity discounts" dictLanguage.Add "english_showcart_20b", " apply to this product:" dictLanguage.Add "english_showcart_21", "Edit product option(s)" dictLanguage.Add "english_showcart_22", "Product Subtotal:" dictLanguage.Add "english_showcart_23", "Option Discounts:" dictLanguage.Add "english_showcart_1000", "Auto-Delivery Progam - Sign Up and Save 10%!*" dictLanguage.Add "english_showcart_1001", "Now you can get your favorite Quest Protein Bars automatically delivered to your door! Just select the plan you'd like (every month or every other month) and then combine the flavors and quantities you want.

NOTE: You can modify or cancel your Auto-Delivery order at any time with just a few clicks. No need to speak to anyone. This is NOT one if those "" make it hard to cancel so they can keep shipping you stuff "" programs. We offer it only as a convenience to the many customers who have requested it. Click here to learn how easy it is to cancel." dictLanguage.Add "english_showcart_1002", "Monthly Plan - Enroll now" dictLanguage.Add "english_showcart_1003", "Have your Auto-Delivery order automatically sent to you every month on the same day of the month you ordered it. If that day falls on a weekend or holiday, it will be shipped the next business day." dictLanguage.Add "english_showcart_1004", "Every Other Month Plan - Enroll now" dictLanguage.Add "english_showcart_1005", "Have your Auto-Delivery order automatically sent to you every other month on the same day of the month you ordered it. If that day falls on a weekend or holiday, it will be shipped the next business day." dictLanguage.Add "english_showcart_1006", "


* No other discounts or promotions apply to the Auto-Delivery program.

** The Auto-Delivery Program is not available to wholesale customers." dictLanguage.Add "english_showcart_1007", "How to Modify" dictLanguage.Add "english_showcart_1008", "How to Cancel" dictLanguage.Add "english_catdisc_1", "The total includes category-based quantity discounts of " dictLanguage.Add "english_catdisc_2", "Category-based Quantity Discounts" dictLanguage.Add "english_sorry_1", "Your Credit Card was not approved." dictLanguage.Add "english_techErr_1", "There was a problem and we were not able to complete your request. We apologize for the inconvenience." dictLanguage.Add "english_tellafriend_1", "Tell A Friend" dictLanguage.Add "english_tellafriend_2", "To show this product to a friend, just fill out this form, click the submit button and we will do the rest. Please check to make sure the email addresses are correct so we can send it to the right place. Thanks!" dictLanguage.Add "english_tellafriend_3", "Your name: " dictLanguage.Add "english_tellafriend_4", "Your e-mail: " dictLanguage.Add "english_tellafriend_5", "Friend's name: " dictLanguage.Add "english_tellafriend_6", "Friend's e-mail: " dictLanguage.Add "english_tellafriend_7", "Message: " dictLanguage.Add "english_tellafriend_8", "Submit Form" dictLanguage.Add "english_tellafriend_9", "Product: " dictLanguage.Add "english_tellafriendthanks_1", "Message Sent" dictLanguage.Add "english_tellafriendthanks_2", "Your message has been successfully sent to your friend." dictLanguage.Add "english_terms_1", "Terms & Conditions" dictLanguage.Add "english_terms_2", "Terms & Conditions have not been defined." dictLanguage.Add "english_terms_3", "Close" dictLanguage.Add "english_RegThankyou_1", "Thank you for creating an account on our store. Use the links below to get started and let us know if we can be of any assistance." dictLanguage.Add "english_titles_1", "Home" dictLanguage.Add "english_titles_2", "Catalog" dictLanguage.Add "english_titles_3", "View Cart" dictLanguage.Add "english_titles_4", "Checkout >>" dictLanguage.Add "english_titles_5", "Continue Shopping" dictLanguage.Add "english_titles_6", "Home" dictLanguage.Add "english_titles_7", "Home" dictLanguage.Add "english_titles_8", "Browse by Brand" dictLanguage.Add "english_titles_9", "Browse by Category" dictLanguage.Add "english_updOrdStats_1", "Response fields missing" dictLanguage.Add "english_updOrdStats_2", "As soon as your order is processed you will receive an e-mail confirmation containing all order details.

As soon as your order is processed you will receive a confirmation number.

If you opted to pay by Cash, Check or Money Order, please send your payment to:
Quest Nutrition
4712 Admiralty Way, Suite 670
Marina del Rey, CA 90292


" dictLanguage.Add "english_updOrdStats_3", "Your payment wasn't accepted. The transaction response was: " dictLanguage.Add "english_updOrdStats_4", "Customer order cannot be located." dictLanguage.Add "english_updOrdStats_5", ", payment information, order #" dictLanguage.Add "english_updOrdStats_6", "Your payment for the order #" dictLanguage.Add "english_updOrdStats_7", " was accepted" dictLanguage.Add "english_updOrdStats_8", "** Important: " dictLanguage.Add "english_updOrdStats_9", "Note: some of the products that you are trying to order are out of stock. They will be shipped as soon as they become available we will contact you with more information." dictLanguage.Add "english_updOrdStats_10", "The order was already processed." dictLanguage.Add "english_updOrdStats_11", "Thank you for your order. Your order number is: " dictLanguage.Add "english_updOrdStats_12", "Bill To: " dictLanguage.Add "english_updOrdStats_13", "Payment Method:" dictLanguage.Add "english_updOrdStats_14", "Card #: " dictLanguage.Add "english_updOrdStats_15", "Shipping Type: " dictLanguage.Add "english_updOrdStats_16", "Order Details: " dictLanguage.Add "english_updOrdStats_17", "SKU" dictLanguage.Add "english_updOrdStats_18", "Product Name" dictLanguage.Add "english_updOrdStats_19", "Qty" dictLanguage.Add "english_updOrdStats_20", "Unit Price" dictLanguage.Add "english_updOrdStats_21", "Total" dictLanguage.Add "english_updOrdStats_22", "Subtotal: " dictLanguage.Add "english_updOrdStats_23", "Shipping: " dictLanguage.Add "english_updOrdStats_24", "Taxes: " dictLanguage.Add "english_updOrdStats_25", "Discounts: " dictLanguage.Add "english_updOrdStats_26", "Total Paid: " dictLanguage.Add "english_updOrdStats_27", "Thank you for shopping at " dictLanguage.Add "english_updOrdStats_28", "If you have any concerns or questions, please contact us at " dictLanguage.Add "english_updOrdStats_29", " Order Confirmation" dictLanguage.Add "english_updOrdStats_30", "Dear " dictLanguage.Add "english_validateform_1", "Error: Please correct all errors marked with a red check." dictLanguage.Add "english_validateform_2", "Error: Please correct all errors marked with a red check." dictLanguage.Add "english_validateform_3", "Please enter a valid number for " dictLanguage.Add "english_validateform_4", "Please enter a valid e-mail address." dictLanguage.Add "english_validateform_5", "Please enter a positive number for " dictLanguage.Add "english_validateform_6", "Please enter a valid phone number" dictLanguage.Add "english_validateform_7", "Please enter a valid number for " dictLanguage.Add "english_validateform_8", "We do not accept e-mail addresses from free e-mail providers, please enter another e-mail for " dictLanguage.Add "english_validateform_9", "The session was lost. Please log in again." dictLanguage.Add "english_validateform_10", "The email that you have entered is already in use by another customer." dictLanguage.Add "english_viewbySup_1", "You must specify a supplier." dictLanguage.Add "english_viewbySup_2", "No products have been defined for this supplier." dictLanguage.Add "english_viewbySup_3", "Supplier: " dictLanguage.Add "english_viewbySup_4", "Page " dictLanguage.Add "english_viewbySup_5", " of " dictLanguage.Add "english_viewCat_P_1", "There are no active categories in this store." dictLanguage.Add "english_viewCat_P_2", "Our Products: " dictLanguage.Add "english_viewCat_P_3", "Products: " dictLanguage.Add "english_viewCat_P_4", "No products have been assigned to this category.

Back

" dictLanguage.Add "english_viewCat_P_5", "Categories: " dictLanguage.Add "english_viewCat_P_6", "The product or category that you are trying to view is either not valid or not available. If you believe that you are receiving this message in error, contact us." dictLanguage.Add "english_viewCat_P_7", "Qty" dictLanguage.Add "english_viewCat_P_8", "SKU" dictLanguage.Add "english_viewCat_P_9", "Description" dictLanguage.Add "english_viewCat_P_10", "Price" dictLanguage.Add "english_viewCat_P_11", "Wholesale Price" dictLanguage.Add "english_viewCat_P_12", "Specify a quantity for any of the products listed on this page, then click 'Add to Cart' to add them to your shopping cart. If the quantity field is not visible for a product, you must click on the 'More Details' button and select the options or fill out the fields that require your input." dictLanguage.Add "english_viewCatOrder_1", "SKU" dictLanguage.Add "english_viewCatOrder_2", "Description" dictLanguage.Add "english_viewCatOrder_3", "High Price" dictLanguage.Add "english_viewCatOrder_4", "Low Price" dictLanguage.Add "english_viewCatOrder_5", "Sort by:" dictLanguage.Add "english_viewCatOrder_6", "Select One" dictLanguage.Add "english_viewPrd_1", "You must specify the item ID." dictLanguage.Add "english_viewPrd_2", "The item does not exist." dictLanguage.Add "english_viewPrd_3", "Price: " dictLanguage.Add "english_viewPrd_4", "You Save: " dictLanguage.Add "english_viewPrd_5", "Buy" dictLanguage.Add "english_viewPrd_6", "Additional Options" dictLanguage.Add "english_viewPrd_7", "Currently Out of Stock" dictLanguage.Add "english_viewPrd_8", "No shipping required" dictLanguage.Add "english_viewPrd_11", "You must install an optional package for this feature" dictLanguage.Add "english_viewPrd_12", "Add to Saved Products" dictLanguage.Add "english_viewPrd_13", "You are at " dictLanguage.Add "english_viewPrd_14", "e-mail to a friend" dictLanguage.Add "english_viewPrd_15", "Wholesale Price: " dictLanguage.Add "english_viewPrd_16", "Quantity discounts are available" dictLanguage.Add "english_viewPrd_19", "Units in Stock: " dictLanguage.Add "english_viewPrd_20", "List Price: " dictLanguage.Add "english_viewPrd_21", "More details..." dictLanguage.Add "english_viewPrd_22", "Product Details" dictLanguage.Add "english_viewPrd_23", "Back to the top" dictLanguage.Add "english_viewPrd_25", "Standard Features" dictLanguage.Add "english_viewPrd_26", " Price inc. VAT" dictLanguage.Add "english_viewPrd_27", "Price without VAT: " dictLanguage.Add "english_viewPrd_28", "Click to see larger image and other views" dictLanguage.Add "english_viewPrd_brand", "Brand: " dictLanguage.Add "english_viewPrd_cs1", "Save with these product bundles" dictLanguage.Add "english_viewPrd_cs2", "Click on the radio button next to the bundle that you are interested in and then click on the "Add to Cart" button above to add the bundled products to the shopping cart." dictLanguage.Add "english_viewPrd_cs3", "Check the check boxes next to the additional products that you would like to add to the shopping cart, then click on the "Add to Cart" button above. A check box is not shown if a product requires that you select an option or fill out a field." dictLanguage.Add "english_viewPrd_cs4", " indicates a required accessory." dictLanguage.Add "english_viewSpc_1", "There are no specials at this time. Come back soon!" dictLanguage.Add "english_viewSpc_2", "Specials" dictLanguage.Add "english_viewSpc_3", "Page " dictLanguage.Add "english_viewSpc_4", " of " dictLanguage.Add "english_viewNewArrivals_1", "There are no new arrivals at this time. Come back soon!" dictLanguage.Add "english_viewNewArrivals_2", "New Arrivals" dictLanguage.Add "english_viewNewArrivals_3", "Page " dictLanguage.Add "english_viewNewArrivals_4", " of " dictLanguage.Add "english_viewBestSellers_1", "There are no best sellers at this time. Come back soon!" dictLanguage.Add "english_viewBestSellers_2", "Best Sellers" dictLanguage.Add "english_viewBestSellers_3", "Page " dictLanguage.Add "english_viewBestSellers_4", " of " dictLanguage.Add "english_catering_1", "Use this field to name your order. This makes it easy to find previous orders." dictLanguage.Add "english_catering_2", "You have entered an invalid delivery date. Please try again." dictLanguage.Add "english_catering_3", "Unfortunately we cannot deliver an order scheduled for less than 24 hours from the current date and time." dictLanguage.Add "english_catering_4", "Unfortunately we do not offer same-day deliveries. You must enter a date greater than today." dictLanguage.Add "english_catering_5", " - Please choose a different date." dictLanguage.Add "english_catering_6", "Make sure to select a date/time that is at least 24 hours from now." dictLanguage.Add "english_catering_7", "Please note that we currently deliver only to " dictLanguage.Add "english_catering_8", " selected zip codes" dictLanguage.Add "english_catering_9", "Delivery ZIP Codes" dictLanguage.Add "english_catering_10", "We deliver only to the following ZIP codes." dictLanguage.Add "english_catering_11", "No Zip codes found." dictLanguage.Add "english_catering_12", "Order name: " dictLanguage.Add "english_catering_13", "Nickname Your Order" dictLanguage.Add "english_catering_13b", "Optional: nickname your order." dictLanguage.Add "english_catering_14", "Event Information" dictLanguage.Add "english_catering_15", "Blackout Dates" dictLanguage.Add "english_catering_16", "The following is a list of dates that may not be selected as order delivery dates." dictLanguage.Add "english_catering_17", "Date" dictLanguage.Add "english_catering_18", "Reason" dictLanguage.Add "english_catering_19", "No blackout dates found." dictLanguage.Add "english_catering_20", "View blackout dates" dictLanguage.Add "english_catering_21", " (these dates may not be selected for delivery)." dictLanguage.Add "english_orderComplete_1", "Check the status of your order >>" dictLanguage.Add "english_sendMail_1", "Thank you for your order. Your order number is: " dictLanguage.Add "english_sendMail_2", "Billing Information" dictLanguage.Add "english_sendMail_3", "Shipping Information" dictLanguage.Add "english_sendMail_4", "(Same as Billing Address)" dictLanguage.Add "english_sendMail_5", "Shipping Method: " dictLanguage.Add "english_sendMail_6", "Discounts/Coupons Used: " dictLanguage.Add "english_sendMail_7", "You earned " dictLanguage.Add "english_sendMail_8", " on this purchase, which is equal to " dictLanguage.Add "english_sendMail_9", "You saved " dictLanguage.Add "english_sendMail_10", " on this purchase by using your " dictLanguage.Add "english_sendMail_11", "ORDER DETAILS" dictLanguage.Add "english_sendMail_12", "UNIT PRICE" dictLanguage.Add "english_sendMail_13", "TOTAL" dictLanguage.Add "english_sendMail_14", "QTY " dictLanguage.Add "english_sendMail_15", "SKU " dictLanguage.Add "english_sendMail_16", "PRODUCT " dictLanguage.Add "english_sendMail_17", "*options no longer exist in database" dictLanguage.Add "english_sendMail_18", "PRICE " dictLanguage.Add "english_sendMail_19", "Subtotal: " dictLanguage.Add "english_sendMail_20", "Processing Fees: " dictLanguage.Add "english_sendMail_21", "Less discounts and " dictLanguage.Add "english_sendMail_22", " used: " dictLanguage.Add "english_sendMail_23", "Less discounts used: " dictLanguage.Add "english_sendMail_24", "Taxes: " dictLanguage.Add "english_sendMail_25", "Shipping Charges: " dictLanguage.Add "english_sendMail_26", "Handling Fees: " dictLanguage.Add "english_sendMail_27", "Total: " dictLanguage.Add "english_sendMail_28", "Download Instructions for: " dictLanguage.Add "english_sendMail_29", "Download URL" dictLanguage.Add "english_sendMail_30", " (This URL will expire in " dictLanguage.Add "english_sendMail_31", " days): " dictLanguage.Add "english_sendMail_32", " (This URL will expire at the end of the day): " dictLanguage.Add "english_sendMail_33", " (This URL has already expired): " dictLanguage.Add "english_sendMail_34", "License(s):" dictLanguage.Add "english_sendMail_35", "Additional Information:" dictLanguage.Add "english_sendMail_36", "Thank you for shopping at " dictLanguage.Add "english_sendMail_37", "Option Discounts: " dictLanguage.Add "english_sendMail_38", "Quantity Discounts: " dictLanguage.Add "english_sendMail_39", "PRODUCT SUBTOTAL: " dictLanguage.Add "english_sendMail_40", "ADDITIONAL CHARGES " dictLanguage.Add "english_sendMail_41", "Number of Packages: " dictLanguage.Add "english_sendMail_42_WMS", "Your Quest order wasn't completed" dictLanguage.Add "english_sendMail_rma_1", "RMA Request Update - " dictLanguage.Add "english_sendMail_rma_2", "You are receiving this e-mail message because an RMA Request has been updated." dictLanguage.Add "english_sendMail_rma_3", "Your RMA request has been approved. Details follow: " dictLanguage.Add "english_sendMail_rma_4", "RMA Number: " dictLanguage.Add "english_sendMail_rma_5", "Date: " dictLanguage.Add "english_sendMail_rma_6", "Comments: " dictLanguage.Add "english_sendMail_rma_7", "You are receiving this e-mail message because the status of an RMA Request that you have submitted to our store has been updated." dictLanguage.Add "english_sendMail_rma_8", "Additional comments have been posted to your RMA request: " dictLanguage.Add "english_sendMail_rma_9", "Your RMA request has been approved. Details follow:" dictLanguage.Add "english_sendMail_rma_10", "You RMA request has been denied." dictLanguage.Add "english_sendMail_rma_11", "Comments have been posted to your RMA request:" dictLanguage.Add "english_adminMail_1", "Order number is: " dictLanguage.Add "english_adminMail_2", "Billing Information" dictLanguage.Add "english_adminMail_3", "Referrer Information: " dictLanguage.Add "english_adminMail_4", "Shipping Information" dictLanguage.Add "english_adminMail_5", "(Same as billing address)" dictLanguage.Add "english_adminMail_6", "Shipping Service: " dictLanguage.Add "english_adminMail_7", "Shipping Method: " dictLanguage.Add "english_adminMail_8", "Payment Method: " dictLanguage.Add "english_adminMail_9", "Discount/Coupon Used: " dictLanguage.Add "english_adminMail_10", "The customer earned " dictLanguage.Add "english_adminMail_11", " on this purchase, which corresponds to " dictLanguage.Add "english_adminMail_12", " was saved by the customer on this purchase by using " dictLanguage.Add "english_adminMail_13", "ORDER DETAILS" dictLanguage.Add "english_adminMail_14", "UNIT PRICE" dictLanguage.Add "english_adminMail_15", "TOTAL" dictLanguage.Add "english_adminMail_16", "QTY " dictLanguage.Add "english_adminMail_17", "SKU " dictLanguage.Add "english_adminMail_18", "PRODUCT " dictLanguage.Add "english_adminMail_19", "PRICE " dictLanguage.Add "english_adminMail_20", "Subtotal:" dictLanguage.Add "english_adminMail_21", "Processing Fees:" dictLanguage.Add "english_adminMail_22", "Less Discounts and " dictLanguage.Add "english_adminMail_23", " Used:" dictLanguage.Add "english_adminMail_24", "Less Discounts Used:" dictLanguage.Add "english_adminMail_25", "Taxes:" dictLanguage.Add "english_adminMail_26", "Shipping Charges:" dictLanguage.Add "english_adminMail_27", "Handling Fees:" dictLanguage.Add "english_adminMail_28", "Total:" dictLanguage.Add "english_adminMail_29", "Order was referred by affiliate: #" dictLanguage.Add "english_adminMail_30", "Commission owed to the affiliate: " dictLanguage.Add "english_adminMail_31", "Option Discounts: " dictLanguage.Add "english_adminMail_32", "Quantity Discounts: " dictLanguage.Add "english_adminMail_33", "PRODUCT SUBTOTAL: " dictLanguage.Add "english_adminMail_34", "ADDITIONAL CHARGES " dictLanguage.Add "english_adminMail_35", "Number of Packages: " dictLanguage.Add "english_alert_1", "The product cannot be added to the shopping cart." dictLanguage.Add "english_alert_2", " is a required option" dictLanguage.Add "english_alert_3", "This product can only be ordered in multiples of " dictLanguage.Add "english_alert_4", "Please enter a value in this field." dictLanguage.Add "english_alert_5", "Please enter a positive integer in this field." dictLanguage.Add "english_alert_6", " is a required option. Please select one of the available selections from the drop-down menu." dictLanguage.Add "english_alert_7", "Please select at least one item from the following category: " ' view order postings dictLanguage.Add "english_viewPostings_a", "This order was not found or you don't have permission to access it." dictLanguage.Add "english_viewPostings_b", "Order #: " dictLanguage.Add "english_viewPostings_c", "Type:" dictLanguage.Add "english_viewPostings_h", "Details:" dictLanguage.Add "english_viewPostings_i", "Status:" dictLanguage.Add "english_viewPostings_j", "Starting Date:" dictLanguage.Add "english_viewPostings_k", "Ending Date:" dictLanguage.Add "english_viewPostings_m", "Welcome to our Customer Service Desk.

Use this section of our store to exchange order-related messages with us. You can also use this area to upload or view a file. For instance, you may need to upload a graphic to be used with your order.

Here is a summary of the messages exchanged with regard to this order: " dictLanguage.Add "english_viewPostings_n", "ID " dictLanguage.Add "english_viewPostings_o", "Pri " dictLanguage.Add "english_viewPostings_p", "Description " dictLanguage.Add "english_viewPostings_q", "Type " dictLanguage.Add "english_viewPostings_r", "Posted " dictLanguage.Add "english_viewPostings_s", "Last Edited " dictLanguage.Add "english_viewPostings_t", "Posted by " dictLanguage.Add "english_viewPostings_u", "Status " dictLanguage.Add "english_viewPostings_v", "No messages found." dictLanguage.Add "english_viewPostings_w", "Details" dictLanguage.Add "english_viewPostings_x", "Page: " dictLanguage.Add "english_viewPostings_z", "View All" dictLanguage.Add "english_viewPostings_1", "Write a Message" dictLanguage.Add "english_viewPostings_2", "Store Manager" dictLanguage.Add "english_viewPostings_3", "Help Desk" dictLanguage.Add "english_viewPostings_4", "Back" ' add messages dictLanguage.Add "english_addFB_a", "Your message was posted successfully. We will get back to you soon." dictLanguage.Add "english_addFB_b", "Add a message, a suggestion or other comment related to your order" dictLanguage.Add "english_addFB_c", "Upload files that you would like to associate with this message (if any)." dictLanguage.Add "english_addFB_d", "Create a new message using the fields below. Click on 'Use HTML Editor' to format your message." dictLanguage.Add "english_addFB_e", "Create a new message using the fields below. Click on 'Use HTML Editor' to format your message." dictLanguage.Add "english_addFB_f", "Attachment(s):" dictLanguage.Add "english_addFB_g", "No files have been associated with this message." dictLanguage.Add "english_addFB_h", "To upload file(s) " dictLanguage.Add "english_addFB_i", "click here" dictLanguage.Add "english_addFB_j", "Order #:" dictLanguage.Add "english_addFB_k", "Message Type:" dictLanguage.Add "english_addFB_l", "Priority:" dictLanguage.Add "english_addFB_q", "Short Description:" dictLanguage.Add "english_addFB_r", "Long Description:" dictLanguage.Add "english_addFB_s", "The database could not be updated. Please make sure that 'write' permissions have been assigned to the database folder." ' send email dictLanguage.Add "english_addFB_email1", "A new message or file was posted in regard to Order #" dictLanguage.Add "english_addFB_email2", ". Please click on the link below to view it. Note that the link might have been broken up into 2 lines by your email program. If that is the case, copy and paste both lines in the browser address field, making sure that there are no spaces between them." dictLanguage.Add "english_addFB_email3", "Order #: " dictLanguage.Add "english_addFB_email4", "Message Title: " dictLanguage.Add "english_addFB_email5", "Posted by: " dictLanguage.Add "english_addFB_email6", "Priority: " dictLanguage.Add "english_addFB_email7", "Status: Open" dictLanguage.Add "english_addFB_email8", "URL: " dictLanguage.Add "english_addFB_email9", " - New message related to Order #" dictLanguage.Add "english_addFB_email10", "Date: " dictLanguage.Add "english_addFB_email11", "Status: " dictLanguage.Add "english_addFB_email12", "Last posted by: " dictLanguage.Add "english_addFB_email13", "Last posted on: " dictLanguage.Add "english_addFB_email14", "Initially posted on: " ' viewFeedback dictLanguage.Add "english_viewFeedback_a", "Your message was added successfully!" dictLanguage.Add "english_viewFeedback_b", "Order #: " dictLanguage.Add "english_viewFeedback_c", "Message #: " dictLanguage.Add "english_viewFeedback_d", "Initially posted on: " dictLanguage.Add "english_viewFeedback_e", "Delete" dictLanguage.Add "english_viewFeedback_f", "Edit" dictLanguage.Add "english_viewFeedback_h", "Message Type:" dictLanguage.Add "english_viewFeedback_i", "Priority:" dictLanguage.Add "english_viewFeedback_j", "Short Description:" dictLanguage.Add "english_viewFeedback_k", "Details:" dictLanguage.Add "english_viewFeedback_l", "Current Status:" dictLanguage.Add "english_viewFeedback_m", " - Change status to: " dictLanguage.Add "english_viewFeedback_s", "Attachment(s)" dictLanguage.Add "english_viewFeedback_t", "Follow-ups:" dictLanguage.Add "english_viewFeedback_u", "Follow up " dictLanguage.Add "english_viewFeedback_v", " submitted on " dictLanguage.Add "english_viewFeedback_w", " modified on " dictLanguage.Add "english_viewFeedback_x", " by " dictLanguage.Add "english_viewFeedback_z", "Comments:" dictLanguage.Add "english_viewFeedback_1", "Add New Message:" dictLanguage.Add "english_viewFeedback_2", "Upload files that you would like to associate with this new message (if any)." dictLanguage.Add "english_viewFeedback_3", "Write your message in the text box below. Click on 'Use HTML Editor' to format the message." dictLanguage.Add "english_viewFeedback_4", "Write your message in the text box below. Click on 'Use HTML Editor' to format the message." dictLanguage.Add "english_viewFeedback_5", "Attachment(s): " dictLanguage.Add "english_viewFeedback_6", "No files have been associated with this message." dictLanguage.Add "english_viewFeedback_7", "To upload files, " dictLanguage.Add "english_viewFeedback_8", "click here" dictLanguage.Add "english_viewFeedback_9", "Comment:" dictLanguage.Add "english_viewFeedback_10", "Other Messages" dictLanguage.Add "english_viewFeedback_12", "The database could not be updated. Please make sure that 'write' permissions have been assigned to the database folder." dictLanguage.Add "english_AffMain_1", "Affiliate Menu" dictLanguage.Add "english_AffMain_2", "Account Information" dictLanguage.Add "english_AffMain_3", "Generate Links" dictLanguage.Add "english_AffMain_4", "View commissions" dictLanguage.Add "english_AffMain_5", "Logout" dictLanguage.Add "english_AffgenLinks_1", "Generate Affiliate Product Links" dictLanguage.Add "english_AffgenLinks_2", "Select Product:" dictLanguage.Add "english_AffgenLinks_3", "Generate Links" dictLanguage.Add "english_AffgenLinks_4", "Here is your affiliate link for the product" dictLanguage.Add "english_AffgenLinks_5", "" dictLanguage.Add "english_AffgenLinks_6", "Here is your affiliate link to our store home page" dictLanguage.Add "english_AffgenLinks_7", "Copy the following code snippet into your web site to display the Ad" dictLanguage.Add "english_AffgenLinks_8", "Individual Product Links" dictLanguage.Add "english_AffgenLinks_9", "Ad with random Product Links" dictLanguage.Add "english_AffLogin_1", "Already an affiliate? Log in below." dictLanguage.Add "english_AffLogin_2", "Login below to access your affiliate account." dictLanguage.Add "english_AffLogin_3", "E-mail:" dictLanguage.Add "english_AffLogin_4", "Password:" dictLanguage.Add "english_AffLogin_5", "New Affiliate? Apply today!" dictLanguage.Add "english_AffLogin_6", "Become an affiliate and start earning commissions on every sale you refer to our store. Contact us for more information." dictLanguage.Add "english_AffLogin_7", "Your password has been e-mailed to you. Please check your e-mail now to retreive it and enter it into the form above." dictLanguage.Add "english_AffLogin_8", "Forgot your password?" dictLanguage.Add "english_AffLogin_9", "Click here" dictLanguage.Add "english_AffLogin_10", "The password you have entered does not match the one on record. Please try again." dictLanguage.Add "english_AffLogin_11", "Your account is inactive. Please contact us for more information." dictLanguage.Add "english_AffCom_1", "Affiliate Commissions" dictLanguage.Add "english_AffCom_2", "You have not earned any commissions yet." dictLanguage.Add "english_AffCom_3", "Current balance: " dictLanguage.Add "english_AffCom_4", "Payment History:" dictLanguage.Add "english_AffCom_5", "Date" dictLanguage.Add "english_AffCom_6", "Amount" dictLanguage.Add "english_AffCom_7", "Status" dictLanguage.Add "english_AffCom_8", "No payment history." dictLanguage.Add "english_AffCom_9", "Total Paid: " dictLanguage.Add "english_AffCom_10", "Total Sales: " dictLanguage.Add "english_AffCom_11", "Date" dictLanguage.Add "english_AffCom_12", "Order Number" dictLanguage.Add "english_AffCom_13", "Commission" dictLanguage.Add "english_AffCom_14", "Total Commissions" dictLanguage.Add "english_NewAffa_1", "Affiliate Information" dictLanguage.Add "english_NewAffa_1b", "All fields marked with an asterisk are required." dictLanguage.Add "english_NewAffa_2", "Affiliate Name:" dictLanguage.Add "english_NewAffa_3", "Company:" dictLanguage.Add "english_NewAffa_4", "E-mail:" dictLanguage.Add "english_NewAffa_5", "Password:" dictLanguage.Add "english_NewAffa_6", "Address:" dictLanguage.Add "english_NewAffa_7", "Address 2:" dictLanguage.Add "english_NewAffa_8", "City:" dictLanguage.Add "english_NewAffa_9", "State:" dictLanguage.Add "english_NewAffa_10", "Country:" dictLanguage.Add "english_NewAffa_11", "Postal Code:" dictLanguage.Add "english_NewAffa_12", "Phone:" dictLanguage.Add "english_NewAffa_13", "Fax:" dictLanguage.Add "english_NewAffa_14", "Commission:" dictLanguage.Add "english_NewAffb_1", "Your Affiliate account has been created successfully!" dictLanguage.Add "english_NewAffb_2", "
Please note that your account has not been activated yet. We will notify you when your account is active. You will then be able to log into a password-protected area of our store, create special links to the storefront or specific product pages that include your affiliate tracking information, and view commission reports." dictLanguage.Add "english_ModAffb_1", "Your information has been updated successfully!" ' New text strings added for ProductCart v2.75 ' These were strings included in various e-mails sent by ProductCart ' which were previously hardcoded in the ASP source code. dictLanguage.Add "english_storeEmail_1", "Order Received" 'No HTML code or commas dictLanguage.Add "english_storeEmail_2", "Order Confirmation" 'Same dictLanguage.Add "english_storeEmail_3", "An order was processed using your affiliate ID!" 'Same dictLanguage.Add "english_storeEmail_4", "New affiliate registration" 'Same dictLanguage.Add "english_storeEmail_5", "New customer registration" 'Same dictLanguage.Add "english_storeEmail_6", "Order Confirmation" 'Same dictLanguage.Add "english_storeEmail_7", "Order Shipped" 'Same dictLanguage.Add "english_storeEmail_8", "Order Cancellation" 'Same dictLanguage.Add "english_storeEmail_9", "New Order in your store - Order #" 'Same dictLanguage.Add "english_storeEmail_10", "Dear " dictLanguage.Add "english_storeEmail_11", "An order was placed in " dictLanguage.Add "english_storeEmail_12", " using your affiliate ID." dictLanguage.Add "english_storeEmail_13", "Your commission: " dictLanguage.Add "english_storeEmail_14", "Thank you for being an affiliate of " dictLanguage.Add "english_storeEmail_15", "Shipped Via: " dictLanguage.Add "english_storeEmail_16", "Date shipped: " dictLanguage.Add "english_storeEmail_17", "Tracking Number: " dictLanguage.Add "english_storeEmail_500", "Purchase Order Number: " dictLanguage.Add "english_alert_8", "This product requires a minimum purchase of " dictLanguage.Add "english_alert_9", " units." dictLanguage.Add "english_alert_8b", "Please edit the product quantities to comply with the minimum order requirements." dictLanguage.Add "english_alert_10", "The images your selected could not be deleted from the server because the ""catalog"" folder does not have WRITE permissions assigned to the 'Everyone' user. To use this feature, please add these permissions. Otherwise, you can delete files from the folder by using your favorite FTP program." dictLanguage.Add "english_alert_11", "The images your selected could not be deleted from the server because the ""catalog"" folder does not have DELETE permissions assigned to the 'Everyone' user. To use this feature, please add these permissions. Otherwise, you can delete files from the folder by using your favorite FTP program." dictLanguage.Add "english_alert_12", "Unfortunately this order cannot be repeated because all the products that had been ordered are now out of stock, have been deleted, or are currently not available." dictLanguage.Add "english_alert_13", "Unfortunately this order cannot be repeated because one or more of the products that had been ordered are now out of stock, have been deleted, or are currently not available.

Would you like to add the products that are in stock to the shopping cart?" dictLanguage.Add "english_prodOpt_1", "Add " dictLanguage.Add "english_prodOpt_2", "Subtract " ' Product Reviews feature dictLanguage.Add "english_prv_1", "Product Reviews" dictLanguage.Add "english_prv_2", "Average Ratings: " dictLanguage.Add "english_prv_3", "Read all product reviews" dictLanguage.Add "english_prv_4", "Write your own review" dictLanguage.Add "english_prv_5", "Rate this product: " dictLanguage.Add "english_prv_6", "Rate it" dictLanguage.Add "english_prv_7", "votes" dictLanguage.Add "english_prv_8", "We are sorry. It appears that you have already posted one or more reviews for this product. If you believe that you are receiving this message in error, please contact us." dictLanguage.Add "english_prv_9", "Submit your review" dictLanguage.Add "english_prv_10", "For the product: " dictLanguage.Add "english_prv_11", "Customer Name: " dictLanguage.Add "english_prv_12", "Review Title: " dictLanguage.Add "english_prv_13", "(1 = worst, " dictLanguage.Add "english_prv_13a", " = best)" dictLanguage.Add "english_prv_14", "Thank you! Your product review has been posted successfully!" dictLanguage.Add "english_prv_15", "No rating" dictLanguage.Add "english_prv_16", "Thank you! Your comments have been posted and will be reviewed soon." dictLanguage.Add "english_prv_17", "New Product Review was posted in your store - Product ID #" dictLanguage.Add "english_prv_18", "Product Review System - Notification for the store manager" dictLanguage.Add "english_prv_19", "A customer has posted a review for Product ID #" dictLanguage.Add "english_prv_20", "Click on the link below to log into the Control Panel and check this review:" dictLanguage.Add "english_prv_21", "These fields are required." ' End of Product Reviews feature ' End new text strings added for ProductCart v2.75 ' Start new text strings added for ProductCart v2.76 ' In addition to the strings shown below, a few other text strings were edited ' Specifically: the Wish List and Save Quotes features were combined into one ' and therefore the corresponding text strings were edited accordingly. dictLanguage.Add "english_updOrdStats_2a", "Thank you for your order. Your order number is " dictLanguage.Add "english_updOrdStats_2b", "Your order has been processed and a confirmation email has been sent to your account. To view details for your order, please click on the link below." dictLanguage.Add "english_CustwlRmv_2", "The item was successfully removed from your Saved Products list" dictLanguage.Add "english_CustviewPastD_101", "Payment Method: " dictLanguage.Add "english_CustviewPastD_102", "Transaction ID" dictLanguage.Add "english_CustviewPastD_103", "Authorization Code" dictLanguage.Add "english_orderComplete_2", "Please find a summary of your order below." dictLanguage.Add "english_AffCom_15", "Total Sales" dictLanguage.Add "english_AffCom_16", "Order Total" dictLanguage.Add "english_AffCom_17", "Shipping" dictLanguage.Add "english_AffCom_18", "Tax" dictLanguage.Add "english_security_1", "Security code:" dictLanguage.Add "english_security_2", "Your attempt was denied because of security reasons. Please contact the store administrator for more information." dictLanguage.Add "english_security_3", "Invalid security code. Please enter the security code exactly as shown." dictLanguage.Add "english_security_4", "Security Warning" dictLanguage.Add "english_security_5", "Store administrator," & vbcrlf & "Someone has attempted to log into the store more than times. User information is:" & vbcrlf & vbcrlf & "" & vbcrlf & "If you believe this to be an authorized user that is attacking your store in an attempt to gain unauthorized entry, you may want to contact your Web hosting company and have them block the IP address." dictLanguage.Add "english_security_5a", "Store administrator," & vbcrlf & "Someone has attempted to contact us more than times. User information is:" & vbcrlf & vbcrlf & "" & vbcrlf & "If you believe this to be an authorized user that is attacking your store in an attempt to gain unauthorized entry, you may want to contact your Web hosting company and have them block the IP address." dictLanguage.Add "english_security_5b", "Store administrator," & vbcrlf & "Someone has attempted to 'tell a friend' more than times. User information is:" & vbcrlf & vbcrlf & "" & vbcrlf & "If you believe this to be an authorized user that is attacking your store in an attempt to gain unauthorized entry, you may want to contact your Web hosting company and have them block the IP address." dictLanguage.Add "english_custOrdInvoice_1", "ORDER DATE: " dictLanguage.Add "english_custOrdInvoice_2", "BILL TO" dictLanguage.Add "english_custOrdInvoice_3", "Tel: " dictLanguage.Add "english_custOrdInvoice_4", "E-mail: " dictLanguage.Add "english_custOrdInvoice_5", "ORDER ID: " dictLanguage.Add "english_custOrdInvoice_6", "CUSTOMER ID: " dictLanguage.Add "english_custOrdInvoice_7", "ORDER NAME: " dictLanguage.Add "english_custOrdInvoice_8", "DELIVERY DATE/TIME: " dictLanguage.Add "english_custOrdInvoice_9", "SHIPPED VIA: " dictLanguage.Add "english_custOrdInvoice_10", "PAYMENT METHOD: " dictLanguage.Add "english_custOrdInvoice_11", "ADDITIONAL FEE: " dictLanguage.Add "english_custOrdInvoice_12", "You used " dictLanguage.Add "english_custOrdInvoice_13", " on this purchase, for a discount of " dictLanguage.Add "english_custOrdInvoice_14", "You accrued " dictLanguage.Add "english_custOrdInvoice_15", " on this purchase." dictLanguage.Add "english_custOrdInvoice_16", "Discount Code Used/Promotion: " dictLanguage.Add "english_custOrdInvoice_17", "SHIP TO" dictLanguage.Add "english_custOrdInvoice_18", "QTY" dictLanguage.Add "english_custOrdInvoice_19", "SKU - DESCRIPTION" dictLanguage.Add "english_custOrdInvoice_20", "UNIT PRICE" dictLanguage.Add "english_custOrdInvoice_21", "TOTAL" dictLanguage.Add "english_custOrdInvoice_22", "Customizations" dictLanguage.Add "english_custOrdInvoice_23", "Items Discounts:" dictLanguage.Add "english_custOrdInvoice_24", "Additional Charges:" dictLanguage.Add "english_custOrdInvoice_25", "Quantity Discounts:" dictLanguage.Add "english_custOrdInvoice_26", "PRODUCT SUBTOTAL:" dictLanguage.Add "english_custOrdInvoice_27", "SHIPPING:" dictLanguage.Add "english_custOrdInvoice_28", "SHIPPING &
HANDLING FEES" dictLanguage.Add "english_custOrdInvoice_29", "PROCESSING FEES:" dictLanguage.Add "english_custOrdInvoice_30", "TAXES:" dictLanguage.Add "english_custOrdInvoice_31", "DISCOUNTS:" dictLanguage.Add "english_custOrdInvoice_32", "ORDER TOTAL" dictLanguage.Add "english_custOrdInvoice_33", "VAT (included in total):" dictLanguage.Add "english_custOrdInvoice_34", "CREDIT ISSUED:" dictLanguage.Add "english_custOrdInvoice_35", "COMMENTS:" dictLanguage.Add "english_alert_14", "Unfortunately you cannot add your saved products to the shopping cart because all the products that had been saved are now out of stock, have been deleted, or are currently not available." dictLanguage.Add "english_alert_15", "Unfortunately you cannot add all saved products to the shopping cart because one or more of the products that had been saved are now out of stock, have been deleted, or are currently not available.

Would you like to add the products that are in stock to the shopping cart?" dictLanguage.Add "english_alert_16", "This product requires a minimum purchase of " dictLanguage.Add "english_alert_17", " units." dictLanguage.Add "english_alert_18", "Required Accessory" dictLanguage.Add "english_Custwlview_14", "Add all saved products to the cart" dictLanguage.Add "english_Custwlview_15", "Options:" dictLanguage.Add "english_Custwlview_16", "Remove all saved products from my list" dictLanguage.Add "english_Custwlview_17", "All saved products were removed successfully!" dictLanguage.Add "english_Custwlview_18", "You are about to remove all saved products from your account. Are you sure you want to complete this action?" dictLanguage.Add "english_viewPrd_50", "You can earn " dictLanguage.Add "english_viewPrd_51", " on this product!" ' End new text strings added for ProductCart v2.76 ' Start new text strings added for ProductCart v3 ' Replaced hardcoded text in pc/msg.asp with the following text strings dictLanguage.Add "english_msg_12", "This store is currently not set up to handle international orders. Please contact us if you have any questions about placing an order on our store." dictLanguage.Add "english_msg_13", "The store has not yet been configured to calculate shipping charges. Please notify the store administrator." dictLanguage.Add "english_msg_38", "An error occurred during your session. We apologize for the inconvenience.

You can try to retrieve your order by viewing your basket and continuing your order from that point. Contact us if you are not able to place your order and we will be happy to assist you." dictLanguage.Add "english_msg_73", "Your payment was not received by Paypal. Contact us if you are not able to place your order and we will be happy to assist you." dictLanguage.Add "english_msg_75", "You did not specify a state. You must specify a State if your address is located in the United States." dictLanguage.Add "english_msg_76", "Your e-mail address has already been used to register an account with our store.

You can retrieve your old password or register with a new one.

" dictLanguage.Add "english_msg_201", "No items in the shopping cart when loading orderVerify.asp" dictLanguage.Add "english_msg_202", "The order cannot be found in our database and cannot be updated." dictLanguage.Add "english_msg_back", "Back" dictLanguage.Add "english_CustPref_15", "Customer Category: " dictLanguage.Add "english_Contact_10", "Thank you for contacting us. We will get back to you soon!" dictLanguage.Add "english_search_1", "Use any of the filters below to search our catalog. Try selecting a filter (e.g. a category) or entering a keyword, then click elsewhere on the page: the store will show you how many search results your search will return, before you actually run the search.

You can choose how many search results to see on the search results pages by using the "Results per Page" drop-down menu." dictLanguage.Add "english_techErr_2", "At least one payment option must be available on this store before customers can place an order. Please contact the store administrator." dictLanguage.Add "english_techErr_3", " for wholesale purchases." dictLanguage.Add "english_techErr_4", "The amount of " dictLanguage.Add "english_techErr_5", " you entered is greater then your balance. Your current balance is: " dictLanguage.Add "english_techErr_6", "Technical Information:" dictLanguage.Add "english_techErr_7", "The error has been logged in the store database. The reference ID for this error is: " dictLanguage.Add "english_techErr_8", ". Write it down because you will need it to obtain more information about this error or to report the problem to our technical support team." dictLanguage.Add "english_techErr_9", "

For security reasons, details about this error are not shown in the storefront. To obtain more information, do the following:

  • Log into your store's Control Panel
  • Go to "Help > Error Information"
  • Enter the Reference ID and click "Submit"
" dictLanguage.Add "english_newCust_1", "Create a New Account" dictLanguage.Add "english_viewCategories_1", "Featured products under " dictLanguage.Add "english_viewCategories_1b", "Some of the most popular products on our store..." dictLanguage.Add "english_viewCategories_2", "Browse these categories under " dictLanguage.Add "english_viewCategories_3", "Visit another category under " dictLanguage.Add "english_viewCategories_4", "Our featured category under " dictLanguage.Add "english_viewCategories_5", " this month is..." dictLanguage.Add "english_viewCategories_6", "Select one of the following subcategories: " dictLanguage.Add "english_showSearchResults_1", "Your search returned the following results..." dictLanguage.Add "english_showSearchResults_2", "Search results by category:" dictLanguage.Add "english_editFeedback_a", "Your message was updated successfully!" dictLanguage.Add "english_editFeedback_b", "The message was not found or you don't have permission to modify it." dictLanguage.Add "english_editFeedback_c", "Edit Message" dictLanguage.Add "english_editFeedback_d", "Please select a message type." dictLanguage.Add "english_editFeedback_e", "Please select a priority." dictLanguage.Add "english_editFeedback_f", "Please select a message status." dictLanguage.Add "english_editFeedback_g", "Please enter a short description." dictLanguage.Add "english_editFeedback_h", "Please enter the message details." dictLanguage.Add "english_editFeedback_i", "The message was deleted successfully!" dictLanguage.Add "english_editFeedback_j", "You are about to remove this message from this order. Are you sure you want to complete this action?" dictLanguage.Add "english_instPrd_1", "One or more of the products that you have selected cannot be added to the shopping cart. This is due to a limitation on the total number of different products that the shopping cart can support. Click here to view the products currently in your shopping cart. To add a new product, you will have to remove another one from the shopping cart. If you have any questions, please contact us." dictLanguage.Add "english_instPrd_2", "The quantity of " dictLanguage.Add "english_instPrd_3", " that you are trying to order is greater than the quantity that we currently have in stock. We currently have " dictLanguage.Add "english_instPrd_4", " unit(s) in stock." dictLanguage.Add "english_viewPrd_60", "Availability: " dictLanguage.Add "english_viewPrd_61", "Select One" dictLanguage.Add "english_viewPrd_62", "This product is no longer active in our catalog.

Look for another product or contact the store manager to let them know." dictLanguage.Add "english_ShowSearch_1", "New Search" dictLanguage.Add "english_ShowSearch_2", "Please wait while we process your request..." dictLanguage.Add "english_ShowSearch_3", "Your search will return " dictLanguage.Add "english_ShowSearch_4", " result(s)." dictLanguage.Add "english_ShowSearch_5", "Your search did not return any results." dictLanguage.Add "english_ShowSearch_6", " products found" dictLanguage.Add "english_ShowSearch_7", " product found" dictLanguage.Add "english_ShowSearch_8", "Search Results Preview" dictLanguage.Add "english_checkout_20", "Checkout Without Creating a Password" dictLanguage.Add "english_checkout_21", "We will not ask you to enter a password. Note that we will still create an account for you, but we will generate a random password for you, which you can retrieve and edit at any time." dictLanguage.Add "english_checkout_22", "Forgot Password" dictLanguage.Add "english_checkout_23", "Account Login" dictLanguage.Add "english_checkout_24", "Please enter your e-mail address before proceeding." dictLanguage.Add "english_checkout_25", "Are you already registered with our store?" dictLanguage.Add "english_checkout_26", "Yes and my password is: " dictLanguage.Add "english_checkout_27", "No, I want to create a new account." dictLanguage.Add "english_checkout_28", "No, I want to checkout without creating a password." dictLanguage.Add "english_prv_30", "Return to product details >>" dictLanguage.Add "english_validate_1", "E-mail Address is a required field." dictLanguage.Add "english_validate_2", "The login information you provided was not found in our database. Please try again or use the password reminder tool to retrieve a lost password." dictLanguage.Add "english_validate_3", "The e-mail address you provided already exists in our database. Please use another e-mail address to register or use the password reminder tool to retrieve the password associated with this email account." dictLanguage.Add "english_validate_4", "Based on your e-mail address, we see that you have purchased from us before. Thank you for your previous business and welcome you back to our store!

Because it is necessary for us to associate all orders with a specific e-mail address, a customer account was created for you last time you ordered. A random password was also created for you, so that you could login and use the same information again without having to re-enter it.

Click here and this temporary password will be immediately sent to you." dictLanguage.Add "english_NewAffa_15", "Web site URL:" dictLanguage.Add "english_storeEmail_20", ": thank you for registering with our store!" dictLanguage.Add "english_storeEmail_21", "At any time you can log into your account to check order status, update your billing information, add multiple shipping addresses, and much more. To log in, use the link below: " dictLanguage.Add "english_storeEmail_22", "Thanks again for visiting our store. Let us know if there is anything we can do to make your experience with us a better one!" dictLanguage.Add "english_storeEmail_23", " - Confirmation of Customer Registration" dictLanguage.Add "english_viewSpc_5", "Check out our store specials! We have gone through our catalog and hand-picked some of the best deals for you." dictLanguage.Add "english_NewAffa_1c", "Thank you for your interest in joining our affiliate program. Please note that we carefully review every application. Once we have reviewed and approved your account, we will contact you. You will then be able to log into a dedicated area of our store where you can obtain special links that you can use on your Web site to refer customers to our store. You will also be able to track sales and earned commissions." 'Start SDBA dictLanguage.Add "english_sdsLogin_1", "Drop-shipping company account login" dictLanguage.Add "english_sdsLogin_2", "Login below to access your drop-shipping account." dictLanguage.Add "english_sdsLogin_3", "User name:" dictLanguage.Add "english_sdsLogin_4", "Password:" dictLanguage.Add "english_sdsLogin_5", "Your password has been e-mailed to you. Please check your e-mail now to retreive it and enter it into the form above." dictLanguage.Add "english_sdsLogin_6", "Forgot your password?" dictLanguage.Add "english_sdsLogin_7", "Click here" dictLanguage.Add "english_sdsLogin_8", "The password you have entered does not match the one on record. Please try again." dictLanguage.Add "english_sdsMain_1", "Drop-Shipper Menu" dictLanguage.Add "english_sdsMain_2", "Account Information" dictLanguage.Add "english_sdsMain_3", "View Previous Orders" dictLanguage.Add "english_sdsMain_4", "Contact Us" dictLanguage.Add "english_sdsMain_5", "Logout" dictLanguage.Add "english_ModsdsA_1", "Drop-Shipper Information" dictLanguage.Add "english_ModsdsA_1b", "All fields marked with an asterisk are required." dictLanguage.Add "english_ModsdsA_msg_1", "Please enter value for this field." dictLanguage.Add "english_ModsdsA_msg_2", "Please select a State or Province." dictLanguage.Add "english_ModsdsA_msg_3", "Please select a Country." dictLanguage.Add "english_ModsdsA_2", "Your are currently editing the Drop-Shipper: " dictLanguage.Add "english_ModsdsA_3", "Main Contact" dictLanguage.Add "english_ModsdsA_4", "Company:" dictLanguage.Add "english_ModsdsA_5", "First Name:" dictLanguage.Add "english_ModsdsA_6", "Last Name:" dictLanguage.Add "english_ModsdsA_7", "Phone:" dictLanguage.Add "english_ModsdsA_8", "E-mail:" dictLanguage.Add "english_ModsdsA_9", "Website URL:" dictLanguage.Add "english_ModsdsA_10", "Shipping From Address" dictLanguage.Add "english_ModsdsA_11", "Address:" dictLanguage.Add "english_ModsdsA_12", "Address 2:" dictLanguage.Add "english_ModsdsA_13", "City:" dictLanguage.Add "english_ModsdsA_14", "State:" dictLanguage.Add "english_ModsdsA_15", "Province:" dictLanguage.Add "english_ModsdsA_16", "Postal Code:" dictLanguage.Add "english_ModsdsA_17", "Country:" dictLanguage.Add "english_ModsdsA_18", "Login Information" dictLanguage.Add "english_ModsdsA_19", "Username:" dictLanguage.Add "english_ModsdsA_20", "Password:" dictLanguage.Add "english_ModsdsA_21", "Order Notification E-mail:" dictLanguage.Add "english_ModsdsA_22", "Billing Address" dictLanguage.Add "english_ModsdsB_1", "Your information has been updated successfully!" dictLanguage.Add "english_sds_forgotpassworderror", "Your User name does not appear to be in our database." dictLanguage.Add "english_sds_viewprd_1", "Typically ships within " dictLanguage.Add "english_sds_viewprd_1b", " days" dictLanguage.Add "english_sds_viewpast_1a", "Order Status" dictLanguage.Add "english_sds_viewpast_1b", "Payment Status" dictLanguage.Add "english_sds_viewpast_1c", "Shipping Wizard" dictLanguage.Add "english_sds_viewpast_1", "Incomplete" dictLanguage.Add "english_sds_viewpast_2", "Pending" dictLanguage.Add "english_sds_viewpast_3", "Processed" dictLanguage.Add "english_sds_viewpast_4", "Shipped" dictLanguage.Add "english_sds_viewpast_5", "Cancelled" dictLanguage.Add "english_sds_viewpast_6", "Returned" dictLanguage.Add "english_sds_viewpast_7", "Partially Shipped" dictLanguage.Add "english_sds_viewpast_8", "Shipping" dictLanguage.Add "english_sds_viewpast_9", "Partially Returned" dictLanguage.Add "english_sds_viewpast_10", "Authorized" dictLanguage.Add "english_sds_viewpast_11", "Paid" dictLanguage.Add "english_sds_custviewpastD_1", "Status" dictLanguage.Add "english_sds_custviewpastD_2", "Pending" dictLanguage.Add "english_sds_custviewpastD_3", "Shipped" dictLanguage.Add "english_sds_custviewpastD_4", "Payment Status: " dictLanguage.Add "english_sds_custviewpastD_5", "Authorized" dictLanguage.Add "english_sds_custviewpastD_6", "Paid" dictLanguage.Add "english_sds_custviewpastD_7", "Note: You have to ship products to this store address instead of the customer shipping address." dictLanguage.Add "english_sds_custviewpastD_8", "Note: You need to ship products directly to the customer shipping address." dictLanguage.Add "english_sds_custviewpastD_9", "Declined" dictLanguage.Add "english_sds_custviewpastD_10", "Cancelled" dictLanguage.Add "english_sds_custviewpastD_11", "Cancelled By Google" dictLanguage.Add "english_sds_custviewpastD_12", "Refunded" dictLanguage.Add "english_sds_custviewpastD_13", "Charging" dictLanguage.Add "english_sds_custviewpastD_14", "Voided" dictLanguage.Add "english_sds_custviewpastD_15", "Shipping Information: " dictLanguage.Add "english_sds_custviewpastD_16", "Shipping Method Requested: " dictLanguage.Add "english_sds_custviewpastD_17", "Shipping Address Type: " dictLanguage.Add "english_sds_custviewpastD_18", "Residential" dictLanguage.Add "english_sds_custviewpastD_19", "Commercial" dictLanguage.Add "english_sds_confirmrequest_1", "Your order will be shipped as indicated below" dictLanguage.Add "english_sds_confirmrequest_2", "Order #:" dictLanguage.Add "english_sds_confirmrequest_2a", "Thank you for getting back to us. Please choose your preferred shipping option for this order. Do you want us to wait until all products are in stock or send you separate shipments?" dictLanguage.Add "english_sds_confirmrequest_3", "We will ship your order in separate packages." dictLanguage.Add "english_sds_confirmrequest_4", "We will wait until all products are in stock and then ship your order in one shipment." dictLanguage.Add "english_sds_confirmrequest_5", "We cannot not find your order in our store." dictLanguage.Add "english_sds_confirmrequest_6", "You have already gotten back to us on this. Thank you!" dictLanguage.Add "english_sds_confirmrequest_7", "Thanks you for letting us know!
We have successfully updated your order with the information we needed.
The order will be shipped in the way you specified." dictLanguage.Add "english_sds_shiporderwizard_1", "Order ID#:" dictLanguage.Add "english_sds_shiporderwizard_2", "Steps" dictLanguage.Add "english_sds_shiporderwizard_3", "Select products" dictLanguage.Add "english_sds_shiporderwizard_4", "Process Shipment" dictLanguage.Add "english_sds_shiporderwizard_5", "Finalize Shipment" dictLanguage.Add "english_sds_shiporderwizard_6", "Products not found." dictLanguage.Add "english_sds_shiporderwizard_7", "Product Name" dictLanguage.Add "english_sds_shiporderwizard_8", "Quantity" dictLanguage.Add "english_sds_shiporderwizard_9", "Status" dictLanguage.Add "english_sds_shiporderwizard_10", "Shipped" dictLanguage.Add "english_sds_shiporderwizard_11", "Pending" dictLanguage.Add "english_sds_shiporderwizard_12", " (Back-Ordered)" dictLanguage.Add "english_sds_shiporderwizard_13", " Process Shipment " dictLanguage.Add "english_sds_shiporderwizard_14", "Shipment Information" dictLanguage.Add "english_sds_shiporderwizard_15", "Shipment Method:" dictLanguage.Add "english_sds_shiporderwizard_16", "Tracking Number:" dictLanguage.Add "english_sds_shiporderwizard_17", "Shipped Date:" dictLanguage.Add "english_sds_shiporderwizard_17a", " (format: mm/dd/yyyy)" dictLanguage.Add "english_sds_shiporderwizard_18", "Comments:" dictLanguage.Add "english_sds_shiporderwizard_19", " Finalize Shipment " dictLanguage.Add "english_sds_shiporderwizard_20", "Your order was updated successfully!" dictLanguage.Add "english_sds_shiporderwizard_21", " Back to Order Details " 'End SDBA 'GGG Add-on Start dictLanguage.Add "english_CustPref_13", "Manage Gift Registries" dictLanguage.Add "english_CustviewPastD_33", "Gift Certificate(s) Information" dictLanguage.Add "english_CustviewPastD_34", "Gift Certificate Name: " dictLanguage.Add "english_CustviewPastD_35", "Gift Certificate Code: " dictLanguage.Add "english_CustviewPastD_36", "Expiration Date: " dictLanguage.Add "english_CustviewPastD_36b", "This Gift Certificate does not expire." dictLanguage.Add "english_CustviewPastD_37", "Available Amount: " dictLanguage.Add "english_CustviewPastD_37b", "This Gift Certificate has been completely redeemed." dictLanguage.Add "english_CustviewPastD_38", "Status: " dictLanguage.Add "english_CustviewPastD_38a", "Active" dictLanguage.Add "english_CustviewPastD_38b", "Inactive" dictLanguage.Add "english_CustviewPastD_39", "Event Name:" dictLanguage.Add "english_CustviewPastD_40", "Event Date:" dictLanguage.Add "english_CustviewPastD_41", "Registrant's Name:" dictLanguage.Add "english_CustviewPastD_42", "Gift Wrapping: " dictLanguage.Add "english_CustviewPastD_43", "Price: " dictLanguage.Add "english_CustviewPastD_44", "Gift Notes: " dictLanguage.Add "english_CustviewPastD_45", "The following Gift Certificate(s) were used for this order: " dictLanguage.Add "english_CustviewPastD_46", "Gift Certificate Name:" dictLanguage.Add "english_CustviewPastD_47", "Gift Certificate Code: " dictLanguage.Add "english_CustviewPastD_48", "Used for this order: " dictLanguage.Add "english_CustviewPastD_49", "This Gift Certificate has been completely redeemed." dictLanguage.Add "english_CustviewPastD_50", "Available Amount: " dictLanguage.Add "english_CustviewPastD_51", "This Gift Certificate does not expire." dictLanguage.Add "english_CustviewPastD_52", "Expiration Date: " dictLanguage.Add "english_CustviewPastD_53", "Status: " dictLanguage.Add "english_CustviewPastD_53a", "Active" dictLanguage.Add "english_CustviewPastD_53b", "Inactive" dictLanguage.Add "english_orderverify_36a", "Gift Wrapping" dictLanguage.Add "english_orderverify_37a", "None" dictLanguage.Add "english_orderverify_38a", "Not Available" dictLanguage.Add "english_orderverify_39a", "Edit" dictLanguage.Add "english_msg_0", "Gift Certificate code error(s): " dictLanguage.Add "english_msg_1", "The Gift Certificate code " dictLanguage.Add "english_msg_1a", " that you entered is not valid. Please try again or contact the store manager for more information." dictLanguage.Add "english_msg_2", " that you entered refers to a Certificate that has expired. Please try again or contact the store manager for more information." dictLanguage.Add "english_msg_3", " that you entered refers to a Certificate that has already been completely redeemed. Please try again or contact the store manager for more information." dictLanguage.Add "english_msg_4", "Your message has been sent successfully!" dictLanguage.Add "english_msg_5", "No Gift Registries matched your search. Click on the 'Back' button to search again." dictLanguage.Add "english_msg_6", "This gift registry is no longer available." dictLanguage.Add "english_msg_7", "The selected product is not part of this gift registry." dictLanguage.Add "english_msg_8", "The shopping cart is currently in use for buying products listed in a Gift Registry.

At this time, you can only purchase products that are listed in that registry. If you would like to purchase items that are not listed there, please first empty the shopping cart." dictLanguage.Add "english_msg_9", "The shopping cart is currently in use for another Gift Registry. Please empty it before performing this action." dictLanguage.Add "english_msg_10", "The shopping cart is not currently in use for this Gift Registry. Please empty it before performing this action." dictLanguage.Add "english_showcart_24", "Gift Wrap" dictLanguage.Add "english_showcart_25", "N/A" dictLanguage.Add "english_showcart_26", "Bundle Discount:" dictLanguage.Add "english_showcart_27", "Edit" dictLanguage.Add "english_showcart_28", "Please note that we have added to your shopping cart additional products that are required by
." dictLanguage.Add "english_sendMail_42", "The following Gift Certificate was purchased with this order: " dictLanguage.Add "english_sendMail_43", "Gift Certificate Name: " dictLanguage.Add "english_sendMail_44", "Gift Certificate Code: " dictLanguage.Add "english_sendMail_45", "Expiration Date: " dictLanguage.Add "english_sendMail_45b", "This Gift Certificate does not expire." dictLanguage.Add "english_sendMail_46", "The following Gift Certificate(s) were used for this order: " dictLanguage.Add "english_sendMail_47", "Gift Certificate Name: " dictLanguage.Add "english_sendMail_48", "Gift Certificate Code: " dictLanguage.Add "english_sendMail_49", "Used for this order: " dictLanguage.Add "english_sendMail_50", "This Gift Certificate has been completely redeemed." dictLanguage.Add "english_sendMail_51", "Available Amount: " dictLanguage.Add "english_sendMail_52", "This Gift Certificate does not expire." dictLanguage.Add "english_sendMail_53", "Expiration Date: " dictLanguage.Add "english_sendMail_54", "Status: " dictLanguage.Add "english_sendMail_54a", "Active" dictLanguage.Add "english_sendMail_54b", "Inactive" dictLanguage.Add "english_sendMail_55", "Event Name: " dictLanguage.Add "english_sendMail_56", "Event Date: " dictLanguage.Add "english_sendMail_57", "Registrant's Date: " dictLanguage.Add "english_sendMail_58", "Dear " dictLanguage.Add "english_sendMail_59", "A customer purchased one or more products from a Gift Registry that you created on this store. Here are some details: " dictLanguage.Add "english_sendMail_60", "Customer Name: " dictLanguage.Add "english_sendMail_61", "Order Details: " dictLanguage.Add "english_sendMail_62", "Order #: " dictLanguage.Add "english_sendMail_63", "Gift Wrapping: " dictLanguage.Add "english_sendMail_64", "Price: " dictLanguage.Add "english_sendMail_65", "Gift Notes: " dictLanguage.Add "english_sendMail_66", "Dear ," dictLanguage.Add "english_sendMail_67", " purchased a Gift Certificate for you from our online store. To redeem this Gift Certificate, enter the Gift Certificate Code shown below when placing an order on our store." dictLanguage.Add "english_sendMail_68", "Gift Certificate amount: " dictLanguage.Add "english_sendMail_69", "Gift Certificate code: " dictLanguage.Add "english_sendMail_70", "Expiration: " dictLanguage.Add "english_sendMail_71", "This is an electronic Gift Certificate. A certificate will not be shipped to you." dictLanguage.Add "english_sendMail_72", " also included this note:" dictLanguage.Add "english_sendMail_73", " purchased a Gift Certificate for you!" dictLanguage.Add "english_adminMail_9a", "Gift Certificate Used: " dictLanguage.Add "english_adminMail_36", "Event Name: " dictLanguage.Add "english_adminMail_37", "Event Date: " dictLanguage.Add "english_adminMail_38", "Registrant's Date: " dictLanguage.Add "english_adminMail_39", "Gift Wrapping: " dictLanguage.Add "english_adminMail_40", "Price: " dictLanguage.Add "english_adminMail_41", "Gift Notes: " dictLanguage.Add "english_ManageGRs_1", "Manage Gift Registries" dictLanguage.Add "english_ManageGRs_2", "Create New Registry" dictLanguage.Add "english_ManageGRs_3", "You don't currently have any gift registries saved on our store." dictLanguage.Add "english_ManageGRs_4", "Event Name" dictLanguage.Add "english_ManageGRs_4a", "ID#" dictLanguage.Add "english_ManageGRs_5", "Event Type" dictLanguage.Add "english_ManageGRs_6", "Event Date" dictLanguage.Add "english_ManageGRs_7", "Visibility" dictLanguage.Add "english_ManageGRs_7a", "Visible" dictLanguage.Add "english_ManageGRs_7b", "Hidden" dictLanguage.Add "english_ManageGRs_8", "Status" dictLanguage.Add "english_ManageGRs_8a", "Active" dictLanguage.Add "english_ManageGRs_8b", "Inactive" dictLanguage.Add "english_ManageGRs_9", "Items" dictLanguage.Add "english_ManageGRs_10", "Avail." dictLanguage.Add "english_ManageGRs_11", "Notify Friends" dictLanguage.Add "english_ManageGRs_12", "View Products" dictLanguage.Add "english_ManageGRs_13", "Edit Settings" dictLanguage.Add "english_ManageGRs_14", "Add Products" dictLanguage.Add "english_instGR_1", "Create New Gift Registry" dictLanguage.Add "english_instGR_1a", "Edit Gift Registry" dictLanguage.Add "english_instGR_2", "Event Type: " dictLanguage.Add "english_instGR_3", "Event Name: " dictLanguage.Add "english_instGR_4", "Event Date: " dictLanguage.Add "english_instGR_4a", "Format: " dictLanguage.Add "english_instGR_5", "Preferred delivery: " dictLanguage.Add "english_instGR_5b", "Other options: " dictLanguage.Add "english_instGR_6", "My Shipping Address" dictLanguage.Add "english_instGR_7", "Shipping address:" dictLanguage.Add "english_instGR_8", "Add New Address" dictLanguage.Add "english_instGR_9", "Customer's address" dictLanguage.Add "english_instGR_10", "Hide Event" dictLanguage.Add "english_instGR_10a", "Note: If you hide your event, customers that come to our store will not be able to see your registry when they search our registry database. The only way for them to view your registry will be by clicking on a link that you can send them at any time using the 'Notify' feature shown on the next page." dictLanguage.Add "english_instGR_11", "Notify me of new orders" dictLanguage.Add "english_instGR_12", "Include Gift Certificates" dictLanguage.Add "english_instGR_13", "Active" dictLanguage.Add "english_instGR_14", " Continue " dictLanguage.Add "english_instGR_15", "This Gift Registry was successfully updated!" dictLanguage.Add "english_instGR_16", " Delete this Registry " dictLanguage.Add "english_instGR_17", "Hide Gift Registry recipient's shipping address " dictLanguage.Add "english_instGR_18", "Please select a gift registry." dictLanguage.Add "english_instGR_19", "Select a gift registry." dictLanguage.Add "english_addtoGR_1", "Add products to Gift Registry" dictLanguage.Add "english_addtoGR_2", "Gift Registry:" dictLanguage.Add "english_addtoGR_3", " Continue " dictLanguage.Add "english_GRDetails_1", "Manage " dictLanguage.Add "english_GRDetails_1a", " Registry" dictLanguage.Add "english_GRDetails_1b", "Event Date: " dictLanguage.Add "english_GRDetails_1c", "Event name: " dictLanguage.Add "english_GRDetails_1d", "Event Type: " dictLanguage.Add "english_GRDetails_2", "SKU" dictLanguage.Add "english_GRDetails_3", "Name" dictLanguage.Add "english_GRDetails_4", "Items" dictLanguage.Add "english_GRDetails_5", "Avail." dictLanguage.Add "english_GRDetails_6", "Add" dictLanguage.Add "english_GRDetails_7", "Remove*" dictLanguage.Add "english_GRDetails_8", "Gift Certificates" dictLanguage.Add "english_GRDetails_9", " Update " dictLanguage.Add "english_GRDetails_10", "You don't currently have any products in this registry." dictLanguage.Add "english_GRDetails_11", "Products successfully updated!" dictLanguage.Add "english_GRDetails_12", "Reset Gift Certificate product list" dictLanguage.Add "english_GRDetails_13", "(*) You can only remove products from your Registry if they have not already been purchased." dictLanguage.Add "english_GRDetails_14", "You are about to remove this gift registry from your database. Are you sure you want to complete this action?" dictLanguage.Add "english_NotifyGR_1", "Notify about " dictLanguage.Add "english_NotifyGR_1a", " Gift Registry" dictLanguage.Add "english_NotifyGR_2", "Use this mail form to let people know about your registry. When the registry is hidden, this is the only way for people to reach the registry." dictLanguage.Add "english_NotifyGR_3", "Customer Name:" dictLanguage.Add "english_NotifyGR_4", "Customer E-mail:" dictLanguage.Add "english_NotifyGR_5", "E-mail Address(es):" dictLanguage.Add "english_NotifyGR_6", "Note: Enter one e-mail address per line." dictLanguage.Add "english_NotifyGR_7", "Subject:" dictLanguage.Add "english_NotifyGR_8", "Message:" dictLanguage.Add "english_NotifyGR_9", " Send message " dictLanguage.Add "english_NotifyGR_10", "Date: " dictLanguage.Add "english_NotifyGR_11", "Gift Registry Link: " dictLanguage.Add "english_NewGREmailToStoreAdmin_Subject", "New Gift Registry Notification" dictLanguage.Add "english_NewGREmailToStoreAdmin_Body", "A customer created a new Gift Registry. Details are below." dictLanguage.Add "english_SrcGR_1", "Find a Gift Registry" dictLanguage.Add "english_SrcGR_2", "First Name: " dictLanguage.Add "english_SrcGR_3", "Last Name: " dictLanguage.Add "english_SrcGR_4", "Event Date: " dictLanguage.Add "english_SrcGR_5", "Month" dictLanguage.Add "english_SrcGR_6", "Year" dictLanguage.Add "english_SrcGR_7", " Search " dictLanguage.Add "english_SrcGR_8", "To look for a Gift Registry, enter a first name, a last name, a registry name or a date. If you can't find the Registry that you are looking for, please note that some customers decide not to make their Gift Registry available through this search feature. Contact your friend or family member to find out if that is the case and obtain a direct link to their Registry." dictLanguage.Add "english_SrcGR_9", "Registry Name: " dictLanguage.Add "english_SrcGR_11", "January" dictLanguage.Add "english_SrcGR_12", "February" dictLanguage.Add "english_SrcGR_13", "March" dictLanguage.Add "english_SrcGR_14", "April" dictLanguage.Add "english_SrcGR_15", "May" dictLanguage.Add "english_SrcGR_16", "June" dictLanguage.Add "english_SrcGR_17", "July" dictLanguage.Add "english_SrcGR_18", "August" dictLanguage.Add "english_SrcGR_19", "September" dictLanguage.Add "english_SrcGR_20", "October" dictLanguage.Add "english_SrcGR_21", "November" dictLanguage.Add "english_SrcGR_22", "December" dictLanguage.Add "english_SrcGRb_1", " Gift Registry Search Results " dictLanguage.Add "english_SrcGRb_2", "Customer Name" dictLanguage.Add "english_SrcGRb_3", "Event" dictLanguage.Add "english_SrcGRb_4", "Event Date" dictLanguage.Add "english_SrcGRb_5", "View Registry" dictLanguage.Add "english_viewGR_1", " Gift Registry" dictLanguage.Add "english_viewGR_2", "SKU" dictLanguage.Add "english_viewGR_3", "Name" dictLanguage.Add "english_viewGR_4", "Price" dictLanguage.Add "english_viewGR_5", "Wants" dictLanguage.Add "english_viewGR_6", "Has" dictLanguage.Add "english_viewGR_7", "Fullfilled" dictLanguage.Add "english_viewGR_8", "Out of Stock" dictLanguage.Add "english_viewGR_9", "Add to Cart" dictLanguage.Add "english_viewGR_10", "Gift Certificates" dictLanguage.Add "english_viewGR_11", "No items to display." dictLanguage.Add "english_viewGR_12", "Quantity" dictLanguage.Add "english_viewEP_1", "SKU: " dictLanguage.Add "english_viewEP_2", "Price: " dictLanguage.Add "english_viewEP_3", "Configuration: " dictLanguage.Add "english_viewEP_4", "Additional Charges: " dictLanguage.Add "english_viewEP_5", "Options: " dictLanguage.Add "english_viewEP_6", " Return to Registry " dictLanguage.Add "english_viewEP_7", " More Details ... " dictLanguage.Add "english_viewEP_8", " Product Details: " dictLanguage.Add "english_viewEP_9", " QTY: " dictLanguage.Add "english_shipmsg_1", "Ship to Registrant's preferred location" dictLanguage.Add "english_shipmsg_2", "Ship to my billing address" dictLanguage.Add "english_shipmsg_3", "Ship to another shipping address" dictLanguage.Add "english_GiftWrap_1", "Gift Wrapping Selection" dictLanguage.Add "english_GiftWrap_2", "Gift Wrapping options:" dictLanguage.Add "english_GiftWrap_3", "Don't gift-wrap this item" dictLanguage.Add "english_GiftWrap_4", "Write a gift note for this item:" dictLanguage.Add "english_GiftWrap_5a", "You have " dictLanguage.Add "english_GiftWrap_5b", "characters left. Do not use HTML." dictLanguage.Add "english_GiftWrap_6", " FREE " dictLanguage.Add "english_GiftWrap_7", " Continue " dictLanguage.Add "english_GiftWrap_8", "Price: " dictLanguage.Add "english_GiftWrap_9", "Gift Notes exceeds 240 characters" dictLanguage.Add "english_NotifyRe_1", "Notify Recipient" dictLanguage.Add "english_NotifyRe_2", "Your order contains a Gift Certificate: if you enter name and e-mail for the recipient of this Gift Certificate, we will send an email notification when the order is processed." dictLanguage.Add "english_NotifyRe_3", "Recipient name:" dictLanguage.Add "english_NotifyRe_4", "Recipient email:" dictLanguage.Add "english_NotifyRe_5", "Message:" dictLanguage.Add "english_NotifyRe_6", "Please enter a valid e-mail address for this field." dictLanguage.Add "english_ggg_OrdInvoice_1", "EVENT NAME: " dictLanguage.Add "english_ggg_OrdInvoice_2", "EVENT DATE: " dictLanguage.Add "english_ggg_OrdInvoice_3", "REGISTRANT'S NAME: " dictLanguage.Add "english_ggg_OrdInvoice_4", "Gift Wrapping:" dictLanguage.Add "english_ggg_OrdInvoice_5", " - Price:" dictLanguage.Add "english_ggg_OrdInvoice_6", "Gift Notes:" dictLanguage.Add "english_ggg_OrdInvoice_7", "GIFT WRAPPING:" dictLanguage.Add "english_ggg_OrdInvoice_8", "GIFT CERTIFICATE AMOUNT:" dictLanguage.Add "english_ggg_OrdInvoice_9", "The following Gift Certificate(s) were used for this order:" dictLanguage.Add "english_ggg_OrdInvoice_10", "Gift Certificate Product Name:" dictLanguage.Add "english_ggg_OrdInvoice_11", "Gift Certificate Code: " dictLanguage.Add "english_ggg_OrdInvoice_12", "Used for this order: " dictLanguage.Add "english_ggg_OrdInvoice_13", "This Gift Certificate has been completely redeemed." dictLanguage.Add "english_ggg_OrdInvoice_14", "Available Amount: " dictLanguage.Add "english_ggg_OrdInvoice_15", "This Gift Certificate does not expire." dictLanguage.Add "english_ggg_OrdInvoice_16", "Expiration Date: " dictLanguage.Add "english_ggg_OrdInvoice_17", "Status: Active" dictLanguage.Add "english_ggg_OrdInvoice_18", "Status: Inactive" dictLanguage.Add "english_ggg_OrdInvoice_19", "Gift Certificate(s) Information" 'GGG Add-on end dictLanguage.Add "english_AddressBook_1", "Add or Select a Shipping Address" dictLanguage.Add "english_AddressBook_2", "View Address" dictLanguage.Add "english_AddressBook_3", "Select Address" dictLanguage.Add "english_AddressBook_4", "Add New Address" dictLanguage.Add "english_AddressBook_5", "Close Window" dictLanguage.Add "english_AddressBook_6", "You have the following addresses in your Address Book" dictLanguage.Add "english_GateWay_1", "Billing Address" dictLanguage.Add "english_GateWay_2", "Edit" dictLanguage.Add "english_GateWay_3", "You are currently running in TEST MODE" dictLanguage.Add "english_GateWay_4", "Amount:" dictLanguage.Add "english_GateWay_5", "Payment Details" dictLanguage.Add "english_GateWay_6", "Please note that to detect possible fraudulent transactions, we record every customer's IP address. Your IP address is: " dictLanguage.Add "english_GateWay_7", "Credit Card Number: " dictLanguage.Add "english_GateWay_8", "Expiration Date: " dictLanguage.Add "english_GateWay_9", "Month: " dictLanguage.Add "english_GateWay_10", "Year: " dictLanguage.Add "english_GateWay_11", "Security Code: " dictLanguage.Add "english_GateWay_12", "Card Type: " dictLanguage.Add "english_GateWay_13", "Issue Number: " dictLanguage.Add "english_GateWay_14", "Issue Date: " dictLanguage.Add "english_GateWay_15", "Note that either Card Issue Date or Card Issue Number must be provided to process Maestro/Switch or Solo transactions successfully." dictLanguage.Add "english_GateWay_16", "Visa" dictLanguage.Add "english_GateWay_17", "MasterCard" dictLanguage.Add "english_GateWay_18", "Discover" dictLanguage.Add "english_GateWay_19", "American Express" dictLanguage.Add "english_GateWay_20", "Maestro/ Switch" dictLanguage.Add "english_GateWay_21", "Solo" dictLanguage.Add "english_GateWay_22", "Click below to securely submit your payment through PayPal. You can pay with a credit card or use your PayPal account." dictLanguage.Add "english_sendMail_80", "Customer's Comments: " 'Show Info Popup dictLanguage.Add "english_ShowInfo_1", "Additional Views" 'Product Related Errors start dictLanguage.Add "english_PrdError_1", "We cannot find the requested product in our database." dictLanguage.Add "english_PrdError_2", "Unfortunately you cannot purchase on this store because "cookies" are disabled in your browser. Please use a browser that has cookies enabled or consult your browser's Help section for instructions on how to enable "cookies".

We apologize for the inconvenience." dictLanguage.Add "english_PrdError_3", "Loading Product Images... If the images do not appear in 15 seconds ." 'Product Related Errors end ' PayPal dictLanguage.Add "english_PayPal_1", "PayPal did not have a shipping phone on record for your account. Please enter the phone number in the Customer Information Section below." '// Express Only - When there is no phone number. dictLanguage.Add "english_PayPal_2", "Review Your PayPal Shipping Address" '"You were NOT charged. There was a communication error when connecting to PayPal.

We apologize for the inconvenience. Please select another payment option." dictLanguage.Add "english_PayPal_3", "Optionally enter a password to be able to log into your account on our store (e.g. to repeat a previous order, download electronic goods, use our Help Desk, etc,)." '// Express Only - Shows the first time you register on the site only. dictLanguage.Add "english_PayPal_4", "Customer Information" '// Express Only dictLanguage.Add "english_PayPal_5", "Billing Information" '// Express Only dictLanguage.Add "english_PayPal_6", "Your Billing Information can not be edited because it is secured at PayPal." '// Express Only dictLanguage.Add "english_PayPal_7", "Payment Method Charge" '// Order Itemization Labels dictLanguage.Add "english_PayPal_8", "Category Discounts" '// Order Itemization Labels dictLanguage.Add "english_PayPal_9", "Gift Wrapping" '// Order Itemization Labels ' Google Checkout dictLanguage.Add "english_GoogleCheckout_1", "Processing Google Checkout Request...

If Google Checkout does not respond in 15 seconds there may be a communication error. You can retrieve your order by viewing your basket and continuing your order from that point. Contact us if you are not able to place your order and we will be happy to assist you." dictLanguage.Add "english_DownloadURLNote_1", "Note: If the download link appears on two lines, please copy and paste each portion of the link into your browser address field and then press the 'Enter' key." 'Recent Products dictLanguage.Add "english_viewProducts_1", "Recently Viewed..." dictLanguage.Add "english_viewProducts_2", "Clear List" ' Generic product ID error dictLanguage.Add "english_msg_210", "The page cannot be loaded because some of the information provided to the system was incorrect (e.g. wrong product or category number). Please try again or contact us if the problem persists." dictLanguage.Add "english_PageNavigaion_1", "First" dictLanguage.Add "english_PageNavigaion_2", "Previous" dictLanguage.Add "english_PageNavigaion_3", "Pages" dictLanguage.Add "english_PageNavigaion_4", "Next" dictLanguage.Add "english_PageNavigaion_5", "Last" dictLanguage.Add "english_PageNavigaion_6", "View All Results" ' End new text strings added for ProductCart v3 ' START New ALT tags added with v3.11 dictLanguage.Add "english_altTag_1", "Show product details for " dictLanguage.Add "english_altTag_2", "Add to the cart: " dictLanguage.Add "english_altTag_2b", "Add to the cart" dictLanguage.Add "english_altTag_3", "Previous Item" dictLanguage.Add "english_altTag_4", "Next Item" dictLanguage.Add "english_altTag_5", "View a larger version of this image" dictLanguage.Add "english_altTag_6", "View quantity discount details" dictLanguage.Add "english_altTag_7", "Save to my Wish List" dictLanguage.Add "english_altTag_8", "Tell a friend" dictLanguage.Add "english_altTag_9", "Customize" dictLanguage.Add "english_altTag_10", "Return to Gift Registry" dictLanguage.Add "english_altTag_11", "Continue shopping" dictLanguage.Add "english_altTag_12", "Checkout" dictLanguage.Add "english_altTag_13", "Remove from cart" dictLanguage.Add "english_altTag_14", "Add to Gift Registry" dictLanguage.Add "english_altTag_15", "Back" ' END New ALT tags added with v3.11 ' START: v3.5 dictLanguage.Add "english_CheckTextField_1", "The text field exceeds " dictLanguage.Add "english_CheckTextField_1a", " characters" dictLanguage.Add "english_GCRecipient_1", "Recipient Information" dictLanguage.Add "english_GCRecipient_2", "Resend Notification" dictLanguage.Add "english_GCRecipient_3", "The notification has been resent successfully!" dictLanguage.Add "english_defaultnotice_1", "Included" dictLanguage.Add "english_orderverify_44", "Product Tax" dictLanguage.Add "english_orderverify_45", "Items in the cart may have changed since this page was first loaded. Please close all other open browser windows before you continue." dictLanguage.Add "english_GateWay_23", "CLICK HERE TO COMPLETE YOUR ORDER!" dictLanguage.Add "english_Custmoda_24", "SSN: " dictLanguage.Add "english_Custmoda_25", "You must enter a valid Social Security Number" dictLanguage.Add "english_Custmoda_26", "VAT ID: " dictLanguage.Add "english_Custmoda_27", "You must enter a valid VAT ID" dictLanguage.Add "english_prdD1_6", "Clear Selection" dictLanguage.Add "english_custOrdInvoice_36", "Bundle Discounts" dictLanguage.Add "english_CustviewPastD_54", "Bundle Discounts" dictLanguage.Add "english_security_6", "Invalid security code. Please enter the security code exactly as shown." dictLanguage.Add "english_security_20", "Please enter your name." dictLanguage.Add "english_security_21", "Please enter your e-mail address." dictLanguage.Add "english_security_22", "Please enter a subject for your message." dictLanguage.Add "english_security_23", "Please enter your message." dictLanguage.Add "english_security_24", "Please enter your friend's name." dictLanguage.Add "english_security_25", "Please enter your friend's e-mail." dictLanguage.Add "english_security_26", "Please enter the code shown below:
This is used to prevent scripts from sending SPAM using this form." dictLanguage.Add "english_NewAffa_2c", "Thank you for joining our affiliate program. Your new affiliate account is ready for you to use. With your e-mail and password you can log into your affiliate account, a dedicated area of our store where you can obtain special links that you can use on your Web site to refer customers to our store. You will also be able to track sales and earned commissions." dictLanguage.Add "english_NewAffa_terms", "Thank you for your interest in our affiliate program.
Please fill out the form below to create a new affiliate account. By applying for an affiliate account, you are agreeing to the terms and conditions of our affiliate program." dictLanguage.Add "english_tellafriend_20", " found something you might like" dictLanguage.Add "english_tellafriend_21", "Thank you for taking the time to refer one of our products to a friend!" dictLanguage.Add "english_tellafriend_22", "Product you referred: " dictLanguage.Add "english_tellafriend_23", "A message was successfully sent to: " dictLanguage.Add "english_tellafriend_24", "Thank you for your referral" dictLanguage.Add "english_tellafriend_25", "Tell A Friend notification" dictLanguage.Add "english_tellafriend_26", "This is just to let you know that a store visitor referred the following product to a friend." dictLanguage.Add "english_categorysearchfield_1", "Narrow By:" dictLanguage.Add "english_categorysearchfield_2", "... show more" dictLanguage.Add "english_categorysearchfield_3", "... show less" dictLanguage.Add "english_categorysearchfield_4", "Please wait..." dictLanguage.Add "english_security_27", "Store administrator," & vbcrlf & "Someone has submit PayPal payment lower than the total value of the shopping cart. This may indicate a fraudulent attempt to purchase goods below their value. Please review order and its corresponding PayPal receipt for problems. User information is: " & vbcrlf & vbcrlf & "" & vbcrlf & "If you believe this order represents a fraudulent attempt to purchase goods below their value, you may want to contact your Web hosting company and have them block the IP address." dictLanguage.Add "english_paypalOrdConfirm_D", "PayPal accepted your payment, but there may be a problem. Please contact us to complete your order. We apologize for the inconvenience." ' END: v3.5 ' START: v4.0 dictLanguage.Add "english_showcart_29", "Promotions" dictLanguage.Add "english_viewPages_1", "The page you requested either is no longer available or access to it has been restricted." dictLanguage.Add "english_viewPages_2", "View other pages" dictLanguage.Add "english_viewCategories_15", "First" dictLanguage.Add "english_viewCategories_16", "Last" dictLanguage.Add "english_viewCategories_17", "Next " dictLanguage.Add "english_viewCategories_17a", "Previous " dictLanguage.Add "english_viewCategories_18", " Pages" dictLanguage.Add "english_viewCategories_19", "Page " dictLanguage.Add "english_viewCategories_20", " of " dictLanguage.Add "english_viewCategories_21", "Show All" dictLanguage.Add "english_viewCategories_22", "Loading... Please wait." dictLanguage.Add "english_orderverify_46", "Gift Certificate: " 'One Page CheckOut start dictLanguage.Add "english_ajax_globalerror", "There was an unexpected problem updating your order. Please contact us so we can help save your order, or try again." dictLanguage.Add "english_opc_loadcontent", " Loading content....... " dictLanguage.Add "english_opc_1", "Order Details" dictLanguage.Add "english_opc_2", "Step 1 - Address" dictLanguage.Add "english_opc_3", "Log into my account" dictLanguage.Add "english_opc_4", "Guest checkout" dictLanguage.Add "english_opc_4b", "Continue checkout as a guest. If you want to, you can save a password to checkout faster next time." dictLanguage.Add "english_opc_4c", "Other Options" dictLanguage.Add "english_opc_5", "E-mail:" dictLanguage.Add "english_opc_6", "Password:" dictLanguage.Add "english_opc_7", "You are logged in as:" dictLanguage.Add "english_opc_8", "Billing Information" dictLanguage.Add "english_opc_8a", "BILLING: " dictLanguage.Add "english_opc_9", "Please select the way that you like to checkout before updating your billing information." dictLanguage.Add "english_opc_10", "First Name:" dictLanguage.Add "english_opc_11", "Last Name:" dictLanguage.Add "english_opc_12", "Company:" dictLanguage.Add "english_opc_13", "Address:" dictLanguage.Add "english_opc_14", "Address 2:" dictLanguage.Add "english_opc_15", "City:" dictLanguage.Add "english_opc_16", "Zip:" dictLanguage.Add "english_opc_16a", "Postal Code:" dictLanguage.Add "english_opc_17", "Phone:" dictLanguage.Add "english_opc_18", "Fax:" dictLanguage.Add "english_opc_19", "Shipping Information" dictLanguage.Add "english_opc_19a", "SHIPPING: " dictLanguage.Add "english_opc_20", "Use my billing address" dictLanguage.Add "english_opc_21", "Registrant's preferred location" dictLanguage.Add "english_opc_22", "Recipient nick name:" dictLanguage.Add "english_opc_23", "Address Type:" dictLanguage.Add "english_opc_24", "Residential" dictLanguage.Add "english_opc_25", "Commercial" dictLanguage.Add "english_opc_26", "Shipping Charges & Taxes" dictLanguage.Add "english_opc_27", "Step 2 - Shipping Method" dictLanguage.Add "english_opc_28", "Step 3 - Payment & Other Information" dictLanguage.Add "english_opc_30", "This section is not needed to complete your order." dictLanguage.Add "english_opc_31", "Other Information" dictLanguage.Add "english_opc_32", "Gift Wrapping" dictLanguage.Add "english_opc_33", "Product Name" dictLanguage.Add "english_opc_34", "Select" dictLanguage.Add "english_opc_35", "Register Customer Account" dictLanguage.Add "english_opc_37", "Please Note: We strongly recommend that you add a password. Doing so will create an account for you and enable order tracking, package tracking, expidited customer support and more." dictLanguage.Add "english_opc_38", "Password Confirm:" dictLanguage.Add "english_opc_39", "Payment Information" dictLanguage.Add "english_opc_40", "A payment is not needed to complete this order." dictLanguage.Add "english_opc_41", "Order Preview" dictLanguage.Add "english_opc_42", "There isn't enough information to generate your order preview. Please fill out the sections above first." dictLanguage.Add "english_opc_43", "There is a small problem: the order amount has changed and free shipping is not available with your new order amount. We are recalculating shipping charges for you. Please review and select a shipping option." dictLanguage.Add "english_opc_44", "There is a problem. Here are the details:" dictLanguage.Add "english_opc_45", "Edit this section" dictLanguage.Add "english_opc_46", "Section completed" dictLanguage.Add "english_opc_47", "Incorrect or missing information" dictLanguage.Add "english_opc_48", "Shipping Charges" dictLanguage.Add "english_opc_49", "Password" dictLanguage.Add "english_opc_50", "View our Terms & Conditions" dictLanguage.Add "english_opc_51", "No, thanks." dictLanguage.Add "english_opc_52", "Yes, save my password." dictLanguage.Add "english_opc_53", "Edit" dictLanguage.Add "english_opc_54", "YOU SELECTED: " dictLanguage.Add "english_opc_55", "You have chosen to checkout with PayPal Express Checkout. Please review the information below, and click on "Continue" to select a shipping method (if any). When you are ready, click "Place Order" to complete your order." dictLanguage.Add "english_opc_56", "PayPal Express Checkout" dictLanguage.Add "english_opc_57", "There was an error saving your information. Please check the form for errors and try again. If the problem persists, please contact us so we can save your order and look into the problem." dictLanguage.Add "english_opc_58", "First Name can not be empty." dictLanguage.Add "english_opc_59", "Last Name can not be empty." dictLanguage.Add "english_opc_60", "Billing Address can not be empty." dictLanguage.Add "english_opc_61", "Billing City can not be empty." dictLanguage.Add "english_opc_62", "Billing Country can not be empty." dictLanguage.Add "english_opc_63", "Billing State Code for US can not be empty." dictLanguage.Add "english_opc_64", "Billing Postal Code for US can not be empty." dictLanguage.Add "english_opc_65", "Email Address can not be empty." dictLanguage.Add "english_opc_66", "Email Address is not valid." dictLanguage.Add "english_opc_67", "Customer Account not found." dictLanguage.Add "english_opc_68", "Can not create customer account. Please try again." dictLanguage.Add "english_opc_69", "Error(s) when updating billing information:" dictLanguage.Add "english_opc_70", "Recipient Email Address is not valid." dictLanguage.Add "english_opc_71", "Error(s) when updating Order information:" dictLanguage.Add "english_opc_72", "Shipping Address can not be empty." dictLanguage.Add "english_opc_73", "Shipping City can not be empty." dictLanguage.Add "english_opc_74", "Shipping Country can not be empty." dictLanguage.Add "english_opc_75", "Shipping State Code for US can not be empty." dictLanguage.Add "english_opc_76", "Shipping Postal Code for US can not be empty." dictLanguage.Add "english_opc_77", "The Delivery Time can not be empty." dictLanguage.Add "english_opc_78", "The Delivery Date can not be empty." dictLanguage.Add "english_opc_79", "The Delivery Date is not valid." dictLanguage.Add "english_opc_80", "The Delivery Date cannot be in the past." dictLanguage.Add "english_opc_81", "The Delivery Date must be at least 24 hours in the future." dictLanguage.Add "english_opc_82", "" dictLanguage.Add "english_opc_83", "Can not update shipping address. Please try again." dictLanguage.Add "english_opc_84", "Error(s) when updating Shipping information:" dictLanguage.Add "english_opc_1000", "Checkout with Paypal Express" dictLanguage.Add "english_opc_ship_1", "No shipping is required to complete this order." dictLanguage.Add "english_opc_ship_2", "No shipping rates were returned for your order. The shipping provider's server may be unavailable at this time. Please try again in a few minutes. If the problem persists, please contact the store administrator." dictLanguage.Add "english_opc_ship_3", " Updating your shipping address, please wait....... " dictLanguage.Add "english_opc_ship_4", " Your shipping selection was updated successfully" dictLanguage.Add "english_opc_js_1", "Credit Card numbers can only contain digits and spaces" dictLanguage.Add "english_opc_js_2", "Please enter your e-mail address" dictLanguage.Add "english_opc_js_3", "Please enter a valid e-mail address. E.g.: yourname@domain.com" dictLanguage.Add "english_opc_js_4", "Please enter your password" dictLanguage.Add "english_opc_js_5", "Your password must contain at least 5 characters" dictLanguage.Add "english_opc_js_6", " Checking your account, please wait....... " dictLanguage.Add "english_opc_js_7", " You were successfully logged in. Please wait while we update your order... " dictLanguage.Add "english_opc_js_8", "Please enter your first name" dictLanguage.Add "english_opc_js_9", "Please enter last name" dictLanguage.Add "english_opc_js_10", "Please enter your address" dictLanguage.Add "english_opc_js_11", "Please enter your city" dictLanguage.Add "english_opc_js_12", "Please select your country" dictLanguage.Add "english_opc_js_13", "Please enter your ZIP/Postal code" dictLanguage.Add "english_opc_js_14", "Your zip code must contain at least 5 characters" dictLanguage.Add "english_opc_js_15", "Please select your state" dictLanguage.Add "english_opc_js_16", "Please enter a valid phone number" dictLanguage.Add "english_opc_js_17", "Your phone number must contain at least 7 characters" dictLanguage.Add "english_opc_js_18", "Your phone number cannot exceed 20 characters" dictLanguage.Add "english_opc_js_19", "Please enter a valid fax number" dictLanguage.Add "english_opc_js_20", "Your fax number must contain at least 7 characters" dictLanguage.Add "english_opc_js_21", "Your fax number cannot exceed 20 characters" dictLanguage.Add "english_opc_js_22", " Updating your billing address, please wait....... " dictLanguage.Add "english_opc_js_23", " Your billing information was updated successfully" dictLanguage.Add "english_opc_js_24", "Please select the shipping address that you would like to use" dictLanguage.Add "english_opc_js_25", "Please enter the recipient's first name" dictLanguage.Add "english_opc_js_26", "Please enter the recipient's last name" dictLanguage.Add "english_opc_js_27", "Please enter the recipient's address" dictLanguage.Add "english_opc_js_28", "Please enter the recipient's city" dictLanguage.Add "english_opc_js_29", "Please select the recipient's country" dictLanguage.Add "english_opc_js_30", "Please enter the ZIP/Postal code (US/CA)" dictLanguage.Add "english_opc_js_31", "The recipient's zip code must contain at least 5 characters" dictLanguage.Add "english_opc_js_32", "Please select the recipient's state" dictLanguage.Add "english_opc_js_33", "The recipient's phone number must contain at least 7 characters" dictLanguage.Add "english_opc_js_34", "The recipient's fax number must contain at least 7 characters" dictLanguage.Add "english_opc_js_35", "Please select a valid delivery date" dictLanguage.Add "english_opc_js_36", "Please select a valid delivery time" dictLanguage.Add "english_opc_js_37", " Loading your shipping addresses, please wait....... " dictLanguage.Add "english_opc_js_38", "Add new shipping address..." dictLanguage.Add "english_opc_js_39", " Updating your shipping address, please wait....... " dictLanguage.Add "english_opc_js_40", " Your shipping information was updated successfully" dictLanguage.Add "english_opc_js_41", " Updating your order information, please wait....... " dictLanguage.Add "english_opc_js_42", " Your order was updated successfully. See the Order Preview at the bottom of this page." dictLanguage.Add "english_opc_js_43", "Please select a payment method" dictLanguage.Add "english_opc_js_44", "Please enter your credit card number" dictLanguage.Add "english_opc_js_45", "The Credit Card number must contain at least 16 digits" dictLanguage.Add "english_opc_js_46", "Your credit card is not valid" dictLanguage.Add "english_opc_js_47", "Please enter your password again to confirm" dictLanguage.Add "english_opc_js_48", "Your passwords do not match" dictLanguage.Add "english_opc_js_49", " Checking your information and creating your account. Please wait....... " dictLanguage.Add "english_opc_js_50", " Your account was created successfully." dictLanguage.Add "english_opc_js_51", " You already have an account with us." dictLanguage.Add "english_opc_js_52", "You are already logged in. You don't need to fill out this section." dictLanguage.Add "english_opc_js_53", " We were unable to update your order. Please try again!" dictLanguage.Add "english_opc_js_54", " Loading shipping options, please wait....... " dictLanguage.Add "english_opc_js_55", " Calculating taxes, please wait....... " dictLanguage.Add "english_opc_js_56", " Taxes were calculated successfully" dictLanguage.Add "english_opc_js_57", " Loading payment options, please wait....... " dictLanguage.Add "english_opc_js_58", "NOTE: You must enter payment details before placing your order" dictLanguage.Add "english_opc_js_59", "NOTE: You must agree to the Terms & Conditions shown above before placing your order" dictLanguage.Add "english_opc_js_60", " Updating payment details, please wait....... " dictLanguage.Add "english_opc_js_61", " Payment details were updated successfully" dictLanguage.Add "english_opc_js_62", "Select a shipping address" dictLanguage.Add "english_opc_js_63", "Please enter your state/province" dictLanguage.Add "english_opc_js_64", "Please enter recipient's state/province" dictLanguage.Add "english_opc_js_65", "View Cart" dictLanguage.Add "english_opc_js_66", "Try Again" dictLanguage.Add "english_opc_js_67", "Attention Valued Customer" '// Global Message Popup Title dictLanguage.Add "english_opc_js_68", "Customer Alert" '// Global Error Popup Title dictLanguage.Add "english_opc_js_69", "Attention Valued Customer" '// Local Error Popup Title dictLanguage.Add "english_opc_js_70", "We were unable to calculate the tax for this order. Please click ""Try Again"" to review the ""Address"" section for typos. If the problem persists please contact us so that we can look into the issue and complete your order." '// Tax Calculation Timesout (NO HTML Allowed / Use Escape Chars) dictLanguage.Add "english_opc_js_71", "There was an issue while calculating taxes for your order. Please contact us so that we can look into the problem and complete your order." '// Tax Calculation Failure due to an error (NO HTML Allowed / Use Escape Chars) dictLanguage.Add "english_opc_js_72", "We were unable to load your shipping options. Please click ""Try Again"" to review the ""Address"" section for possible mistakes. If the problem persists please contact us so that we can look into the issue and complete your order." '// Shipping Method Timesout (NO HTML Allowed / Use Escape Chars) dictLanguage.Add "english_opc_js_73", "No shipping rates were returned for your order. The shipping provider\'s server may be unavailable at this time. Please try again in a few minutes. If the problem persists please contact us so that we can look into the issue and complete your order." '// Shipping Method Failure due to an error (NO HTML Allowed / Use Escape Chars) dictLanguage.Add "english_opc_js_74", "You must enter a valid zip code" dictLanguage.Add "english_opc_js_75", "We were unable to save shipping information for this order. Please click ""Try Again"" to review the ""Address"" section for typos. If the problem persists please contact us so that we can look into the issue and complete your order." '// Save Shipping Timesout (NO HTML Allowed / Use Escape Chars) dictLanguage.Add "english_opc_js_76", "There was an issue updating your information. Please try again. If the problem persists please contact us so that we can look into the problem and complete your order." '// General Method Failure due to an error (NO HTML Allowed / Use Escape Chars) dictLanguage.Add "english_opc_js_77", "Clear Cart" dictLanguage.Add "english_opc_js_78", "Continue Shopping" dictLanguage.Add "english_opc_js_79", "Please wait while we reload your order details" dictLanguage.Add "english_opc_js_80", "Please enter an address nickname" dictLanguage.Add "english_opc_js_81", "Saving Order... Please wait" dictLanguage.Add "english_opc_gwa_1", "Please complete the other sections first!" dictLanguage.Add "english_opc_gwa_2", "Gift Wrapping options were updated successfully!" dictLanguage.Add "english_opc_gwa_3", "No products were selected for gift wrapping!" dictLanguage.Add "english_opc_gwa_title", "Gift Wrapping" dictLanguage.Add "english_opc_conmail_1", "Dear " dictLanguage.Add "english_opc_conmail_2", "We have detected that you had already registered another account(s) using the same e-mail address. If you want to consolidate your account(s), please follow the link below:" dictLanguage.Add "english_opc_conmail_3", "Consolidate your accounts" dictLanguage.Add "english_opc_conmail_4", "There was an issue when attempting to send the 'Consolidate accounts' message to your e-mail address:" dictLanguage.Add "english_opc_tax_1", " Updating taxes, please wait....... " dictLanguage.Add "english_opc_tax_2", " Taxes updated successfully" dictLanguage.Add "english_opc_tax_3", " There was a problem calculating taxes for your order. Please contact us so that we can look into the issue and complete your order." dictLanguage.Add "english_opc_msg1", "Your order cannot be placed due to security reasons. Please try again!" dictLanguage.Add "english_opc_msg3", "A shipping address is not required to complete this order." dictLanguage.Add "english_opc_cons_title", "Consolidating Accounts" dictLanguage.Add "english_opc_cons_1", "We have detected that you had already registered another account(s) using the same e-mail address. If you want, we can send you an e-mail and then allow you to consolidate all orders associated with the same e-mail address. Would you like to proceed?" dictLanguage.Add "english_opc_cons_2", " Click here to consolidate your accounts " dictLanguage.Add "english_opc_cons_3", " Log Out " dictLanguage.Add "english_opc_cons_4", " Sending account consolidation message to your e-mail address, please wait....... " dictLanguage.Add "english_opc_cons_5", " We were not able to send a message to your e-mail address due to security reasons" dictLanguage.Add "english_opc_cons_6", " E-mail sent successfully. The message contains instructions on what to do next." dictLanguage.Add "english_opc_consconf_1", "E-mail not found" dictLanguage.Add "english_opc_consconf_2", "Consolidation Code not found" dictLanguage.Add "english_opc_consconf_3", "It appears that your accounts have already been consolidated. Click here to access your account. If you are prompted to consolidate, then please request a new consolidation code and try again." dictLanguage.Add "english_opc_consconf_4", "Error(s) when consolidating customer accounts:" dictLanguage.Add "english_opc_consconf_5", "Your accounts were consolidated successfully!" dictLanguage.Add "english_opc_consconf_6", " Go to your account page " dictLanguage.Add "english_opc_common_1", "ORDER CODE:" dictLanguage.Add "english_opc_common_2", "Create a customer account" dictLanguage.Add "english_opc_common_3", "Add a password for quicker checkout and access to more features (e.g. multiple ship-to addresses, quickly repeat an order, view saved shopping carts, etc.)." dictLanguage.Add "english_opc_common_4", " Create Customer Account " dictLanguage.Add "english_opc_common_5", " Checking your information and creating account. Please wait....... " dictLanguage.Add "english_opc_common_6", " We were not able to create this account due to some security reasons" dictLanguage.Add "english_opc_common_7", " Your account was registered successfully." dictLanguage.Add "english_opc_common_8", " You already have an account with us." dictLanguage.Add "english_opc_common_9", " Please print out this page and save the Order Code. If you don't register a customer account, you will need the Order Code - together with your e-mail address - in order to log in and review your order." dictLanguage.Add "english_opc_checkout_1", "Order Review" dictLanguage.Add "english_opc_checkout_2", "If you placed an order and did not register a customer account, enter your e-mail address and your Order Code to review the order and check the order status." dictLanguage.Add "english_opc_checkout_3", "Order Code:" dictLanguage.Add "english_opc_checkout_4", "Please enter your Order Code" dictLanguage.Add "english_opc_checkout_5", " Validating order information. Please wait....... " dictLanguage.Add "english_opc_checkout_6", " The information was validated successfully. Please wait while we load the order details... " dictLanguage.Add "english_opc_checkorv_1", "Enter both your E-mail and your Order Code." dictLanguage.Add "english_opc_checkorv_2", "Either the E-mail or the Order Code are invalid.
  • Make sure to use the e-mail that you used when you placed the order.
  • The Order Code was included in the e-mail notification that was sent to you when you placed your order.
  • If you cannot locate the order code, no problem. Click here to have it sent to the e-mail on file.
" dictLanguage.Add "english_opc_checkorv_3", "Your account was suspended." dictLanguage.Add "english_opc_checkorv_4", "Your account was locked." dictLanguage.Add "english_opc_checkorv_5", "You are a registered customer. Please log into your account to review your orders." dictLanguage.Add "english_opc_checklogin_1", "Enter both your E-mail and your Password." dictLanguage.Add "english_opc_checklogin_2", "Either the E-mail or the Password are not valid. Please try again." dictLanguage.Add "english_opc_checklogin_3", "Please consolidate your account before continuing." dictLanguage.Add "english_opc_createacc_1", "Unfortunately we were not able to create a customer account for you due to the issue(s) listed below. Contact us so that we may assist you directly." dictLanguage.Add "english_opc_createacc_2", "The customer record for which an account should be created cannot be found." dictLanguage.Add "english_opc_createacc_3", "The passwords you have entered don't match. Please enter them again." dictLanguage.Add "english_opc_createacc_4", "The Password Confirm field cannot be empty." dictLanguage.Add "english_opc_createacc_5", "The Password field cannot be empty." dictLanguage.Add "english_opc_giftWrap_1", "Edit gift wrapping" dictLanguage.Add "english_opc_giftWrap_2", "Gift wrap this item" dictLanguage.Add "english_opc_giftWrap_3", "Available gift wrapping options for " 'One Page CheckOut end dictLanguage.Add "english_CustPref_16", "View Saved Shopping Carts" dictLanguage.Add "english_CustPref_17", "Gift Certificate Balance" dictLanguage.Add "english_CustPref_18", "No Gift Certificate Found" dictLanguage.Add "english_CustPref_19", "To check a gift certificate's current balance, enter the gift certificate code: " dictLanguage.Add "english_CustPref_20", "Check Gift Certificate Balance" dictLanguage.Add "english_CustPref_21", "This Gift Certificate is active and has not expired." dictLanguage.Add "english_CustPref_22", "This Gift Certificate is inactive or has expired." dictLanguage.Add "english_CustSavedCarts_1", "You do not have any saved shopping carts." dictLanguage.Add "english_CustSavedCarts_2", "Saved On" dictLanguage.Add "english_CustSavedCarts_3", "Restore" dictLanguage.Add "english_CustSavedCarts_4", "Delete" dictLanguage.Add "english_CustSavedCarts_5", "We loaded back into the shopping cart items that you had added during your last visit, so you don't have to look for them again." dictLanguage.Add "english_CustSavedCarts_6", "Customer Service Message" dictLanguage.Add "english_CustSavedCarts_7", "Saved shopping cart" dictLanguage.Add "english_CustSavedCarts_8", "Nickname" dictLanguage.Add "english_CustSavedCarts_9", "Rename" dictLanguage.Add "english_CustSavedCarts_10", "You are about to delete this saved shopping cart. Would you like to continue? This action cannot be undone." dictLanguage.Add "english_alert_recal", "We have detected that some of the product quantities have changed. Please click the 'Recalculate' button if you would like to recalculate the shopping cart total using the new quantities." dictLanguage.Add "english_ManageGRs_20", "To add products to your registry, locate them in the storefront, add them to the shopping cart, and then click on the "Add to registry" button." dictLanguage.Add "english_ManageGRs_21", "Continue" dictLanguage.Add "english_ManageGRs_22", "Close" dictLanguage.Add "english_RegCustAcc", "Register a New Account" dictLanguage.Add "english_ShowRecentRev_1", "Recently Reviewed Products" dictLanguage.Add "english_ShowRecentRev_2", "There are no Recently Reviewed Products" dictLanguage.Add "english_msg_302", "There are no brands active at this time." dictLanguage.Add "english_msg_303", "There are no brands active at this time within the selected brand. Back." dictLanguage.Add "english_xmlcat_1", "Categories:" dictLanguage.Add "english_xmlcat_2", "We haven't added products here yet. Come back soon!" dictLanguage.Add "english_xmlcat_3", "Products:" dictLanguage.Add "english_captcha_1", "Load new" dictLanguage.Add "english_smallcart_1", "In the Cart: " dictLanguage.Add "english_smallcart_2", " Item(s)" dictLanguage.Add "english_smallcart_3", "Current Total: " dictLanguage.Add "english_smallcart_4", "View" dictLanguage.Add "english_smallcart_5", "Checkout" dictLanguage.Add "english_addedtocart_1", "Item(s) added to the cart" dictLanguage.Add "english_addedtocart_2", "Your item(s) were added" dictLanguage.Add "english_addedtocart_3", "Item added" dictLanguage.Add "english_addedtocart_4", " Item(s) | Subtotal: " dictLanguage.Add "english_addedtocart_5", "Cart contains " dictLanguage.Add "english_rma_20", "Please select at least one product." dictLanguage.Add "english_rma_21", "Please enter the reason for returning the product(s)." ' END: v4.0 ' START v4.1 dictLanguage.Add "english_alert_19", "One or more products are not available in the quantity you selected.

If you entered a quantity that was equal or lower than the stock level shown on the product details page, it might be that another customer placed an order before you completed yours, with the result of reducing the inventory levels.

Please reduce the amount of the products affected by this inventory problem, or remove them from the shopping cart.

We sincerely apologize for the inconvenience.
The products affected are:
" dictLanguage.Add "english_validate_5", "Welcome back!
It appears that when you first visited our store, you did not register an account.
Please use the Order Review section of this page to access the system and view order details. Once logged in, you can also convert your account and take advantage of additional features." dictLanguage.Add "english_checkout_29", "Forgot Order Code(s)" dictLanguage.Add "english_checkout_30", "Your email address does not appear to be in our customer database." dictLanguage.Add "english_checkout_31", "You did not place any orders on our store" dictLanguage.Add "english_checkout_32", "Your order code(s) have been e-mailed to you. Please check your e-mail now to retrieve them." dictLanguage.Add "english_checkout_33", "Forgot your order code(s)?" dictLanguage.Add "english_checkout_34", "Click here to have them e-mailed to you." dictLanguage.Add "english_checkout_35", "You have already registered an account with our store. Please log into your account." dictLanguage.Add "english_forgotordercodesmailsubject", "Your order code(s)" dictLanguage.Add "english_forgotordercodesmailbody", "Hello #firstname #lastname," &VBcrlf &VBcrlf & "This is the list of your order code(s):" & VBcrlf & VBcrlf & "#ordercodes" &VBcrlf &VBcrlf &"Thank you for shopping with us." &VBcrlf &VBcrlf & scStoreURL dictLanguage.Add "english_opc_4d", "New customer checkout" dictLanguage.Add "english_opc_4e", "Save a password to checkout faster next time and have access to all account management features." dictLanguage.Add "english_opc_4f", "New customer checkout" dictLanguage.Add "english_opc_4g", "Quickly register a new account with our speedy One Page Checkout system!" dictLanguage.Add "english_opc_5a", "This e-mail address already exists in our customer database. Please enter a different e-mail address, or log into your account by using either this e-mail address and your password (if any), or this e-mail address and the Order Code that was included in the order notification message that you received at the time you placed an order." dictLanguage.Add "english_opc_51a", "OK" dictLanguage.Add "english_opc_85", "You have access to limited features because you logged in with your e-mail and Order Code. To have access to all account features, please log in with your password (retrieve a forgotten password)." dictLanguage.Add "english_storeEmail_30", "ORDER CODE: " dictLanguage.Add "english_storeEmail_31", "Please print out your order code and/or keep it in a safe place." dictLanguage.Add "english_storeEmail_32", "You will need this code and your e-mail address to log in and review your order." dictLanguage.Add "english_showcart_30", "Available" dictLanguage.Add "english_opc_msg2", "Copy from my Billing Address" dictLanguage.Add "english_order_FF", "Receive Product Review Reminders?" dictLanguage.Add "english_prv_22", "To thank you for taking the time to review the product(s) you purchased, we will award some to your account when a review is approved. Please "" target=""_blank"">see our Web site for details on our "" for Reviews"" program." dictLanguage.Add "english_prv_23", "We have detected that you are not a registered customer. Please add a password to your account so that you can take advantage of the "" for Reviews"" program." dictLanguage.Add "english_prv_24", "

Hello !

Listed below are products from one of your recent orders that you can review.

" dictLanguage.Add "english_prv_25", "Write a review" dictLanguage.Add "english_prv_26", "(already reviewed)" dictLanguage.Add "english_prv_27", "We have detected that you are not a registered customer. Please add a password to your account so that you can take advantage of the for Reviews program." dictLanguage.Add "english_prv_28", "Dear ,

Thank you for your recent order. We'd love it if you decided to share your thoughts on the product(s) you purchased with other customers. Your opinion can be very useful to other shoppers.

" dictLanguage.Add "english_prv_29", "To thank you for writing a review, we will add up to to your account according to the terms of our ' for Reviews' program if you post a review and the review is approved (e.g. don't use offensive language in your review). Please see our Web site for details on our "" for Reviews"" program.

" dictLanguage.Add "english_prv_38", "Post a review

Thanks again for shopping with us.

Customer Service
" dictLanguage.Add "english_prv_31", "XMLHTTP not available. Automatic emails for Product Reviews were not sent." dictLanguage.Add "english_prv_32", "

-----------------------------------
UNSUBSCRIBE: If you do not wish to receive ""Write a Review"" reminders like this, please "">click here to unsubscribe." dictLanguage.Add "english_prv_33", "You will no longer receive 'Write a Review' notifications at this address. If you want to change this setting and subscribe again, please log into your account to do so." dictLanguage.Add "english_prv_34", "You must type " dictLanguage.Add "english_prv_35", "more characters before your review can be accepted. Do not use HTML." dictLanguage.Add "english_prv_36", "Please note: might have been awarded when these reviews were originally posted. You can find out by canceling this operation and viewing the reviews details page. will NOT be deducted when the selected reviews are hidden or deleted." dictLanguage.Add "english_prv_37", "Dear ," & VbCrLf & VbCrLf & "Thank you for reviewing """". Reviews are very helpful to other buyers, and we'd like to thank you for writing this review by crediting your account with """"." & VbCrLf & VbCrLf & "For more information on our "" for Reviews"" program, please see:" & VbCrLf & VbCrLf & "" & VbCrLf & VbCrLf & "Thanks again!" & VbCrLf & VbCrLf & "Customer Service" & VbCrLf & "" dictLanguage.Add "english_prv_39", "Rated: " dictLanguage.Add "english_prv_40", "Post a review:

Thanks again for shopping with us.

Customer Service
" dictLanguage.Add "english_prv_41", "If you do not wish to receive ""Write a Review"" reminders like this one, please use the following link to unsubscribe: " dictLanguage.Add "english_prv_42", "To thank you for writing a review, we will add up to to your account according to the terms of our ' for Reviews' program if you post a review and the review is approved (e.g. don't use offensive language in your review). Please see our Web site for details () on our "" for Reviews"" program." dictLanguage.Add "english_prv_43", "Avg. Rating: " dictLanguage.Add "english_prv_44", "Help other customers: write a review!" dictLanguage.Add "english_prv_45", " - for reviews - Thank you for your contribution!" dictLanguage.Add "english_orderverify_5a", "The discount code or gift certificate that you have entered cannot be applied. The weight of the items in the cart is not compatible. If you have any questions, please contact us." dictLanguage.Add "english_orderverify_5b", "The discount code or gift certificate that you have entered cannot be applied. The quantity of the items in the cart is not compatible. If you have any questions, please contact us." dictLanguage.Add "english_orderverify_5c", "The discount code or gift certificate that you have entered cannot be applied. The price of the items in the cart is not compatible. If you have any questions, please contact us." dictLanguage.Add "english_advSrca_26", "Please enter a numeric value for this field." ' END v4.1 ' START v4.5 dictLanguage.Add "english_OPC_Alert_01", "Good news! We detected your previous order was not finalized and we fixed the problem. This can happen if you leave the site to make your payment (e.g. PayPal), but do not click the return to store button. We have your order and everything is OK. To continue shopping, click here." dictLanguage.Add "english_pcDownload_1", "Download Product" dictLanguage.Add "english_pcDownload_2", "Error: Your request ID is incorrect. Please contact store administrator for more information." dictLanguage.Add "english_pcDownload_3", "Order: #" dictLanguage.Add "english_pcDownload_4", "Customer: " dictLanguage.Add "english_pcDownload_5", "Product ID: #" dictLanguage.Add "english_pcDownload_6", "Product Name: #" dictLanguage.Add "english_pcDownload_7", "Product SKU: " dictLanguage.Add "english_pcDownload_8", "NOTE" dictLanguage.Add "english_pcDownload_9", "This download URL will expire in " dictLanguage.Add "english_pcDownload_10", " days." dictLanguage.Add "english_pcDownload_11", "This download URL will expire at the end of the day." dictLanguage.Add "english_pcDownload_12", "This download URL has expired." dictLanguage.Add "english_pcDownload_13", "Click here to download this file." dictLanguage.Add "english_smallcart_11", "The cart is empty." dictLanguage.Add "english_smallcart_12", "Total: " dictLanguage.Add "english_adminMail_19S", "SALE PRICE " dictLanguage.Add "english_Sale_1", "Sale: " dictLanguage.Add "english_Sale_2", "About this sale" dictLanguage.Add "english_Sale_3", "Original Price: " dictLanguage.Add "english_Sale_4", "Original Wholesale Price: " dictLanguage.Add "english_SaleSearch_1", "Currently On Sale:" dictLanguage.Add "english_SaleSearch_2", "Sale name:" dictLanguage.Add "english_SaleSearch_3", "All running sales" dictLanguage.Add "english_SaleSpecials_1", "Running Sales" dictLanguage.Add "english_SaleSpecials_2", "Other Specials" dictLanguage.Add "english_EIG_1", "Save this credit card:" dictLanguage.Add "english_EIG_2", "Credit card information is saved to a separate, secure, PCI-compliant vault managed by a leading payment service provider. You can add, edit, and remove saved credit cards at any time." dictLanguage.Add "english_EIG_3", "mm" dictLanguage.Add "english_EIG_4", "yy" dictLanguage.Add "english_EIG_5", "Saved Credit Card" dictLanguage.Add "english_EIG_6", "Credit Card" dictLanguage.Add "english_EIG_7", "Use an existing credit card:" dictLanguage.Add "english_EIG_8", "The selected credit card is not valid. Please select another saved card or add payment information below." 'dictLanguage.Add "english_EIG_9", "View & Modify" '// Re-enable when saved credit cards can be modified during checkout dictLanguage.Add "english_EIG_10", "View & Modify Payment Methods" dictLanguage.Add "english_EIG_11", "Payment Methods" dictLanguage.Add "english_EIG_12", "Card Number" dictLanguage.Add "english_EIG_13", "Expiration Date" dictLanguage.Add "english_EIG_14", "Edit" dictLanguage.Add "english_EIG_15", "Remove" dictLanguage.Add "english_EIG_16", "Are you sure you want to remove " dictLanguage.Add "english_EIG_17", "No payment options are available." dictLanguage.Add "english_EIG_18", "Use a new credit card:" dictLanguage.Add "english_EIG_19", "Processing Payment..." dictLanguage.Add "english_NoScript_1", "In order for this page to function properly, Javascript must be enabled (under your browser's 'Content Settings'). Please update this setting and try again." dictLanguage.Add "english_ShowSearch_50", "Search Results" dictLanguage.Add "english_viewPrd_cs10", " is currently not available, but we thought you might be interested in these related items:" dictLanguage.Add "english_CustviewOrd_75", "View PDF (BETA)" dictLanguage.Add "english_CustPref_50", "Saved Shopping Carts" dictLanguage.Add "english_SaveCart_1", "Save Shopping Cart" dictLanguage.Add "english_SaveCart_2", "Type a nickname and click ""Save Cart"" " dictLanguage.Add "english_SaveCart_3", "Nickname" dictLanguage.Add "english_SaveCart_4", "Nickname may consist of a-z, 0-9, underscores, spaces, begin with a letter." dictLanguage.Add "english_SaveCart_5", "Cart Saved!" ' END v4.5 ' START v4.7 dictLanguage.Add "english_validate_6", "Cannot register new customer account because e-mail address is empty. Maybe you lost your session. Please try again." ' END v4.7 'APP-S ' Apparel Add-on start dictLanguage.Add "english_viewPrd_spmsg", "Inventory Status" dictLanguage.Add "english_viewPrd_spmsg1", "To be added..." dictLanguage.Add "english_viewPrd_spmsg1a", "Qty" dictLanguage.Add "english_viewPrd_spmsg1b", "Remove" dictLanguage.Add "english_viewPrd_spmsg2", "Either the option that you have selected is not available, \ror you have forgotten to make a selection from each \rof the option groups listed on the page. \r\rPlease review the options you have selected, then try again." dictLanguage.Add "english_viewPrd_spmsg3", "Add " dictLanguage.Add "english_viewPrd_spmsg4", "Subtract " dictLanguage.Add "english_viewPrd_spmsg5", "In Stock" dictLanguage.Add "english_viewPrd_spmsg5a", " Units " dictLanguage.Add "english_viewPrd_spmsg6", "Low Stock" dictLanguage.Add "english_viewPrd_spmsg7", "Save and choose another" dictLanguage.Add "english_viewPrd_spmsg8", "Quantity Discounts" dictLanguage.Add "english_viewPrd_spmsg8a", "Click for details >>" dictLanguage.Add "english_viewPrd_spmsg9", "This option is not available" dictLanguage.Add "english_configPrd_spmsg1", "Change Options" dictLanguage.Add "english_configPrd_spmsg2", "Select Options" dictLanguage.Add "english_configPrd_spmsg3", "You need to select options for the product: " ' Apparel Add-on end 'APP-E 'MAILUP-S dictLanguage.Add "english_MailUp_RegisterLabel", "Newsletter Subscriptions:" dictLanguage.Add "english_MailUp_SynNote1", "We could not retrieve your current subscription status from our newsletter management system. We have loaded the subscription status that was last saved in the ProductCart database, which might not reflect recent changes that you have made. Any changes you make will be registered and synchronized with our newsletter management system when the service becomes available." dictLanguage.Add "english_MailUp_SynNote1A", "We could not retrieve this customer's current subscription status from MailUp. We have loaded the subscription status that was last saved in the ProductCart database, which might not reflect recent changes that you have made. Any changes you make will be registered and synchronized with MailUp when the service becomes available." dictLanguage.Add "english_MailUp_SynNote2", "Synchronizing information with your MailUp console" dictLanguage.Add "english_MailUp_SynNote3", "Please wait while we update your e-mail newsletter preferences." dictLanguage.Add "english_MailUp_SynNote4", "Saving newsletter preferences..." dictLanguage.Add "english_MailUp_RegisterLabel1", "Pending" dictLanguage.Add "english_MailUp_RegisterLabel2a", "A subscription confirmation message has been sent to your e-mail account. You must click on the link contained in the message to activate your subscription. " dictLanguage.Add "english_MailUp_RegisterLabel2b", "Resend the message" dictLanguage.Add "english_MailUp_RegisterLabel2c", " if you didn't receive it (make sure to check your SPAM folder)." dictLanguage.Add "english_MailUp_RegisterLabel3", "The subscription confirmation message has been sent to your e-mail account" dictLanguage.Add "english_MailUp_RegisterLabel4", "We were not able to send the subscription confirmation message to your e-mail account." dictLanguage.Add "english_MailUp_RegisterLabel4a", "Error: " 'MAILUP-E 'SUBSCRIPTIONBRIDGE-S dictLanguage.Add "english_SB_1", "This order contains an Auto-Delivery subscription." dictLanguage.Add "english_SB_2", "Manage your Auto-Delivery subscription >>" dictLanguage.Add "english_SB_3", "Manage Auto-Delivery Subscriptions" dictLanguage.Add "english_SB_4", "Manage Auto-Delivery Subscription" dictLanguage.Add "english_SB_5", "Transaction History" dictLanguage.Add "english_SB_6", "Edit Billing" dictLanguage.Add "english_SB_7", "Edit Shipping" dictLanguage.Add "english_SB_8", "Cancel" dictLanguage.Add "english_SB_9", "Pending Action" dictLanguage.Add "english_SB_10", "Order ID" dictLanguage.Add "english_SB_11", "Subscription ID" dictLanguage.Add "english_SB_12", "Billing Agreement" dictLanguage.Add "english_SB_13", "Start Date" dictLanguage.Add "english_SB_14", "Update Payment Method" dictLanguage.Add "english_SB_15", "Pay Outstanding Balance" dictLanguage.Add "english_SB_16", "There is an outstanding balance on your account. " dictLanguage.Add "english_SB_17", "Review it and submit a payment >>" dictLanguage.Add "english_SB_18", "Reason: " dictLanguage.Add "english_SB_19", "Amount: " dictLanguage.Add "english_SB_20", "You have been logged out due to inactivity!" dictLanguage.Add "english_SB_21", "Auto-Delivery Subscription Details" dictLanguage.Add "english_SB_22", "Auto-Delivery Subscription Updated" dictLanguage.Add "english_SB_23", "Package Name" dictLanguage.Add "english_SB_24", "Next Billing Total" dictLanguage.Add "english_SB_25", "Next Billing Date" dictLanguage.Add "english_SB_26", "Previous Payment Date" dictLanguage.Add "english_SB_27", "Previous Payment Amount" dictLanguage.Add "english_SB_28", "Start Date" dictLanguage.Add "english_SB_29", "End Date" dictLanguage.Add "english_SB_30", "Until Cancelled" dictLanguage.Add "english_SB_31", "Status" dictLanguage.Add "english_SB_32", "Account Email" dictLanguage.Add "english_SB_1000", "
NOTE: To cancel an Auto-Delivery subscription, click Manage Auto-Delivery Subscription. You will be taken to another website. Click Cancel Subscription. You will need to enter the same password that you entered to log into this page.

" 'SUBSCRIPTIONBRIDGE-E ' end language definitions function clearLanguage() ' clear the dictionary. on error resume next clearLanguage=dictLanguage.removeAll set clearLanguage=nothing end function %> <% 'This file is part of ProductCart, an ecommerce application developed and sold by Early Impact LLC. ProductCart, its source code, the ProductCart name and logo are property of Early Impact, LLC. Copyright 2001-2003. All rights reserved. You are not allowed to use, alter, distribute and/or resell any parts of ProductCart's source code without the written consent of Early Impact. To contact Early Impact, please visit www.earlyimpact.com. %> <% Function RoundTo(intNum, intRn) RoundTo= Int((intNum / intRn)+.5) * intRn End Function function money(anumber) if anumber="" OR anumber=0 then anumber=0 money=0 end if if cdbl(anumber)<0 then test=true bnumber=abs(anumber) else bnumber=anumber end if ' round number if bnumber<>0 then if InStr(Cstr(10/3),",")>0 then if Instr(bnumber,".")>0 then money=FormatNumber(bnumber,,,,0) money=RoundTo(money,.01) money=replace(money,".",",") else money=RoundTo(bnumber,.01) end if else money=RoundTo(bnumber,.01) end if end if if scDecSign="," then ' replace . by , money=replace(money,".",",") else ' replace , by . money=replace(money,",",".") end if ' locate dec division dim indexPoint indexPoint=instr(money, scDecSign) ' for integer, add .00 if indexPoint=0 then money=Cstr(money)+scDecSign+"00" end if ' calculate if 0 or 00 dim moneyLarge, decPart moneyLarge=len(money) decPart=right(money,moneyLarge-indexPoint) ' add to original numbers dim g for g=0 to (1- (moneyLarge-indexPoint)) money=Cstr(money)+"0" next If len(money)>6 then money=divideNo(money) End If dim test if test=true then money="-" & money test=false end if end function function extmoney(anumber) if anumber="" OR anumber=0 then anumber=0 extmoney=0 end if if cdbl(anumber)<0 then test=true anumber=abs(anumber) end if ' round number if anumber<>0 then extmoney=round(anumber,4) end if if scDecSign="," then ' replace . by , extmoney=replace(extmoney,".",",") else ' replace , by . extmoney=replace(extmoney,",",".") end if ' locate dec division dim indexPoint indexPoint=instr(extmoney, scDecSign) ' for integer, add .00 if indexPoint=0 then extmoney=Cstr(extmoney)+scDecSign+"00" end if ' calculate if 0 or 00 dim extmoneyLarge, decPart extmoneyLarge=len(extmoney) decPart=right(extmoney,extmoneyLarge-indexPoint) ' add to original numbers dim g for g=0 to (1- (extmoneyLarge-indexPoint)) extmoney=Cstr(extmoney)+"0" next If len(extmoney)>6 then extmoney=divideNo(extmoney) End If if test=true then extmoney="-" & extmoney test=false end if end function ' use this function to display numbers like 125,000,000 function divideNo(anumber) ' locate scDecSign position scDecSignExist = instr(anumber, scDecSign) - 1 if scDecSignExist <= 0 then scDecSignExist = len(anumber) end if ' add divideNo to integers CntNo = 0 if scDecSignExist > 3 then for indexPoint = scDecSignExist to 1 step -1 pNumber = mid(anumber,indexPoint,1) if pNumber <> scDecSign then CntNo = CntNo + 1 pdivideNo = pNumber & pdivideNo end if if CntNo = 3 and (indexPoint > 1) then pdivideNo = scDivSign & pdivideNo CntNo = 0 end if pNumber = "" next ' add decimals pdivideNo = pdivideNo & mid(anumber, scDecSignExist+1, Len(anumber)) divideNo = pdivideNo else divideNo = anumber end if end function function taxmoney(anumber) ' round number taxmoney=round(anumber,4) end function %> <%private const scShipFromName="Quest Nutrition" private const scOriginPersonName="Shipping" private const scOriginDepartment="" private const scOriginPhoneNumber="888-212-0601" private const scOriginPagerNumber="" private const scOriginFaxNumber="" private const scShipFromAddress1="7723 Somerset Blvd" private const scShipFromAddress2="" private const scShipFromAddress3="" private const scShipFromCity="Paramount" private const scShipFromState="CA" private const scShipFromPostalCode="90723" private const scAlwAltShipAddress="2" private const scComResShipAddress="0" private const scAlwNoShipRates="-1" private const scShipFromPostalCountry="US" private const scShowProductWeight="0" private const scPackageWeightLimit="48" private const scShowCartWeight="0" private const scShowEstimateLink="-1" private const scHideProductPackage="0" private const scHideEstimateDeliveryTimes="0" private const scShipFromWeightUnit="LBS" private const scDefaultProvider="CUSTOM" private const scHideShipAddress="" private const scShipNotifySeparate="0" private const PC_SECTIONSHOW="NA" private const PC_RATESONLY="NO" private const PC_SHIP_DETAIL_TITLE="" private const PC_SHIP_DETAILS="" %> <%private const pTaxonCharges=0 private const pTaxonFees=0 private const ptaxfile=0 private const ptaxsetup=1 private const ptaxshippingaddress="1" private const ptaxseparate="0" private const ptaxwholesale="0" private const pshowVatID="0" private const pVatIdReq="0" private const pshowSSN="0" private const pSSNReq="0" private const ptaxVATrate="0" private const ptaxVATRate_Code="" private const ptaxVAT="0" private const ptaxdisplayVAT="0" private const ptaxRateDefault=", " private const ptaxRateState=", " private const ptaxSNH=", " private const ptaxCanada="" private const ptaxfilename=""%> <% if session("language")="" then session("language")="english" end if dim ship_dictLanguage set ship_dictLanguage=CreateObject("Scripting.Dictionary") ' english ship_dictLanguage.Add "english_shiplogin_a", "Please wait while we gather shipping information for your order" ship_dictLanguage.Add "english_chooseShpmnt_a", "Service Type" ship_dictLanguage.Add "english_chooseShpmnt_b", "Delivery Time" ship_dictLanguage.Add "english_chooseShpmnt_c", "Rate" ship_dictLanguage.Add "english_chooseShpmnt_d", "No shipping rates were returned for your order. The shipping provider's server may be unavailable at this time. Please try again in a few minutes. If the problem persists, please contact the store administrator." ship_dictLanguage.Add "english_chooseShpmnt_e", "*Free shipping applies only to the services that are marked as "Free"." ship_dictLanguage.Add "english_chooseShpmnt_f", "Free*" ship_dictLanguage.Add "english_chooseShpmnt_g", "We were not able to calculate shipping rates for your order at this time. If you continue the checkout process, we will contact you after we receive your order to discuss shipping options with you. Shipping charges will be added to your order at that time." ship_dictLanguage.Add "english_chooseShpmnt_h", "This order will be shipped in " ship_dictLanguage.Add "english_chooseShpmnt_i", " package(s)" ship_dictLanguage.Add "english_login_a", "Not Available" ship_dictLanguage.Add "english_login_b", "Shipping Information" ship_dictLanguage.Add "english_login_c", "Residence" ship_dictLanguage.Add "english_login_d", "Business" ship_dictLanguage.Add "english_login_e", "You have " ship_dictLanguage.Add "english_login_f", ". That means " ship_dictLanguage.Add "english_login_g", " to use towards this purchase!" ship_dictLanguage.Add "english_login_h", "Will this order be shipped to a business or residence?" ship_dictLanguage.Add "english_custRewards_a", "Your current " ship_dictLanguage.Add "english_custRewards_b", " balance is " ship_dictLanguage.Add "english_custRewards_c", "This translates into " ship_dictLanguage.Add "english_custRewards_d", " that you can use for purchases in this store." ship_dictLanguage.Add "english_custRewards_e", "You can use your " ship_dictLanguage.Add "english_custRewards_f", " when placing an order by entering the desired amount on the checkout page." ship_dictLanguage.Add "english_custRewards_g", "To date, you have accrued a total of " ship_dictLanguage.Add "english_custRewards_h", "To date, you have used a total of " ship_dictLanguage.Add "english_viewCart_a", "Total Weight: " ship_dictLanguage.Add "english_viewCart_b", "Estimated Shipping Charges" ship_dictLanguage.Add "english_viewCart_c", "Weight: " ship_dictLanguage.Add "english_noShip_a", "No shipping charge (or no shipping required)." 'do not use more then one comma in this line. ship_dictLanguage.Add "english_noShip_b", "Shipping charges to be determined." 'do not use more then one comma in this line. ship_dictLanguage.Add "english_chooseShpmnt_j", "Flat Rate Shipping" ship_dictLanguage.Add "english_chooseShpmnt_k", "UPS" ship_dictLanguage.Add "english_chooseShpmnt_l", "USPS" ship_dictLanguage.Add "english_chooseShpmnt_m", "FedEx" ship_dictLanguage.Add "english_chooseShpmnt_n", "Canada Post" ' START new text strings in v3 ship_dictLanguage.Add "english_chooseShpmnt_10", "Choose Shipping Provider" ship_dictLanguage.Add "english_chooseShpmnt_11", "Select a Shipping Option" 'Start SDBA ship_dictLanguage.Add "english_dropshipping_msg", "Please note that this order might be shipped from multiple warehouses and therefore arrive in separate packages." ship_dictLanguage.Add "english_partship_sbj_1", "Order ID # - Partially Shipped" ship_dictLanguage.Add "english_partship_sbj_1a", "Order ID # - Drop-Shipper Comments" ship_dictLanguage.Add "english_partship_msg_1", "Please note that your order # has only been partially shipped. You will receive another notification from us when the rest of your order is shipped." ship_dictLanguage.Add "english_partship_msg_1a", "Order # has been partially shipped." ship_dictLanguage.Add "english_partship_msg_2", "List of shipped product(s):" ship_dictLanguage.Add "english_partship_msg_3", "Package Information:" ship_dictLanguage.Add "english_partship_msg_4", "Shipment Method:" ship_dictLanguage.Add "english_partship_msg_5", "Tracking Number:" ship_dictLanguage.Add "english_partship_msg_6", "Shipped Date:" ship_dictLanguage.Add "english_partship_msg_7", "Comments:" ship_dictLanguage.Add "english_partship_msg_8", "Please Note: this shipment completes your order. According to our records, all products have been shipped and should arrive shortly (delivery time changes depending on the shipping option you selected when you placed your order). If you do not receive one or more of the items that you have ordered, please contact us." ship_dictLanguage.Add "english_partship_msg_8a", "Please Note: this is the last package that has been shipped. You can click the link below to obtain additional information on Order #:" ship_dictLanguage.Add "english_partship_sbj_9", "Order ID # - Shipment Completed" ship_dictLanguage.Add "english_custconfirm_msg_1", "Do you want one or separate shipments? Please click on the link below to let us know." ship_dictLanguage.Add "english_admconfirm_msg_1", "BACK-ORDERED PRODUCTS NOTICE" ship_dictLanguage.Add "english_admconfirm_msg_2", "This order contains products that are back-ordered. The products are:" ship_dictLanguage.Add "english_notifyseparate_sbj_1", "Order ID # - Shipping Preference Notification" ship_dictLanguage.Add "english_notifyseparate_msg_1", "The customer indicated they he/she wants to receive separate shipments. Thefore, you should ship the products that are immediately available. You can click the link below to manage the Order #:" ship_dictLanguage.Add "english_notifyseparate_msg_2", "The customer indicated they he/she wants to wait until all products are in stock and receive only one shipment. You can click the link below to manage the Order #:" ship_dictLanguage.Add "english_sds_notifyorder_1", "Products List:" ship_dictLanguage.Add "english_sds_notifyorder_2", "Ship products directly to the customer address:" ship_dictLanguage.Add "english_sds_notifyorder_2a", "Ship products to our store address:" ship_dictLanguage.Add "english_sds_notifyorder_3", "Shipping Method:" ship_dictLanguage.Add "english_sds_notifycanceldorder_1", "The order # has been cancelled - " ship_dictLanguage.Add "english_sds_notifycanceldorder_2", "Dear ,

The order # has been cancelled. Please do not ship any products in this order.
" 'End SDBA ' END new text strings in v3 ' START new text strings in v3.1 ship_dictLanguage.Add "english_xmlPrdInfo_kg", "kg" ship_dictLanguage.Add "english_xmlPrdInfo_g", "g" ship_dictLanguage.Add "english_xmlPrdInfo_lbs", "lbs" ship_dictLanguage.Add "english_xmlPrdInfo_ozs", "ozs" ' END new text strings in v3.1 ' START new text strings in v3.5 ship_dictLanguage.Add "english_partship_msg_9", "Tracking Link: " ship_dictLanguage.Add "english_orderVerify_msg_1", "You cannot checkout because the order amount has changed and free shipping is not available with the new order amount. Please click on the Back button above to recalculate shipping charges" ' END new text strings in v3.5 ' end language definitions function clearShipLanguage() ' clear the dictionary. on error resume next clearShipLanguage = ship_dictLanguage.removeAll set clearShipLanguage = nothing end function %> <% '-------------------------------------------------------------------- ' Microsoft ADO ' ' (c) 1996 Microsoft Corporation. All Rights Reserved. ' ' ' ' ADO constants include file for VBScript ' '-------------------------------------------------------------------- '---- CursorTypeEnum Values ---- Const adOpenForwardOnly=0 Const adOpenKeyset=1 Const adOpenDynamic=2 Const adOpenStatic=3 '---- CursorOptionEnum Values ---- Const adHoldRecords=&H00000100 Const adMovePrevious=&H00000200 Const adAddNew=&H01000400 Const adDelete=&H01000800 Const adUpdate=&H01008000 Const adBookmark=&H00002000 Const adApproxPosition=&H00004000 Const adUpdateBatch=&H00010000 Const adResync=&H00020000 Const adNotify=&H00040000 '---- LockTypeEnum Values ---- Const adLockReadOnly=1 Const adLockPessimistic=2 Const adLockOptimistic=3 Const adLockBatchOptimistic=4 '---- ExecuteOptionEnum Values ---- Const adRunAsync=&H00000010 '---- ObjectStateEnum Values ---- Const adStateClosed=&H00000000 Const adStateOpen=&H00000001 Const adStateConnecting=&H00000002 Const adStateExecuting=&H00000004 '---- CursorLocationEnum Values ---- Const adUseServer=2 Const adUseClient=3 '---- DataTypeEnum Values ---- Const adEmpty=0 Const adTinyInt=16 Const adSmallInt=2 Const adInteger=3 Const adBigInt=20 Const adUnsignedTinyInt=17 Const adUnsignedSmallInt=18 Const adUnsignedInt=19 Const adUnsignedBigInt=21 Const adSingle=4 Const adDouble=5 Const adCurrency=6 Const adDecimal=14 Const adNumeric=131 Const adBoolean=11 Const adError=10 Const adUserDefined=132 Const adVariant=12 Const adIDispatch=9 Const adIUnknown=13 Const adGUID=72 Const adDate=7 Const adDBDate=133 Const adDBTime=134 Const adDBTimeStamp=135 Const adBSTR=8 Const adChar=129 Const adVarChar=200 Const adLongVarChar=201 Const adWChar=130 Const adVarWChar=202 Const adLongVarWChar=203 Const adBinary=128 Const adVarBinary=204 Const adLongVarBinary=205 '---- FieldAttributeEnum Values ---- Const adFldMayDefer=&H00000002 Const adFldUpdatable=&H00000004 Const adFldUnknownUpdatable=&H00000008 Const adFldFixed=&H00000010 Const adFldIsNullable=&H00000020 Const adFldMayBeNull=&H00000040 Const adFldLong=&H00000080 Const adFldRowID=&H00000100 Const adFldRowVersion=&H00000200 Const adFldCacheDeferred=&H00001000 '---- EditModeEnum Values ---- Const adEditNone=&H0000 Const adEditInProgress=&H0001 Const adEditAdd=&H0002 Const adEditDelete=&H0004 '---- RecordStatusEnum Values ---- Const adRecOK=&H0000000 Const adRecNew=&H0000001 Const adRecModified=&H0000002 Const adRecDeleted=&H0000004 Const adRecUnmodified=&H0000008 Const adRecInvalid=&H0000010 Const adRecMultipleChanges=&H0000040 Const adRecPendingChanges=&H0000080 Const adRecCanceled=&H0000100 Const adRecCantRelease=&H0000400 Const adRecConcurrencyViolation=&H0000800 Const adRecIntegrityViolation=&H0001000 Const adRecMaxChangesExceeded=&H0002000 Const adRecObjectOpen=&H0004000 Const adRecOutOfMemory=&H0008000 Const adRecPermissionDenied=&H0010000 Const adRecSchemaViolation=&H0020000 Const adRecDBDeleted=&H0040000 '---- GetRowsOptionEnum Values ---- Const adGetRowsRest=-1 '---- PositionEnum Values ---- Const adPosUnknown=-1 Const adPosBOF=-2 Const adPosEOF=-3 '---- enum Values ---- Const adBookmarkCurrent=0 Const adBookmarkFirst=1 Const adBookmarkLast=2 '---- MarshalOptionsEnum Values ---- Const adMarshalAll=0 Const adMarshalModifiedOnly=1 '---- AffectEnum Values ---- Const adAffectCurrent=1 Const adAffectGroup=2 Const adAffectAll=3 '---- FilterGroupEnum Values ---- Const adFilterNone=0 Const adFilterPendingRecords=1 Const adFilterAffectedRecords=2 Const adFilterFetchedRecords=3 Const adFilterPredicate=4 '---- SearchDirection Values ---- Const adSearchForward=1 Const adSearchBackward=-1 '---- ConnectPromptEnum Values ---- Const adPromptAlways=1 Const adPromptComplete=2 Const adPromptCompleteRequired=3 Const adPromptNever=4 '---- ConnectModeEnum Values ---- Const adModeUnknown=0 Const adModeRead=1 Const adModeWrite=2 Const adModeReadWrite=3 Const adModeShareDenyRead=4 Const adModeShareDenyWrite=8 Const adModeShareExclusive=&Hc Const adModeShareDenyNone=&H10 '---- IsolationLevelEnum Values ---- Const adXactUnspecified=&Hffffffff Const adXactChaos=&H00000010 Const adXactReadUncommitted=&H00000100 Const adXactBrowse=&H00000100 Const adXactCursorStability=&H00001000 Const adXactReadCommitted=&H00001000 Const adXactRepeatableRead=&H00010000 Const adXactSerializable=&H00100000 Const adXactIsolated=&H00100000 '---- XactAttributeEnum Values ---- Const adXactCommitRetaining=&H00020000 Const adXactAbortRetaining=&H00040000 '---- PropertyAttributesEnum Values ---- Const adPropNotSupported=&H0000 Const adPropRequired=&H0001 Const adPropOptional=&H0002 Const adPropRead=&H0200 Const adPropWrite=&H0400 '---- ErrorValueEnum Values ---- Const adErrInvalidArgument=&Hbb9 Const adErrNoCurrentRecord=&Hbcd Const adErrIllegalOperation=&Hc93 Const adErrInTransaction=&Hcae Const adErrFeatureNotAvailable=&Hcb3 Const adErrItemNotFound=&Hcc1 Const adErrObjectInCollection=&Hd27 Const adErrObjectNotSet=&Hd5c Const adErrDataConversion=&Hd5d Const adErrObjectClosed=&He78 Const adErrObjectOpen=&He79 Const adErrProviderNotFound=&He7a Const adErrBoundToCommand=&He7b Const adErrInvalidParamInfo=&He7c Const adErrInvalidConnection=&He7d Const adErrStillExecuting=&He7f Const adErrStillConnecting=&He81 '---- ParameterAttributesEnum Values ---- Const adParamSigned=&H0010 Const adParamNullable=&H0040 Const adParamLong=&H0080 '---- ParameterDirectionEnum Values ---- Const adParamUnknown=&H0000 Const adParamInput=&H0001 Const adParamOutput=&H0002 Const adParamInputOutput=&H0003 Const adParamReturnValue=&H0004 '---- CommandTypeEnum Values ---- Const adCmdUnknown=&H0008 Const adCmdText=&H0001 Const adCmdTable=&H0002 Const adCmdStoredProc=&H0004 '---- SchemaEnum Values ---- Const adSchemaProviderSpecific=-1 Const adSchemaAsserts=0 Const adSchemaCatalogs=1 Const adSchemaCharacterSets=2 Const adSchemaCollations=3 Const adSchemaColumns=4 Const adSchemaCheckConstraints=5 Const adSchemaConstraintColumnUsage=6 Const adSchemaConstraintTableUsage=7 Const adSchemaKeyColumnUsage=8 Const adSchemaReferentialContraints=9 Const adSchemaTableConstraints=10 Const adSchemaColumnsDomainUsage=11 Const adSchemaIndexes=12 Const adSchemaColumnPrivileges=13 Const adSchemaTablePrivileges=14 Const adSchemaUsagePrivileges=15 Const adSchemaProcedures=16 Const adSchemaSchemata=17 Const adSchemaSQLLanguages=18 Const adSchemaStatistics=19 Const adSchemaTables=20 Const adSchemaTranslations=21 Const adSchemaProviderTypes=22 Const adSchemaViews=23 Const adSchemaViewColumnUsage=24 Const adSchemaViewTableUsage=25 Const adSchemaProcedureParameters=26 Const adSchemaForeignKeys=27 Const adSchemaPrimaryKeys=28 Const adSchemaProcedureColumns=29 %> <% ' Cognecy Edit 30Apr2011 - added to improve session stability - forces 'www' at all times while in the store %> <% pcv_strServerURL = request.ServerVariables("HTTP_HOST") pcv_strScriptName = request.ServerVariables("SCRIPT_NAME") pcv_strQS = "" pcv_strQScount = 0 For Each Item In Request.querystring if pcv_strQScount = 0 then pcv_strQS = pcv_strQS & "?" else pcv_strQS = pcv_strQS & "&" end if pcv_strQS = pcv_strQS & item & "=" & request.QueryString(item) pcv_strQScount = pcv_strQScount + 1 Next if pcv_strServerURL="questproteinbar.com" then Response.Status="301 Moved Permanently" Response.AddHeader "Location", "http://www.questproteinbar.com" & pcv_strScriptName & pcv_strQS else Response.AddHeader "pragma", "no-cache" Response.AddHeader "cache-control","private, no-cache, must-revalidate" Response.CacheControl = "no-cache" Response.Expires = -1 end if %> <% ' END Cognecy Edit %> <% '// Main function used to sanitize strings function getUserInput(input,stringLength) dim tempStr,i,known_bad known_bad= array("*","--","expression(") if stringLength>0 then tempStr = left(trim(input),stringLength) else tempStr = trim(input) end if for i=lbound(known_bad) to ubound(known_bad) if (instr(1,tempStr,known_bad(i),vbTextCompare)<>0) then tempStr = replace(tempStr,known_bad(i),"",1,-1,1) end if next if tempStr<>"" then tempStr = replace(tempStr,"'","''") tempStr = replace(tempStr,"<","<") tempStr = replace(tempStr,">",">") tempStr = replace(tempStr,"%0d","") tempStr = replace(tempStr,"%0D","") tempStr = replace(tempStr,"%0a","") tempStr = replace(tempStr,"%0A","") tempStr = replace(tempStr,"\r\n","") tempStr = replace(tempStr,"\r","") tempStr = replace(tempStr,"\n","") tempStr = replace(tempStr,"\R\N","") tempStr = replace(tempStr,"\R","") tempStr = replace(tempStr,"\N","") tempStr = replace(tempStr,"EXEC(","",1,-1,1) tempStr = replace(tempStr,"NOT IN (SELECT","",1,-1,1) tempStr = replace(tempStr,"(SELECT","",1,-1,1) tempStr = replace(tempStr,"ResponseSplitting","",1,-1,1) tempStr = replace(tempStr,"Content-Type","",1,-1,1) end if if tempStr<>"" then if IsNumeric(tempStr) then if InStr(Cstr(10/3),",")>0 then if Instr(tempStr,".")>0 then tempStr=FormatNumber(tempStr,,,,0) tempStr=replace(tempStr,".",",") end if end if end if end if getUserInput = tempStr end function '// Slightly different function used for "Recently viewed products" feature function getUserInput2(input,stringLength) dim tempStr,i if stringLength>0 then tempStr = left(trim(input),stringLength) else tempStr = trim(input) end if if tempStr<>"" then tempStr = replace(tempStr,"'","''") tempStr = replace(tempStr,"<","<") tempStr = replace(tempStr,">",">") tempStr = replace(tempStr,"%0d","") tempStr = replace(tempStr,"%0D","") tempStr = replace(tempStr,"%0a","") tempStr = replace(tempStr,"%0A","") tempStr = replace(tempStr,"\r\n","") tempStr = replace(tempStr,"\r","") tempStr = replace(tempStr,"\n","") tempStr = replace(tempStr,"\R\N","") tempStr = replace(tempStr,"\R","") tempStr = replace(tempStr,"\N","") tempStr = replace(tempStr,"EXEC(","",1,-1,1) tempStr = replace(tempStr,"NOT IN (SELECT","",1,-1,1) tempStr = replace(tempStr,"(SELECT","",1,-1,1) tempStr = replace(tempStr,"ResponseSplitting","",1,-1,1) tempStr = replace(tempStr,"Content-Type","",1,-1,1) end if if tempStr<>"" then if IsNumeric(tempStr) then if InStr(Cstr(10/3),",")>0 then if Instr(tempStr,".")>0 then tempStr=FormatNumber(tempStr,,,,0) tempStr=replace(tempStr,".",",") end if end if end if end if getUserInput2 = tempStr end function '[ClearHTMLTags2] 'Coded by Jóhann Haukur Gunnarsson 'joi@innn.is ' Purpose: This function clears all HTML tags from a string using Regular Expressions. ' Inputs: strHTML2; A string to be cleared of HTML TAGS ' intWorkFlow2; An integer that if equals to 0 runs only the regEx2p filter ' .. 1 runs only the HTML source render filter ' .. 2 runs both the regEx2p and the HTML source render ' .. >2 defaults to 0 ' Returns: A string that has been filtered by the function function ClearHTMLTags2(strHTML2, intWorkFlow2) 'Variables used in the function dim regEx2, strTagLess2 '--------------------------------------- strTagLess2 = strHTML2 'Move the string into a private variable 'within the function '--------------------------------------- '--------------------------------------- 'Early Impact codes IF strTagLess2<>"" THEN strTagLess2=replace(strTagLess2,"
"," ") strTagLess2=replace(strTagLess2,"
"," ") strTagLess2=replace(strTagLess2,"

"," ") strTagLess2=replace(strTagLess2,"

"," ") strTagLess2=replace(strTagLess2,"

"," ") strTagLess2=replace(strTagLess2,"

"," ") strTagLess2=replace(strTagLess2,vbcrlf," ") strTagLess2=replace(strTagLess2,"™","™") strTagLess2=replace(strTagLess2,"©","©") strTagLess2=replace(strTagLess2,"®","®") strTagLess2=trim(strTagLess2) do while instr(strTagLess2," ")>0 strTagLess2=replace(strTagLess2," "," ") loop END IF 'Modify the string to a friendly ONLY 1 LINE string '--------------------------------------- IF strTagLess2<>"" THEN 'regEx2 initialization '--------------------------------------- set regEx2 = New regExp 'Creates a regEx2p object regEx2.IgnoreCase = True 'Don't give frat about case sensitivity regEx2.Global = True 'Global applicability '--------------------------------------- 'Phase I ' "bye bye html tags" if intWorkFlow2 <> 1 then '--------------------------------------- regEx2.Pattern = "<[^>]*>" 'this pattern mathces any html tag strTagLess2 = regEx2.Replace(strTagLess2, "") 'all html tags are stripped '--------------------------------------- end if 'Phase II ' "bye bye rouge leftovers" ' "or, I want to render the source" ' "as html." '--------------------------------------- 'We *might* still have rouge < and > 'let's be positive that those that remain 'are changed into html characters '--------------------------------------- if intWorkFlow2 > 0 and intWorkFlow2 < 3 then regEx2.Pattern = "[<]" 'matches a single < strTagLess2 = regEx2.Replace(strTagLess2, "<") regEx2.Pattern = "[>]" 'matches a single > strTagLess2 = regEx2.Replace(strTagLess2, ">") '--------------------------------------- end if 'Clean up '--------------------------------------- set regEx2 = nothing 'Destroys the regEx2p object '--------------------------------------- END IF 'vefiry strTagLess2 (null strings) '--------------------------------------- ClearHTMLTags2 = strTagLess2 'The results are passed back '--------------------------------------- end function function ClearHTMLTags3(strHTML2, intWorkFlow2) 'Variables used in the function dim regEx2, strTagLess2 '--------------------------------------- strTagLess2 = strHTML2 'Move the string into a private variable 'within the function '--------------------------------------- '--------------------------------------- 'Early Impact codes IF strTagLess2<>"" THEN strTagLess2=replace(strTagLess2,"
"," ") strTagLess2=replace(strTagLess2,"
"," ") strTagLess2=replace(strTagLess2,"

"," ") strTagLess2=replace(strTagLess2,"

"," ") strTagLess2=replace(strTagLess2,"

"," ") strTagLess2=replace(strTagLess2,"

"," ") strTagLess2=replace(strTagLess2,vbcrlf," ") strTagLess2=replace(strTagLess2,"™","™") strTagLess2=replace(strTagLess2,"©","©") strTagLess2=replace(strTagLess2,"®","®") strTagLess2=trim(strTagLess2) do while instr(strTagLess2," ")>0 strTagLess2=replace(strTagLess2," "," ") loop END IF 'Modify the string to a friendly ONLY 1 LINE string '--------------------------------------- IF strTagLess2<>"" THEN 'regEx2 initialization '--------------------------------------- set regEx2 = New regExp 'Creates a regEx2p object regEx2.IgnoreCase = True 'Don't give frat about case sensitivity regEx2.Global = True 'Global applicability '--------------------------------------- 'Phase I ' "bye bye html tags" if intWorkFlow2 <> 1 then '--------------------------------------- regEx2.Pattern = "<[^>]*>" 'this pattern mathces any html tag strTagLess2 = regEx2.Replace(strTagLess2, "") 'all html tags are stripped '--------------------------------------- end if 'Phase II ' "bye bye rouge leftovers" ' "or, I want to render the source" ' "as html." '--------------------------------------- 'We *might* still have rouge < and > 'let's be positive that those that remain 'are changed into html characters '--------------------------------------- if intWorkFlow2 > 0 and intWorkFlow2 < 3 then regEx2.Pattern = "[<]" 'matches a single < strTagLess2 = regEx2.Replace(strTagLess2, "<") regEx2.Pattern = "[>]" 'matches a single > strTagLess2 = regEx2.Replace(strTagLess2, ">") '--------------------------------------- end if 'Clean up '--------------------------------------- set regEx2 = nothing 'Destroys the regEx2p object '--------------------------------------- END IF 'vefiry strTagLess2 (null strings) '--------------------------------------- ClearHTMLTags3 = strTagLess2 'The results are passed back '--------------------------------------- end function 'check for real integers Function validNum(strInput) DIM iposition ' Current position of the character or cursor validNum = true if isNULL(strInput) OR trim(strInput)="" then validNum = false else 'loop through each character in the string and validate that it is a number or integer For iposition=1 To Len(trim(strInput)) if InStr(1, "12345676890", mid(strInput,iposition,1), 1) = 0 then validNum = false Exit For end if Next end if end Function '// This function is used to wrap text in e-mails (e.g. product name, product options) '// Assumption is that Width < len(Text) Public Function WrapString(ByVal Width, ByVal Text) wrapPos=0 iwrap = Width do while mid(Text,iwrap,1) <> " " AND iwrap > 0 iwrap=iwrap-1 loop if iwrap > 0 then WrapString=left(Text,iwrap) wrapPos = iwrap else WrapString=left(Text,Width) wrapPos = Width end if End Function '// Strip out Currency and Percent Characters From a String Public Function pcf_ReplaceChars(pricenumber) on error resume next pcf_ReplaceChars=replace(pricenumber,"%","") pcf_ReplaceChars=replace(pcf_ReplaceChars,scCurSign,"") '// If they still did not type a valid number set equal to zero. if not isNumeric(pcf_ReplaceChars) then pcf_ReplaceChars=0 end if End Function Public Function pcf_PayPalExpressOnly() '// Open Private Connection String Set conPayPalExpressOnly=Server.CreateObject("ADODB.Connection") conPayPalExpressOnly.Open scDSN pcf_PayPalExpressOnly=1 if session("customerType")=1 then query="SELECT idPayment FROM paytypes WHERE active=-1 AND gwCode<>999999 AND gwCode<>50;" else query="SELECT idPayment FROM paytypes WHERE active=-1 AND Cbtob=0 AND gwCode<>999999 AND gwCode<>50;" end if set rs=server.CreateObject("ADODB.RecordSet") set rs=conPayPalExpressOnly.execute(query) if err.number<>0 then set rs=nothing exit function end if PayTypesIndex=Cint(0) if NOT rs.eof then pcv_strTempPaymentOptionValue=rs("idPayment") PayTypesIndex=PayTypesIndex + 1 else set rs=nothing pcf_PayPalExpressOnly=0 end if set rs=nothing if int(PayTypesIndex)=0 then pcf_PayPalExpressOnly=0 end if '// Close Private Connection String conPayPalExpressOnly.Close Set conPayPalExpressOnly=nothing End Function Public Function pcf_PaymentTypes(GatewayName) '// Open Private Connection String Set conPaymentTypes=Server.CreateObject("ADODB.Connection") conPaymentTypes.Open scDSN 'SB S sbCartArr=Session("pcCartSession") If (sbCartArr(1,38)>0) then pcIsSubscription = True strAndSub = "AND (pcPayTypes_Subscription = 1)" Else pcIsSubscription = False strAndSub = "" End if 'SB E pcf_PaymentTypes=1 'SB S if session("customerType")=1 then query="SELECT idPayment FROM paytypes WHERE active=-1 AND gwCode<>50 AND gwCode<>999999 " & strAndSub & ";" else query="SELECT idPayment FROM paytypes WHERE active=-1 AND Cbtob=0 AND gwCode<>50 AND gwCode<>999999 " & strAndSub & ";" end if 'SB E set rs=server.CreateObject("ADODB.RecordSet") set rs=conPaymentTypes.execute(query) if err.number<>0 then set rs=nothing exit function end if PayTypesIndex=Cint(0) if NOT rs.eof then pcv_strTempPaymentOptionValue=rs("idPayment") PayTypesIndex=PayTypesIndex + 1 else set rs=nothing pcf_PaymentTypes=0 end if set rs=nothing if int(PayTypesIndex)=0 then pcf_PaymentTypes=0 end if query="SELECT idPayment FROM paytypes WHERE active=-1 and gwCode=50 " & strAndSub & ";" set rsGoogle=Server.CreateObject("ADODB.Recordset") set rsGoogle=conPaymentTypes.execute(query) if rsGoogle.eof then pcv_intGoogleActive=0 else pcv_intGoogleActive=-1 end if query="SELECT idPayment FROM paytypes WHERE active=-1 and gwCode=999999 " & strAndSub & ";" set rsPayPal=Server.CreateObject("ADODB.Recordset") set rsPayPal=conPaymentTypes.execute(query) if rsPayPal.eof then pcv_intPayPalExpressActive=0 else pcv_intPayPalExpressActive=-1 end if Select Case GatewayName Case "GoogleCheckout":pcv_strPayTypeFilter=(pcv_intGoogleActive=-1) Case "PayPalExp":pcv_strPayTypeFilter=(pcv_intPayPalExpressActive=-1) Case "":pcv_strPayTypeFilter=(pcv_intPayPalExpressActive=-1 OR pcv_intGoogleActive=-1) Case Else:pcv_strPayTypeFilter=(pcv_intPayPalExpressActive=-1 OR pcv_intGoogleActive=-1) End Select if (pcv_strPayTypeFilter) AND pcf_PaymentTypes=0 then pcf_PaymentTypes=0 else pcf_PaymentTypes=1 end if '// Close Private Connection String conPaymentTypes.Close Set conPaymentTypes=nothing End Function Public Function pcf_DiscountedOptions(OriginalOptionsTotal, ProductID, Quantity, CustomerType) '// Dim pcv_intDiscountPerUnit ///// Notes: Dim this variable before this function call to use the value throughout your page. pDiscountPerUnit=0 pDiscountPerWUnit=0 pPercentage=0 pbaseproductonly=0 pcv_intDiscountPerUnit=0 query="SELECT discountPerUnit, percentage, discountPerWUnit, baseproductonly FROM discountsPerQuantity WHERE idProduct="&ProductID&" AND quantityFrom<="&Quantity&" AND quantityUntil>="&Quantity Dim rsDiscountedOptions set rsDiscountedOptions=server.CreateObject("ADODB.RecordSet") set rsDiscountedOptions=conntemp.execute(query) if not rsDiscountedOptions.eof and err.number<>9 then '// There are quantity discounts defined for that quantity and product pDiscountPerUnit=rsDiscountedOptions("discountPerUnit") pDiscountPerWUnit=rsDiscountedOptions("discountPerWUnit") pPercentage=rsDiscountedOptions("percentage") pbaseproductonly=rsDiscountedOptions("baseproductonly") '// )nly factor if the options were included if pbaseproductonly<>"-1" then if pPercentage<>"0" then if CustomerType=1 Then pcv_intDiscountPerUnit=pDiscountPerWUnit else pcv_intDiscountPerUnit=pDiscountPerUnit end if OriginalOptionsTotal= OriginalOptionsTotal - ((pcv_intDiscountPerUnit/100) * OriginalOptionsTotal) end if end if '// if pbaseproductonly<>"-1" then end if if NOT isNumeric(OriginalOptionsTotal) then OriginalOptionsTotal=0 end if pcf_DiscountedOptions=OriginalOptionsTotal '// rsDiscountedOptions=nothing /// Keep this line commented. Close the Obj after the loop. End Function Function pcf_Round(numericValue,decimals) '// Validate Numeric Value If isNULL(numericValue)=True OR numericValue="" Then pcf_Round=0 '// Set the Value to Zero if Validation Fails Exit Function '// Do Not Round... Exit End If If isnumeric(numericValue)=False Then pcf_Round=numericValue '// Restore the Original Value if Validation Fails Exit Function '// Do Not Round... Exit End If '// Perform the Round pcf_Round=round(numericValue, decimals) End Function 'Print last Four Digits of Credit Card in the Invoice Function ShowLastFour(CreditCardNumber) 'Check for Special Characters(Hyphen and Space) in the Credit Card Number CreditCardNumberTemp = CreditCardNumber CreditCardNumber = Replace(CreditCardNumber,"-","") CreditCardNumber = Replace(CreditCardNumber," ","") if IsNumeric(CreditCardNumber) and len(CreditCardNumber)>10 then CreditCardNumber="****" & Right(CreditCardNumber,4) else CreditCardNumber=CreditCardNumberTemp end if ShowLastFour=CreditCardNumber End Function '// Determine Credit Card Type, if possible Function ShowCardType(CreditCardNumber) CreditCardType="Not Available" 'Check for Special Characters(Hyphen and Space) in the Credit Card Number CreditCardNumberTemp = CreditCardNumber CreditCardNumber = Replace(CreditCardNumber,"-","") CreditCardNumber = Replace(CreditCardNumber," ","") if IsNumeric(CreditCardNumber) and len(CreditCardNumber)>10 then 'Check the first two digits first Select Case CInt(Left(CreditCardNumber, 2)) ' 1 Case 34, 37 CreditCardType = "American Express" Case 36 CreditCardType = "Diners Club" Case 38 CreditCardType = "Carte Blanche" Case 51, 52, 53, 54, 55 CreditCardType = "Master Card" Case Else 'None of the above - so check the 'first four digits collectively Select Case CInt(Left(CreditCardNumber, 4)) ' 2 Case 2014, 2149 CreditCardType = "EnRoute" Case 2131, 1800 CreditCardType = "JCB" Case 6011 CreditCardType = "Discover" Case Else 'None of the above - so check the 'first three digits collectively Select Case CInt(Left(CreditCardNumber, 3)) ' 3 Case 300, 301, 302, 303, 304, 305 CreditCardType = "American Diners Club" Case Else 'None of the above - 'so simply check the first digit Select Case CInt(Left(CreditCardNumber, 1)) ' 4 Case 3 CreditCardType = "JCB" Case 4 CreditCardType = "Visa" End Select '4 End Select ' 3 End Select '2 End Select '1 end if ShowCardType=CreditCardType End Function '// To DB #1 Function pcf_SanitizeApostrophe(UserInput) If UserInput<>"" AND NOT isNULL(UserInput) Then pcf_SanitizeApostrophe=replace(UserInput,"'","''") Else pcf_SanitizeApostrophe=UserInput End If End Function '// To DB #2 function removeReplaceSQ(myString) if isNULL(myString) then removeReplaceSQ="" else removeReplaceSQ=replace(myString,"''","'") '// normalize removeReplaceSQ=replace(removeReplaceSQ,"'","''") end if end function '// To Text File function removeSQ(myString) if isNULL(myString) then removeSQ="" else myString=replace(myString,"''","'") '// normalize removeSQ=replace(myString,"""",""") end if end function '// To Print Function pcf_PrintCharacters(UserInput) Dim tempStr tempStr=UserInput If tempStr<>"" AND NOT isNULL(tempStr) Then tempStr=replace(tempStr,"'","''") '// normalize tempStr=replace(tempStr,"''","'") tempStr=replace(tempStr,""","""") if Instr(tempStr,Vbcrlf)>0 then do while Instr(tempStr,Vbcrlf&Vbcrlf)>0 tempStr=replace(tempStr, Vbcrlf&Vbcrlf,Vbcrlf) loop tempStr=replace(tempStr, Vbcrlf," ") end if tempStr=replace(tempStr, Chr(8),"") tempStr=replace(tempStr, Chr(9),"") tempStr=replace(tempStr, Chr(10),"") tempStr=replace(tempStr, Chr(13),"") pcf_PrintCharacters=tempStr Else pcf_PrintCharacters=tempStr End If End Function '// To Email Function pcf_RestoreCharacters(UserInput) Dim tempStr tempStr=UserInput If tempStr<>"" AND NOT isNULL(tempStr) Then tempStr=replace(tempStr,"™","™") tempStr=replace(tempStr,"©","©") tempStr=replace(tempStr,"®","®") pcf_RestoreCharacters=tempStr Else pcf_RestoreCharacters=tempStr End If End Function '// Convert Special Characters To HTML Function pcf_ReplaceCharacters(UserInput) ' NOTES: ' DO NOT add a replace on " (double quotes) because this function is used when saving ' HTML code too (e.g. long product description) and that would break the HTML Dim tempStr tempStr=removeReplaceSQ(UserInput) '// Sanitize UserInput If tempStr<>"" And Not isNull(tempStr) Then tempStr=replace(tempStr,"™","™") tempStr=replace(tempStr,"©","©") tempStr=replace(tempStr,"®","®") pcf_ReplaceCharacters=tempStr Else pcf_ReplaceCharacters=tempStr End If End Function Function pcf_ReplaceQuotes(UserInput) Dim tempStr tempStr=UserInput If tempStr<>"" And Not isNull(tempStr) Then tempStr=replace(tempStr,"""",""") pcf_ReplaceQuotes=tempStr Else pcf_ReplaceQuotes=tempStr End If End Function Function pcf_AddToCart(IdProduct) IF scQuickBuy = "1" THEN '// Feature is inactive pcf_AddToCart=False Exit Function ELSE '// Feature is active If IdProduct<>"" AND NOT isNULL(IdProduct) Then '// Show Add To Cart Button pcf_AddToCart=True '// 1.) PRODUCT FOR SALE: Verify level is 0 OR is 1 with a custmer type of 1 '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// NOTES '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' Check for order level permission "scorderlevel". ' scorderlevel = 0 // everybody ' scorderlevel = 1 // wholesale only ' scorderlevel = 2 // catalog only ' Also check what level the current customer is classified. ' session("customerType") = "" // not logged in ' session("customerType") = 1 // wholesale ' session("customerType") = 0 // retail '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If NOT (scorderlevel = "0" OR pcf_WholesaleCustomerAllowed) Then '// if [everyone] OR [wholesale w/ wholesale only turned on] pcf_AddToCart=False Exit Function End If '// 2.) STOCK CONSIDERATIONS: If out of stock AND out of stock purchase is allowed show button. '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// NOTES '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' The Following Variable Must Be Defined: ' pStock ' pserviceSpec ' pNoStock ' pcv_intBackOrder ' iBTOOutofstockpurchase '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If NOT pcf_OutStockPurchaseAllow Then pcf_AddToCart=False Exit Function End If '// 3.) Product is a BTO product If (pserviceSpec<>0) Then pcf_AddToCart=False Exit Function End If '// 4.) Product has required options (if options are not required, then visiting the product details page is not mandatory) If pcf_CheckForReqOptions(IdProduct)=1 Then pcf_AddToCart=False Exit Function End If '// 5.) Product has required input fields If pcf_CheckForReqInputFields(IdProduct)=1 Then pcf_AddToCart=False Exit Function End If '// 6.) Product has required accessories If pcf_CheckForReqAccessories(IdProduct)=1 Then pcf_AddToCart=False Exit Function End If '// 7.) Product is an Apparel Product '// Does not apply to stores not running the APP Add-on '// 8.) Product has Qty Minimums '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// NOTES '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' Use "pcv_SkipCheckMinQty" to skip the Qty Minimums validation section '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If pcf_CheckMinQty(IdProduct)=1 AND pcv_SkipCheckMinQty<>-1 Then pcf_AddToCart=False Exit Function End If '// 9.) Not for Sale If pFormQuantity="-1" and NotForSaleOverride(session("customerCategory"))=0 Then pcf_AddToCart=False Exit Function End If Else '// If IdProduct<>"" AND NOT isNULL(IdProduct) Then pcf_AddToCart=False Exit Function End If '// If IdProduct<>"" AND NOT isNULL(IdProduct) Then END IF '// Feature is active End Function Public Function pcf_InitializePrototype() If Not (pcv_strPrototype) Then pcv_strPrototype=True pcv_NewLine=CHR(10) pcv_strModal="" pcv_strModal=pcv_strModal&""& pcv_NewLine pcv_strModal=pcv_strModal&""& pcv_NewLine pcf_InitializePrototype = pcv_strModal End If End Function Public Function pcf_ModalWindow(Message, ID, Width) Dim pcv_strModal, pcv_NewLine pcv_NewLine=CHR(10) pcv_strModal="" pcv_strModal=pcv_strModal&""& pcv_NewLine pcv_strModal=""& pcv_NewLine pcv_strModal=pcv_strModal&""& pcv_NewLine pcv_strModal=pcv_strModal&""& pcv_NewLine pcv_strModal=pcv_strModal&""& pcv_NewLine pcv_strModal=pcv_strModal&""& pcv_NewLine pcv_strModal=pcv_strModal&""& pcv_NewLine pcf_ModalWindow = pcv_strModal End Function Sub pcs_GetSubCats(tmpIDParent) Dim intCount,pcArrSubCat querySubCat="SELECT idcategory FROM categories WHERE idParentCategory=" & tmpIDParent & ";" set rsSubCat=connTemp.execute(querySubCat) if not rsSubCat.eof then pcArrSubCat=rsSubCat.getRows() set rsSubCats=nothing For intCount=0 to ubound(pcArrSubCat,2) TmpCatList=TmpCatList & "," & pcArrSubCat(0,intCount) call pcs_GetSubCats(pcArrSubCat(0,intCount)) Next end if set rsSubCat=nothing End Sub Function pcf_ColumnToArray(pMDA, iCol) Dim iLoop, Result(), max max = UBound(pMDA,2) ReDim Result(max) For iLoop = 0 To max Result(iLoop) = pMDA(iCol, iLoop) Next pcf_ColumnToArray = Result End Function '***************************************************************************************************** '// START: Add function for ZIP code '***************************************************************************************************** Public Function pcf_PostCodes(code) if len(code)>0 then code = trim(code) code = ucase(code) end if pcf_PostCodes=code End Function '***************************************************************************************************** '// END: Add function for ZIP code '***************************************************************************************************** '***************************************************************************************************** '// START: Function used to look for admin user in user permission array '***************************************************************************************************** Function findUser(ByRef arr, ByVal val, pcArrCount) findUser=Null For i=0 To pcArrCount If CLng(val) = CLng(arr(i)) Then findUser=i Exit Function End If Next End Function '***************************************************************************************************** '// END '***************************************************************************************************** '***************************************************************************************************** 'Get Active Security Key '***************************************************************************************************** Function pcs_GetSecureKey() Dim querygsk,rsGSKObj querygsk = "SELECT pcSecurityKey FROM pcSecurityKeys WHERE pcActiveKey = 1;" set rsGSKObj = server.CreateObject("ADODB.RecordSet") set rsGSKObj = connTemp.execute(querygsk) if rsGSKObj.eof then pcv_SecurityPass = scCrypPass else pcv_SecurityPass = rsGSKObj("pcSecurityKey") end if pcs_GetSecureKey = pcv_SecurityPass set rsGSKObj=nothing End Function Function pcs_GetKeyID() Dim querygsk,rsGSKObj querygsk = "SELECT pcSecurityKeyID FROM pcSecurityKeys WHERE pcActiveKey = 1;" set rsGSKObj = server.CreateObject("ADODB.RecordSet") set rsGSKObj = connTemp.execute(querygsk) if rsGSKObj.eof then pcv_SecurityKeyID = 0 else pcv_SecurityKeyID = rsGSKObj("pcSecurityKeyID") end if pcs_GetKeyID = pcv_SecurityKeyID set rsGSKObj=nothing End Function '***************************************************************************************************** 'Get Active Security Key '***************************************************************************************************** '***************************************************************************************************** '//Get the pcSecurityKey '***************************************************************************************************** Function pcs_GetKeyUsed(keyid) if isNULL(keyid) or keyid&""="" then keyid = 0 end if if keyid = 0 then pcs_GetKeyUsed = scCrypPass else query = "SELECT pcSecurityKey FROM pcSecurityKeys WHERE pcSecurityKeyID = "&keyid&";" set rsGSKObj = server.CreateObject("ADODB.RecordSet") set rsGSKObj = connTemp.execute(query) if rsGSKObj.eof then 'redirect else pcs_GetKeyUsed = rsGSKObj("pcSecurityKey") end if set rsGSKObj = nothing end if End Function '***************************************************************************************************** '//Get the pcSecurityKey '***************************************************************************************************** '***************************************************************************************************** Function pcf_PurgeCardNumber(CreditCardNumber,keyid) if isNULL(keyid) or keyid&""="" then keyid = 0 end if if keyid = 0 then sSecurePass = scCrypPass else query = "SELECT pcSecurityKey FROM pcSecurityKeys WHERE pcSecurityKeyID = "&keyid&";" set rsGSKObj = server.CreateObject("ADODB.RecordSet") set rsGSKObj = connTemp.execute(query) if rsGSKObj.eof then 'redirect else sSecurePass = rsGSKObj("pcSecurityKey") end if set rsGSKObj = nothing end if tempCC=CreditCardNumber tempCC=enDeCrypt(tempCC, sSecurePass) tempfourR=right(tempCC,4) tempfour="************"&tempfourR pcf_PurgeCardNumber=enDeCrypt(tempfour, sSecurePass) End Function '***************************************************************************************************** '***************************************************************************************************** '// Get the Customer Status '***************************************************************************************************** Function pcf_GetCustType(CustID) if CustID="" then CustID=0 query = "SELECT pcCust_Guest FROM customers WHERE idcustomer=" & CustID set rsCustCType = Server.CreateObject("ADODB.Recordset") set rsCustCType = conntemp.execute(query) if NOT rsCustCType.EOF then pcf_GetCustType = rsCustCType("pcCust_Guest") else pcf_GetCustType = "" end if set rsCustCType = nothing End Function '***************************************************************************************************** '***************************************************************************************************** '// Get the Total Discount from Promotions '***************************************************************************************************** Function pcf_GetPromoTotal(PromoArr1,PromoIndex) TotalPromotions=0 For m=1 to PromoIndex if PromoArr1(m,2)>0 then TotalPromotions=TotalPromotions+cdbl(PromoArr1(m,2)) end if Next pcf_GetPromoTotal = TotalPromotions End Function ' begin PRV41 '***************************************************************************************************** '// Format a date for the currently defined database '***************************************************************************************************** Function formatDateForDB(varDate) If IsDate(varDate) then if scDB="Access" Then formatDateForDB = "#" & varDate & "#" Else formatDateForDB = "'" & varDate & "'" End If Else formatDateForDB = "null" End If End function '***************************************************************************************************** '***************************************************************************************************** '// Read a complete text file '***************************************************************************************************** Function strReadAll(strFilename) Dim objFSO, objFile Set objFSO = server.CreateObject("Scripting.FileSystemObject") Err.number=0 Set objFile = objFSO.OpenTextFile(strFileName, 1) strReadAll = objFile.ReadAll() objFile.close Set objFile = Nothing Set objFSO = nothing End Function '***************************************************************************************************** '***************************************************************************************************** '// simple proper case. if a string is all caps or all lower, forcer to Proper Case '// (note: does not handle the McGillicuddies and St. Jeans of the world) '***************************************************************************************************** Function ProperCase(varString) If Len(varString)>0 then If LCase(varString)=varstring Or UCase(varstring)=varstring Then ProperCase = UCase(Left(varString,1)) & LCase(Mid(varString,2)) Else ProperCase = varString End If End If End Function '***************************************************************************************************** '***************************************************************************************************** '// Generate a GUID '***************************************************************************************************** Function genGUID() Dim newGuid newGuid = server.createobject("scriptlet.typelib").guid ' Take the GUID (stripping out the brackets and any extraneous data at the end newGuid=mid(Left(newGuid,instr(newGuid,"}")-1),2) genGUID=newGuid Set newGuid=nothing end Function '***************************************************************************************************** '// Passed what 'should' be a number, return zero if it's null or non-numeric, else return the number '***************************************************************************************************** Function fnZeroIfNull(varAny) fnZeroIfNull = 0 If IsNull(varAny) Then Exit Function If Len(varAny)=0 Then Exit Function If IsNumeric(varAny) = False Then Exit Function fnZeroIfNull = varAny End function ' end PRV41 '// Replace Comma '***************************************************************************************************** function replacecomma(pricenumber) If IsNumeric(pricenumber) then if scDecSign="," then replacecomma=replace(pricenumber,".","") replacecomma=replace(replacecomma,",",".") else replacecomma=replace(pricenumber,",","") end if End If end function '//Fix Javascript string issues '***************************************************************************************************** function FixLang(str) Dim tmp1 tmp1=str if tmp1<>"" then tmp1=replace(tmp1,"\""","""") tmp1=replace(tmp1,"\'","'") tmp1=replace(tmp1,"""","\""") tmp1=replace(tmp1,"'","\'") end if FixLang=tmp1 end function %> <% '************************************************************** '* START - Retrieve Error Handler status from database '* This variable is set via the Store Settings page '************************************************************** Call Opendb() Dim pcIntErrorHandler query="SELECT pcStoreSettings_ErrorHandler FROM pcStoreSettings WHERE (((pcStoreSettings_ID)=1));" set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) pcIntErrorHandler=rs("pcStoreSettings_ErrorHandler") if pcIntErrorHandler="" then pcIntErrorHandler=1 end if set rs=nothing Call Closedb() '************************************************************** '* END - Retrieve Error Handler status from database '************************************************************** 'log file not yet used pcStrErrFileName = "#" 'Create an id the customer can use when they call up. pcStrCustRefID = Session.SessionID & "-" & Hour(Now) & Minute(Now) & Second(Now) '//do not use yet... Function LogErrorToFile () Dim objFS Dim objFile On Error Resume Next LogError = False Set objFS = Server.CreateObject ("Scripting.FileSystemObject") If Err.number = 0 Then Set objFile = objFS.OpenTextFile (pcStrErrFileName, 8, True) If Err.number = 0 Then tErrDescription= Replace(err.description,vbLf,vbCrLf) objFile.WriteLine "------------------------------------------------------" objFile.WriteLine "* Error At " & Now objFile.WriteLine "* CustomerRefID: " & pcStrCustRefID objFile.WriteLine "* Session ID: " & Session.SessionID objFile.WriteLine "* Error Number: " & err.number objFile.WriteLine "* Error Source: " & err.source objFile.WriteLine "* Error Description: " & tErrDescription objFile.WriteLine "* RequestMethod: " & Request.ServerVariables("REQUEST_METHOD") objFile.WriteLine "* ServerPort: " & Request.ServerVariables("SERVER_PORT") objFile.WriteLine "* HTTPS: " & Request.ServerVariables("HTTPS") objFile.WriteLine "* LocalAddr: " & Request.ServerVariables("LOCAL_ADDR") objFile.WriteLine "* HostAddress :" & Request.ServerVariables("REMOTE_ADDR") objFile.WriteLine "* UserAgent: " & Request.ServerVariables("HTTP_USER_AGENT") objFile.WriteLine "* URL: " & Request.ServerVariables("URL") objFile.WriteLine "* FormData: " & Request.Form objFile.WriteLine "* HTTP Headers: " objFile.WriteLine "*****************************" objFile.WriteLine Replace(Request.ServerVariables("ALL_HTTP"),vbLf,vbCrLf) objFile.WriteLine "*****************************" objFile.WriteLine "------------------------------------------------------" & vbCrLf objFile.Close End If End If End Function Function LogErrorToDatabase() tErrDescription = Replace(err.description,vbLf,vbCrLf) if instr(tErrDescription,"SQL") then else '// Append the query string for debugging if query <> "" then pcv_srtErrDescription = tErrDescription & "

" & "query=" & query & "

" else pcv_srtErrDescription = tErrDescription end if pcv_srtErrDescription = replace(pcv_srtErrDescription,"'","''") pcv_srtErrDescription = replace(pcv_srtErrDescription,"""","""""") Set conError = Server.CreateObject("ADODB.Connection") Set rstError = Server.CreateObject("ADODB.Recordset") conError.open scDSN if scDB="SQL" then strDtDelim="'" else strDtDelim="#" end if ErrQuery="INSERT INTO pcErrorHandler (pcErrorHandler_SessionID, pcErrorHandler_RequestMethod, pcErrorHandler_ServerPort, pcErrorHandler_HTTPS, pcErrorHandler_LocalAddr, pcErrorHandler_RemoteAddr, pcErrorHandler_UserAgent, pcErrorHandler_URL, pcErrorHandler_HttpHost, pcErrorHandler_HttpLang, pcErrorHandler_ErrNumber, pcErrorHandler_ErrSource, pcErrorHandler_ErrDescription, pcErrorHandler_InsertDate,pcErrorHandler_CustomerRefID) VALUES ('"&Session.SessionID&"','"&Request.ServerVariables("REQUEST_METHOD")&"','"&Request.ServerVariables("SERVER_PORT")&"','"&Request.ServerVariables("HTTPS")&"','"&Request.ServerVariables("LOCAL_ADDR")&"','"&Request.ServerVariables("REMOTE_ADDR")&"','"&Request.ServerVariables("HTTP_USER_AGENT")&"','"&Request.ServerVariables("URL")&"','"&Request.ServerVariables("HTTP_Host")&"','"&Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")&"', '"&err.number&"', '"&err.source&"', '"& pcv_srtErrDescription &"', "&strDtDelim&Date()&strDtDelim&", '"&pcStrCustRefID&"');" Set rstError = Server.CreateObject("ADODB.Recordset") Set rstError = conError.execute(ErrQuery) Set rstError = Nothing conError.close 'If the Error Handler is turned on (1), hide the error. If it's turned off (0), show the error in the browser. if pcIntErrorHandler=0 then response.write "------------------------------------------------------
" response.write "* Error At " & Now &"
" response.write "* CustomerRefID: " & pcStrCustRefID &"
" response.write "* Session ID: " & Session.SessionID &"
" response.write "* Error Number: " & err.number &"
" response.write "* Error Source: " & err.source &"
" response.write "* Error Description: " & tErrDescription &"
" if query <> "" then pcv_srtErrDescription=query pcv_srtErrDescription = replace(pcv_srtErrDescription,"'","''") pcv_srtErrDescription = replace(pcv_srtErrDescription,"""","""""") response.write "* Last Query: " & pcv_srtErrDescription &"
" end if response.write "* RequestMethod: " & Request.ServerVariables("REQUEST_METHOD") &"
" response.write "* ServerPort: " & Request.ServerVariables("SERVER_PORT") &"
" response.write "* HTTPS: " & Request.ServerVariables("HTTPS") &"
" response.write "* LocalAddr: " & Request.ServerVariables("LOCAL_ADDR") &"
" response.write "* HostAddress :" & Request.ServerVariables("REMOTE_ADDR") &"
" response.write "* UserAgent: " & Request.ServerVariables("HTTP_USER_AGENT") &"
" response.write "* URL: " & Request.ServerVariables("URL") &"
" response.write "* FormData: " & Request.Form &"
" response.write "* HTTP Headers: " &"
" response.write "*****************************
" response.write Replace(Request.ServerVariables("ALL_HTTP"),vbLf,"
") response.write "*****************************
" response.write "------------------------------------------------------
" response.end end if end if err.clear End Function %> <% 'This file is part of ProductCart, an ecommerce application developed and sold by Early Impact LLC. ProductCart, its source code, the ProductCart name and logo are property of Early Impact, LLC. Copyright 2001-2003. All rights reserved. You are not allowed to use, alter, distribute and/or resell any parts of ProductCart's source code without the written consent of Early Impact. To contact Early Impact, please visit www.earlyimpact.com. Dim pcv_intOptionsExist '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: Are Options '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function pcf_CheckForOptions(ID) '//Product ID pcv_str_CheckOptionsID=ID '// CHECK FOR OPTIONS ' TABLES: products, pcProductsOptions, optionsgroups, ptions_optionsGroups query = "SELECT DISTINCT optionsGroups.OptionGroupDesc, pcProductsOptions.pcProdOpt_ID, pcProductsOptions.idOptionGroup, pcProductsOptions.pcProdOpt_Required, pcProductsOptions.pcProdOpt_Order " query = query & "FROM products " query = query & "INNER JOIN ( " query = query & "pcProductsOptions INNER JOIN ( " query = query & "optionsgroups " query = query & "INNER JOIN options_optionsGroups " query = query & "ON optionsgroups.idOptionGroup = options_optionsGroups.idOptionGroup " query = query & ") ON optionsGroups.idOptionGroup = pcProductsOptions.idOptionGroup " query = query & ") ON products.idProduct = pcProductsOptions.idProduct " query = query & "WHERE products.idProduct=" & pcv_str_CheckOptionsID &" " query = query & "AND options_optionsGroups.idProduct=" & pcv_str_CheckOptionsID &" " query = query & "ORDER BY pcProductsOptions.pcProdOpt_Order;" set rsCheckOptions=server.createobject("adodb.recordset") set rsCheckOptions=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsCheckOptions=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if If NOT rsCheckOptions.eof Then pcf_CheckForOptions=1 Else pcf_CheckForOptions=2 End If set rsCheckOptions = nothing End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: Are Options '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: Required Options '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function pcf_CheckForReqOptions(ID) '//Product ID pcv_str_CheckOptionsID=ID '// CHECK FOR REQUIRED OPTIONS ' TABLES: products, pcProductsOptions, optionsgroups, ptions_optionsGroups query = "SELECT DISTINCT optionsGroups.OptionGroupDesc, pcProductsOptions.pcProdOpt_ID, pcProductsOptions.idOptionGroup, pcProductsOptions.pcProdOpt_Required, pcProductsOptions.pcProdOpt_Order " query = query & "FROM products " query = query & "INNER JOIN ( " query = query & "pcProductsOptions INNER JOIN ( " query = query & "optionsgroups " query = query & "INNER JOIN options_optionsGroups " query = query & "ON optionsgroups.idOptionGroup = options_optionsGroups.idOptionGroup " query = query & ") ON optionsGroups.idOptionGroup = pcProductsOptions.idOptionGroup " query = query & ") ON products.idProduct = pcProductsOptions.idProduct " query = query & "WHERE products.idProduct=" & pcv_str_CheckOptionsID &" " query = query & "AND options_optionsGroups.idProduct=" & pcv_str_CheckOptionsID &" " query = query & "ORDER BY pcProductsOptions.pcProdOpt_Order;" set rsCheckOptions=server.createobject("adodb.recordset") set rsCheckOptions=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsCheckOptions=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if If NOT rsCheckOptions.eof Then pcf_CheckForReqOptions=2 do while not rsCheckOptions.eof if clng(rsCheckOptions("pcProdOpt_Required"))<>0 then pcf_CheckForReqOptions=1 Exit Function end if rsCheckOptions.MoveNext loop Else pcf_CheckForReqOptions=2 End If set rsCheckOptions = nothing End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: Required Options '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: Required Input Fields '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function pcf_CheckForReqInputFields(ID) '//Product ID pcv_str_CheckID=ID '// CHECK FOR REQUIRED INPUT FIELDS ' TABLES: products query ="SELECT x1req,x2req,x3req FROM products WHERE idProduct=" & pcv_str_CheckID set rsCheckInput=server.createobject("adodb.recordset") set rsCheckInput=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsCheckInput=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if If NOT rsCheckInput.eof Then pcf_CheckForReqInputFields=2 if clng(rsCheckInput("x1req"))+clng(rsCheckInput("x2req"))+clng(rsCheckInput("x3req"))<>0 then pcf_CheckForReqInputFields=1 end if Else pcf_CheckForReqInputFields=2 End If set rsCheckInput = nothing End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: Required Input Fields '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: Required Accessories '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function pcf_CheckForReqAccessories(ID) '//Product ID IdProduct=ID '// No Required Accessories pcf_CheckForReqAccessories=2 query="SELECT cs_relationships.idproduct, cs_relationships.idrelation, cs_relationships.cs_type, cs_relationships.isRequired, products.servicespec, products.description FROM cs_relationships INNER JOIN products ON cs_relationships.idrelation=products.idProduct WHERE (((cs_relationships.idproduct)="& IdProduct &") AND ((products.active)=-1) AND ((products.removed)=0)) ORDER BY cs_relationships.num,cs_relationships.idrelation;" set rsCheckRequiredAccessories=server.createobject("adodb.recordset") set rsCheckRequiredAccessories=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsCheckInput=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if If NOT rsCheckRequiredAccessories.EOF Then pcArray_RequiredAccessories=rsCheckRequiredAccessories.GetRows() pcv_intAccessoriesCount=UBound(pcArray_RequiredAccessories,2)+1 End If set rsCheckRequiredAccessories=nothing AccessoriesCnt=Cint(0) do while (AccessoriesCnt < pcv_intAccessoriesCount) cs_pBTOCnt=Cint(0) cs_pOptCnt=Cint(0) cs_pAddtoCart=Cint(0) pidrelation=pcArray_RequiredAccessories(1,AccessoriesCnt) '// rsCheckRequiredAccessories("idrelation") pcsType=pcArray_RequiredAccessories(2,AccessoriesCnt) '// rsCheckRequiredAccessories("cs_type") cs_pserviceSpec=pcArray_RequiredAccessories(4,AccessoriesCnt) '// rsCheckRequiredAccessories("servicespec") pcv_strIsRequiredAccessory=pcArray_RequiredAccessories(3,AccessoriesCnt) '// rsCheckRequiredAccessories("isRequired") AccessoriesCnt=AccessoriesCnt+1 '// CHECK IF THIS PRODUCT HAS AT LEAST ONE ACTIVE CATEGORY pcv_intCategoryActive=1 If Session("customerType")=1 Then pcv_strCSTemp="" else pcv_strCSTemp=" AND pccats_RetailHide<>1 " end if query="SELECT categories_products.idProduct " query=query+"FROM categories_products " query=query+"INNER JOIN categories " query=query+"ON categories_products.idCategory = categories.idCategory " query=query+"WHERE categories_products.idProduct="& pidrelation &" AND iBTOhide=0 " & pcv_strCSTemp & " " query=query+"ORDER BY priority, categoryDesc ASC;" set rsCheckCategory=server.CreateObject("ADODB.RecordSet") set rsCheckCategory=conntemp.execute(query) If rsCheckCategory.eof Then pcv_intCategoryActive=2 End If set rsCheckCategory=nothing '// CHECK FOR REQUIRED OPTIONS pcv_intOptionsExist=pcf_CheckForReqOptions(pidrelation) '// check options function (1=YES, 2=NO) '// CHECK FOR REQUIRED INPUT FIELDS if pcv_intOptionsExist=2 then pcv_intOptionsExist=pcf_CheckForReqInputFields(pidrelation) end if if cs_pserviceSpec=true OR (pcv_intOptionsExist = 1) then If pcv_intOptionsExist = 1 Then cs_pOptCnt=cs_pOptCnt+1 Else cs_pBTOCnt=cs_pBTOCnt+1 End If End If ' If item is either BTO or have options or is within Hidden Category, ' do not require item (bundle) or ' do not require checkbox (accessory) ' as these will not be shown on page if cint(cs_pOptCnt) + cint(cs_pBTOCnt) = 0 then cs_pAddtoCart = 1 end if if ((cs_pAddtoCart=1 AND pcsType<>"Accessory") OR (pcsType="Accessory")) AND (pcv_intCategoryActive=1) then if pcv_strIsRequiredAccessory <> 0 then pcf_CheckForReqAccessories=1 Exit Function end if end if '// Clear Variables cs_pBTOCnt=Cint(0) cs_pOptCnt=Cint(0) cs_pAddtoCart=Cint(0) cs_pserviceSpec="" pidrelation=Cint(0) pcsType="" loop End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: Required Accessories '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: if wholesale allowed, check if customer is also wholesale '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function pcf_WholesaleCustomerAllowed if scorderlevel="1" AND session("customerType")=1 then pcf_WholesaleCustomerAllowed = true Else pcf_WholesaleCustomerAllowed = false End If End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: if wholesale allowed, check if customer is also wholesale '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: Check if out of stock purchase allowed '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function pcf_OutStockPurchaseAllow If (scOutofStockPurchase=-1 AND CLng(pStock)<1 AND pserviceSpec=0 AND pNoStock=0 AND pcv_intBackOrder=0) OR (pserviceSpec<>0 AND scOutofStockPurchase=-1 AND iBTOOutofstockpurchase=-1 AND CLng(pStock)<1 AND pNoStock=0 AND pcv_intBackOrder=0) Then pcf_OutStockPurchaseAllow = false Else pcf_OutStockPurchaseAllow = true End If End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: Check if out of stock purchase allowed '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: QTY Minimums '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function pcf_CheckMinQty(ID) '//Product ID pcv_str_CheckID=ID pcf_CheckMinQty=2 query="SELECT products.pcprod_MinimumQty FROM products WHERE idProduct=" & pcv_str_CheckID & " AND configOnly=0 AND removed=0;" set rsQtyMinimum=server.createobject("adodb.recordset") set rsQtyMinimum=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsQtyMinimum=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if If NOT rsQtyMinimum.eof Then pcv_lngMinimumQty=rsQtyMinimum("pcprod_MinimumQty") if isNull(pcv_lngMinimumQty) OR pcv_lngMinimumQty="" then pcv_lngMinimumQty="0" end if if pcv_lngMinimumQty <> 0 then pcf_CheckMinQty=1 end if Else pcf_CheckMinQty=2 End If set rsQtyMinimum = nothing End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: QTY Minimums '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %> <% Response.Buffer = True call opendb() %> <% ' findProduct function findProduct(pcCartArray, indexCart, pIdProduct) dim f findProduct=Cint(0) if indexCart>0 then for f=1 to indexCart if pcCartArray(f,10)=0 and int(pcCartArray(f,0))=int(pIdProduct) then findProduct=-1 end if next end if set f=nothing end function 'check for oversized product ' findProduct function oversizecheck(pcCartArray, indexCart) dim f if indexCart>0 then oversizecheck="" for f=1 to indexCart If pcCartArray(f,20)="-1" Then 'response.write "" Else if pcCartArray(f,10)=0 and pcCartArray(f,23)<>"NO" then OSArray=split(pcCartArray(f,23),"||") if ubound(OSArray)>3 then for i=1 to pcCartArray(f,2) oversizecheck=oversizecheck&"1|||"&pcCartArray(f,23)&"||"&pcCartArray(f,6)&"||"&pcCartArray(f,3)&"," next end if end if if pcCartArray(f,16)<>"" then '//Get config info query="SELECT stringProducts, stringPrice, stringQuantity FROM configSessions WHERE idconfigSession="&pcCartArray(f,16)&";" set rsBTOChkObj=server.CreateObject("ADODB.RecordSet") set rsBTOChkObj=conntemp.execute(query) pcv_itemString = rsBTOChkObj(0) pcv_itemPrice = rsBTOChkObj(1) pcv_itemQty = rsBTOChkObj(2) pcv_itemStringArry = split(pcv_itemString,",") pcv_itemPriceArry = split(pcv_itemPrice,",") pcv_itemQtyArry = split(pcv_itemQty,",") for iOSChkCnt=lbound(pcv_itemStringArry) to ubound(pcv_itemStringArry)-1 pcv_tempPrdChk = pcv_itemStringArry(iOSChkCnt) query="SELECT weight, oversizeSpec FROM products WHERE idProduct="&pcv_tempPrdChk&";" set rsOSChkObj=server.CreateObject("ADODB.RecordSet") set rsOSChkObj=conntemp.execute(query) pcv_OSChkWeight=rsOSChkObj(0) pcv_OSChkSpec=rsOSChkObj(1) if pcv_OSChkSpec<>"NO" then for i=1 to pcCartArray(f,2) for iICnt=1 to pcv_itemQtyArry(iOSChkCnt) '//oversized, get array oversizecheck=oversizecheck&"2|||"&pcv_OSChkSpec&"||"&pcv_OSChkWeight&"||"&pcv_itemPriceArry(iOSChkCnt)&"," next next end if next end if End If next end if set f=nothing end function 'If Editing an existing order function eoversizecheck(pcOSCheckOrderNumber) dim f query="SELECT ProductsOrdered.quantity, products.OverSizeSpec, products.weight, ProductsOrdered.idOrder FROM ProductsOrdered INNER JOIN products ON ProductsOrdered.idProduct = products.idProduct WHERE (((ProductsOrdered.idOrder)="&pcOSCheckOrderNumber&"));" set rsOSC=server.CreateObject("ADODB.RecordSet") set rsOSC=connTemp.execute(query) eoversizecheck="" do until rsOSC.eof pcOS_Quantity=rsOSC("quantity") pcOS_OverSizeSpec=rsOSC("OverSizeSpec") pcOS_weight=rsOSC("weight") if pcOS_OverSizeSpec<>"NO" then OSArray=split(pcOS_OverSizeSpec,"||") if ubound(OSArray)>3 then for i=1 to pcOS_Quantity eoversizecheck=eoversizecheck&"1|||"&pcOS_OverSizeSpec&"||"&pcOS_weight&"," next end if end if rsOSC.MoveNext loop set rsOSC=nothing set f=nothing end function ' count cart Rows function countCartRows(pcCartArray, indexCart) dim cont, f cont=Cint(0) if indexCart>0 then for f=1 to indexCart if pcCartArray(f,10)=0 then cont=cont+1 end if next else cont=0 end if countCartRows=cont set f=nothing set cont=nothing end function ' Cart Amount function calculateCartTotal(pcCartArray, indexCart) dim f, total 'SB S Dim subInstArr 'SB E total=0 for f=1 to indexCart if pcCartArray(f,10)=0 then 'SB S If Not (len(pcCartArray(f,38))>0) Then pcCartArray(f,38)=0 if pcCartArray(f,38) > 0 then subInstArr = split(getSubInstallVals(pcCartArray(f,38)),",") else subInstArr = split("0,0,0,0",",") end if 'SB E if pcCartArray(f,16)<>"" then 'SB S if subInstArr(2) = "1" Then '// Trial price no discounts total = total + (pcCartArray(f,2) * cdbl(subInstArr(3))) else total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - (pcCartArray(f,15)+pcCartArray(f,30)) +pcCartArray(f,31) end if 'SB E else 'SB S if subInstArr(2) = "1" Then '// Trial price no discounts total = total + (pcCartArray(f,2)* cdbl(subInstArr(3))) else if pcCartArray(f,15)<>"0" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - pcCartArray(f,15) else total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,3)) end if end if 'SB E end if if (pcCartArray(f,27)>"0") AND (pcCartArray(f,28)>"0") then total=total + ( ((ccur(pcCartArray(f,28)) + ccur(pcCartArray(cint(pcCartArray(f,27)),28))) * -1) * pcCartArray(f,2)) end if end if next calculateCartTotal=total set f=nothing set total=nothing end function ' Cart Ship Amount function calculateShipCartTotal(pcCartArray, indexCart) dim f, total total=0 for f=1 to indexCart if pcCartArray(f,10)=0 AND pcCartArray(f,20)=0 then if pcCartArray(f,16)<>"" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - (pcCartArray(f,15)+pcCartArray(f,30)) +pcCartArray(f,31) else if pcCartArray(f,15)<>"0" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - pcCartArray(f,15) else total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,3)) end if end if end if next calculateShipCartTotal=total set f=nothing set total=nothing end function function calculateCategoryDiscounts(pcCartArray, indexCart) Dim TmpProList(100,5) for f=1 to indexCart TmpProList(f,0)=pcCartArray(f,0) TmpProList(f,1)=pcCartArray(f,10) TmpProList(f,3)=pcCartArray(f,2) TmpProList(f,4)=0 if pcCartArray(f,10)=0 then 'Get RowPrice pRowPrice=0 pRowPrice=ccur(pcCartArray(f,2) * pcCartArray(f,17)) pRowPrice=pRowPrice + ccur(pcCartArray(f,2) * pcCartArray(f,5)) if trim(pcCartArray(f,30))<>"" AND trim(pcCartArray(f,30))>"0" then pRowPrice=pRowPrice-pcCartArray(f,30) end if if trim(pcCartArray(f,31))<>"" AND trim(pcCartArray(f,31))>"0" then pRowPrice=pRowPrice+ccur(pcCartArray(f,31)) end if if trim(pcCartArray(f,15))<>"" AND trim(pcCartArray(f,15))>"0" then pRowPrice=pRowPrice-ccur(pcCartArray(f,15)) end if if (pcCartArray(f,27)>0) AND (pcCartArray(f,28)>0) then pRowPrice = ( ccur(pRowPrice) + ccur(TmpProList(cint(pcCartArray(f,27)),2)) ) - ( ( ccur(pcCartArray(f,28)) + ccur(pcCartArray(cint(pcCartArray(f,27)),28) ) ) * pcCartArray(f,2) ) end if TmpProList(f,2)=pRowPrice end if next ' ------------------------------------------------------ ' START - Calculate category-based quantity discounts ' ------------------------------------------------------ CatDiscTotal=0 query="SELECT pcCD_idCategory as IDCat FROM pcCatDiscounts group by pcCD_idCategory" set rsCDObj=server.CreateObject("ADODB.RecordSet") set rsCDObj=conntemp.execute(query) Do While not rsCDObj.eof CatSubQty=0 CatSubTotal=0 CatSubDiscount=0 For f=1 to indexCart if (TmpProList(f,1)=0) and (TmpProList(f,4)=0) then query="select idproduct from categories_products where idcategory=" & rsCDObj("IDCat") & " and idproduct=" & TmpProList(f,0) set rsCDObjtemp=server.CreateObject("ADODB.RecordSet") set rsCDObjtemp=connTemp.execute(query) if not rsCDObjtemp.eof then CatSubQty=CatSubQty+TmpProList(f,3) CatSubTotal=CatSubTotal+TmpProList(f,2) TmpProList(f,4)=1 end if set rsCDObjtemp=nothing end if Next if CatSubQty>0 then query="SELECT pcCD_discountPerUnit,pcCD_discountPerWUnit,pcCD_percentage,pcCD_baseproductonly FROM pcCatDiscounts WHERE pcCD_idCategory=" & rsCDObj("IDCat") & " AND pcCD_quantityFrom<=" &CatSubQty& " AND pcCD_quantityUntil>=" &CatSubQty set rsCDObjtemp=server.CreateObject("ADODB.RecordSet") set rsCDObjtemp=conntemp.execute(query) if not rsCDObjtemp.eof then ' there are quantity discounts defined for that quantity pDiscountPerUnit=rsCDObjtemp("pcCD_discountPerUnit") pDiscountPerWUnit=rsCDObjtemp("pcCD_discountPerWUnit") pPercentage=rsCDObjtemp("pcCD_percentage") pbaseproductonly=rsCDObjtemp("pcCD_baseproductonly") set rsCDObjtemp=nothing if session("customerType")<>1 then 'customer is a normal user if pPercentage="0" then CatSubDiscount=pDiscountPerUnit*CatSubQty else CatSubDiscount=(pDiscountPerUnit/100) * CatSubTotal end if else 'customer is a wholesale customer if pPercentage="0" then CatSubDiscount=pDiscountPerWUnit*CatSubQty else CatSubDiscount=(pDiscountPerWUnit/100) * CatSubTotal end if end if end if end if CatDiscTotal=CatDiscTotal+CatSubDiscount rsCDObj.MoveNext loop set rsCDObj=nothing '// Round the Category Discount to two decimals if CatDiscTotal<>"" and isNumeric(CatDiscTotal) then CatDiscTotal = Round(CatDiscTotal,2) end if ' ------------------------------------------------------ ' END - Calculate category-based quantity discounts ' ------------------------------------------------------ calculateCategoryDiscounts=CatDiscTotal end function Function CheckTaxEpt(pcv_IDPro,pcv_StateCode) Dim rsD,pcArrayD,intCountD,pcv_mc query="SELECT pcTEpt_StateCode FROM pcTaxEpt WHERE pcTEpt_StateCode='" & pcv_StateCode & "' AND ((pcTEpt_ProductList like '" & pcv_IDPro & ",%') OR (pcTEpt_ProductList like '%," & pcv_IDPro & ",%'))" set rsD=connTemp.execute(query) if not rsD.eof then set rsD=nothing CheckTaxEpt=1 Exit Function end if set rsD=nothing query="SELECT idcategory FROM categories_products WHERE idproduct=" & pcv_IDPro & ";" set rsD=connTemp.execute(query) if not rsD.eof then pcArrayD=rsD.getRows() intCountD=ubound(pcArrayD,2) set rsD=nothing For pcv_mc=0 to intCountD query="SELECT pcTEpt_StateCode FROM pcTaxEpt WHERE pcTEpt_StateCode='" & pcv_StateCode & "' AND ((pcTEpt_CategoryList like '" & pcArrayD(0,pcv_mc) & ",%') OR (pcTEpt_CategoryList like '%," & pcArrayD(0,pcv_mc) & ",%'))" set rsD=connTemp.execute(query) if not rsD.eof then set rsD=nothing CheckTaxEpt=1 Exit Function end if Next end if set rsD=nothing End Function Function CheckTaxEptZone(pcv_IDPro,pcv_ZoneRateID) Dim query, rsD,pcArrayD,intCountD,pcv_mc CheckTaxEptZone=0 query="SELECT pcTaxEpt.pcTaxZoneRate_ID FROM pcTaxEpt WHERE pcTaxEpt.pcTaxZoneRate_ID=" & pcv_ZoneRateID & " AND ((pcTEpt_ProductList like '" & pcv_IDPro & ",%') OR (pcTEpt_ProductList like '%," & pcv_IDPro & ",%'))" set rsD=connTemp.execute(query) if not rsD.eof then set rsD=nothing CheckTaxEptZone=1 Exit Function end if set rsD=nothing query="SELECT idcategory FROM categories_products WHERE idproduct=" & pcv_IDPro & ";" set rsD=connTemp.execute(query) if not rsD.eof then pcArrayD=rsD.getRows() intCountD=ubound(pcArrayD,2) set rsD=nothing For pcv_mc=0 to intCountD query="SELECT pcTaxZoneRate_ID FROM pcTaxEpt WHERE pcTaxZoneRate_ID=" & pcv_ZoneRateID & " AND ((pcTEpt_CategoryList like '" & pcArrayD(0,pcv_mc) & ",%') OR (pcTEpt_CategoryList like '%," & pcArrayD(0,pcv_mc) & ",%'))" set rsD=connTemp.execute(query) if not rsD.eof then set rsD=nothing CheckTaxEptZone=1 Exit Function end if Next end if set rsD=nothing End Function function NontaxableItems(tmpIDConfigSession,parentQty) Dim rs,query,i,tmpResult Dim stringProducts,stringValues,stringCategories,Qstring,Pstring,ArrProduct,ArrValue,ArrCategory,ArrQuantity,ArrPrice Dim TempDiscount,TempD1,QFrom,QTo,DUnit,QPercent,DWUnit tmpResult=0 IF tmpIDConfigSession<>"" AND IsNumeric(tmpIDConfigSession) THEN query="SELECT stringProducts, stringValues, stringCategories,stringQuantity, stringPrice FROM configSessions WHERE idconfigSession=" & tmpIDConfigSession set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) if not rs.eof then stringProducts=rs("stringProducts") stringValues=rs("stringValues") stringCategories=rs("stringCategories") Qstring=rs("stringQuantity") Pstring=rs("stringPrice") ArrProduct=Split(stringProducts, ",") ArrValue=Split(stringValues, ",") ArrCategory=Split(stringCategories, ",") ArrQuantity=Split(Qstring,",") ArrPrice=split(Pstring,",") set rs=nothing if ArrProduct(0)="na" then else For i=lbound(ArrProduct) to (UBound(ArrProduct)-1) if ArrProduct(i)<>"" then query="SELECT idproduct FROM Products WHERE idproduct=" & ArrProduct(i) & " AND notax<>0;" set rs=connTemp.execute(query) if not rs.eof then tmpResult=tmpResult+ArrQuantity(i)*ArrPrice(i)*parentQty query="select * from discountsPerQuantity where IDProduct=" & ArrProduct(i) set rs=connTemp.execute(query) TempDiscount=0 do while not rs.eof QFrom=rs("quantityFrom") QTo=rs("quantityUntil") DUnit=rs("discountperUnit") QPercent=rs("percentage") DWUnit=rs("discountperWUnit") if (DWUnit=0) and (DUnit>0) then DWUnit=DUnit end if TempD1=0 if (clng(ArrQuantity(i)*parentQty)>=clng(QFrom)) and (clng(ArrQuantity(i)*parentQty)<=clng(QTo)) then if QPercent="-1" then if session("customerType")=1 then TempD1=ArrQuantity(i)*parentQty*ArrPrice(i)*0.01*DWUnit else TempD1=ArrQuantity(i)*parentQty*ArrPrice(i)*0.01*DUnit end if else if session("customerType")=1 then TempD1=ArrQuantity(i)*parentQty*DWUnit else TempD1=ArrQuantity(i)*parentQty*DUnit end if end if end if TempDiscount=TempDiscount+TempD1 rs.movenext loop set rs=nothing tmpResult=tmpResult-TempDiscount end if set rs=nothing end if Next end if end if set rs=nothing END IF NontaxableItems=tmpResult End function function NontaxableZoneItems(tmpIDConfigSession,parentQty,zoneRateID) Dim rs,query,i,tmpResult Dim stringProducts,stringValues,stringCategories,Qstring,Pstring,ArrProduct,ArrValue,ArrCategory,ArrQuantity,ArrPrice Dim TempDiscount,TempD1,QFrom,QTo,DUnit,QPercent,DWUnit tmpResult=0 IF tmpIDConfigSession<>"" AND IsNumeric(tmpIDConfigSession) THEN query="SELECT stringProducts, stringValues, stringCategories,stringQuantity, stringPrice FROM configSessions WHERE idconfigSession=" & tmpIDConfigSession set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) if not rs.eof then stringProducts=rs("stringProducts") stringValues=rs("stringValues") stringCategories=rs("stringCategories") Qstring=rs("stringQuantity") Pstring=rs("stringPrice") ArrProduct=Split(stringProducts, ",") ArrValue=Split(stringValues, ",") ArrCategory=Split(stringCategories, ",") ArrQuantity=Split(Qstring,",") ArrPrice=split(Pstring,",") set rs=nothing if ArrProduct(0)="na" then else For i=lbound(ArrProduct) to (UBound(ArrProduct)-1) if ArrProduct(i)<>"" then ztest=CheckTaxEptZone(ArrProduct(i),zoneRateID) if ztest=1 then query="SELECT idproduct FROM Products WHERE idproduct=" & ArrProduct(i) else query="SELECT idproduct FROM Products WHERE idproduct=" & ArrProduct(i) & " AND notax<>0;" end if set rs=connTemp.execute(query) if not rs.eof then tmpResult=tmpResult+ArrQuantity(i)*ArrPrice(i)*parentQty query="select * from discountsPerQuantity where IDProduct=" & ArrProduct(i) set rs=connTemp.execute(query) TempDiscount=0 do while not rs.eof QFrom=rs("quantityFrom") QTo=rs("quantityUntil") DUnit=rs("discountperUnit") QPercent=rs("percentage") DWUnit=rs("discountperWUnit") if (DWUnit=0) and (DUnit>0) then DWUnit=DUnit end if TempD1=0 if (clng(ArrQuantity(i)*parentQty)>=clng(QFrom)) and (clng(ArrQuantity(i)*parentQty)<=clng(QTo)) then if QPercent="-1" then if session("customerType")=1 then TempD1=ArrQuantity(i)*parentQty*ArrPrice(i)*0.01*DWUnit else TempD1=ArrQuantity(i)*parentQty*ArrPrice(i)*0.01*DUnit end if else if session("customerType")=1 then TempD1=ArrQuantity(i)*parentQty*DWUnit else TempD1=ArrQuantity(i)*parentQty*DUnit end if end if end if TempDiscount=TempDiscount+TempD1 rs.movenext loop set rs=nothing tmpResult=tmpResult-TempDiscount end if set rs=nothing end if Next end if end if set rs=nothing END IF IF tmpIDConfigSession<>"" AND IsNumeric(tmpIDConfigSession) THEN query="SELECT stringQuantity, stringPrice, stringCProducts, stringCValues, stringCCategories FROM configSessions WHERE idconfigSession=" & tmpIDConfigSession set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) if not rs.eof then stringProducts=rs("stringCProducts") stringValues=rs("stringCValues") stringCategories=rs("stringCCategories") Qstring=rs("stringQuantity") Pstring=rs("stringPrice") ArrProduct=Split(stringProducts, ",") ArrValue=Split(stringValues, ",") ArrCategory=Split(stringCategories, ",") ArrQuantity=Split(Qstring,",") ArrPrice=split(Pstring,",") set rs=nothing if ArrProduct(0)="na" then else For i=lbound(ArrProduct) to (UBound(ArrProduct)-1) if ArrProduct(i)<>"" then ztest=CheckTaxEptZone(ArrProduct(i),zoneRateID) if ztest=1 then query="SELECT idproduct FROM Products WHERE idproduct=" & ArrProduct(i) else query="SELECT idproduct FROM Products WHERE idproduct=" & ArrProduct(i) & " AND notax<>0;" end if set rs=connTemp.execute(query) if not rs.eof then tmpResult=tmpResult+1*ArrValue(i) end if set rs=nothing end if Next end if end if set rs=nothing END IF NontaxableZoneItems=tmpResult End function ' Cart Taxable Amount function calculateTaxableTotal(pcCartArray, indexCart) Dim f, total,pcv_StateCode,pcv_Country,mtest 'SB S Dim subInstArr 'SB E total=0 If trim(pcStrShippingStateCode)<> "" then pcv_StateCode=trim(pcStrShippingStateCode) else If trim(pcStrBillingStateCode)<> "" then pcv_StateCode=trim(pcStrBillingStateCode) End if end if if trim(pcStrShippingCountryCode)<>"" then pcv_Country=trim(pcStrShippingCountryCode) else if trim(pcStrBillingCountryCode)<>"" then pcv_Country=trim(pcStrBillingCountryCode) end if end if for f=1 to indexCart mtest=0 if (pcv_StateCode<>"") and (ucase(pcv_Country)="US") then mtest=CheckTaxEpt(pcCartArray(f,0),pcv_StateCode) end if if (pcCartArray(f,10)=0) AND (pcCartArray(f,19)=0) AND (mtest=0) then 'SB S If Not (len(pcCartArray(f,38))>0) Then pcCartArray(f,38)=0 if pcCartArray(f,38) > 0 then subInstArr = split(getSubInstallVals(pcCartArray(f,38)),",") else subInstArr = split("0,0,0,0",",") end if 'SB E if pcCartArray(f,16)<>"" then 'SB S if subInstArr(2) = "1" Then total = total + (pcCartArray(f,2) * cdbl(subInstArr(3))) - NontaxableItems(pcCartArray(f,16),pcCartArray(f,2)) else total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - (pcCartArray(f,15)+pcCartArray(f,30)) +pcCartArray(f,31) - NontaxableItems(pcCartArray(f,16),pcCartArray(f,2)) end if 'SB E else 'SB S If subInstArr(2) = "1" Then total = total + (pcCartArray(f,2) * cdbl(subInstArr(3))) Else if pcCartArray(f,15)<>"0" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - pcCartArray(f,15) else total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,3)) end if End If 'SB E end if if (pcCartArray(f,27)>0) AND (pcCartArray(f,28)>0) then total=total + ( ((ccur(pcCartArray(f,28)) + ccur(pcCartArray(cint(pcCartArray(f,27)),28))) * -1) * pcCartArray(f,2)) end if end if next calculateTaxableTotal=total set f=nothing set total=nothing end function 'SB S function calculateTaxableTotal_SB(pcCartArray, indexCart) Dim f, total,pcv_StateCode,pcv_Country,mtest total=0 If trim(pcStrShippingStateCode)<> "" then pcv_StateCode=trim(pcStrShippingStateCode) else If trim(pcStrBillingStateCode)<> "" then pcv_StateCode=trim(pcStrBillingStateCode) End if end if if trim(pcStrShippingCountryCode)<>"" then pcv_Country=trim(pcStrShippingCountryCode) else if trim(pcStrBillingCountryCode)<>"" then pcv_Country=trim(pcStrBillingCountryCode) end if end if for f=1 to indexCart mtest=0 if (pcv_StateCode<>"") and (ucase(pcv_Country)="US") then mtest=CheckTaxEpt(pcCartArray(f,0),pcv_StateCode) end if if (pcCartArray(f,10)=0) AND (pcCartArray(f,19)=0) AND (mtest=0) then if pcCartArray(f,16)<>"" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - (pcCartArray(f,15)+pcCartArray(f,30)) +pcCartArray(f,31) - NontaxableItems(pcCartArray(f,16),pcCartArray(f,2)) else if pcCartArray(f,15)<>"0" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - pcCartArray(f,15) else total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,3)) end if end if if (pcCartArray(f,27)>0) AND (pcCartArray(f,28)>0) then total=total + ( ((ccur(pcCartArray(f,28)) + ccur(pcCartArray(cint(pcCartArray(f,27)),28))) * -1) * pcCartArray(f,2)) end if end if next calculateTaxableTotal_SB=total set f=nothing set total=nothing end function 'SB E ' Cart Taxable Amount function calculateTaxableZoneTotal(pcCartArray, indexCart, zoneRateID) Dim f, total,pcv_StateCode,pcv_Country,mtest total=0 If trim(pcStrShippingStateCode)<> "" then pcv_StateCode=trim(pcStrShippingStateCode) else If trim(pcStrBillingStateCode)<> "" then pcv_StateCode=trim(pcStrBillingStateCode) End if end if if trim(pcStrShippingCountryCode)<>"" then pcv_Country=trim(pcStrShippingCountryCode) else if trim(pcStrBillingCountryCode)<>"" then pcv_Country=trim(pcStrBillingCountryCode) end if end if for f=1 to indexCart mtest=0 mtest=CheckTaxEptZone(pcCartArray(f,0),zoneRateID) if (pcCartArray(f,10)=0) AND (pcCartArray(f,19)=0) AND (mtest=0) then if pcCartArray(f,16)<>"" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - (pcCartArray(f,15)+pcCartArray(f,30)) +pcCartArray(f,31) - NontaxableZoneItems(pcCartArray(f,16),pcCartArray(f,2),zoneRateID) else if pcCartArray(f,15)<>"0" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - pcCartArray(f,15) else total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,3)) end if end if if (pcCartArray(f,27)>0) AND (pcCartArray(f,28)>0) then total=total + ( ((ccur(pcCartArray(f,28)) + ccur(pcCartArray(cint(pcCartArray(f,27)),28))) * -1) * pcCartArray(f,2)) end if end if next calculateTaxableZoneTotal=total set f=nothing set total=nothing end function function checkTaxExempt(pcCartArray, indexCart, TaxZoneRateID) Dim f, checkVar, pcv_StateCode, pcv_Country strCheckVar="" If trim(pcStrShippingStateCode)<> "" then pcv_StateCode=trim(pcStrShippingStateCode) else If trim(pcStrBillingStateCode)<> "" then pcv_StateCode=trim(pcStrBillingStateCode) End if end if if trim(pcStrShippingCountryCode)<>"" then pcv_Country=trim(pcStrShippingCountryCode) else if trim(pcStrBillingCountryCode)<>"" then pcv_Country=trim(pcStrBillingCountryCode) end if end if for f=1 to indexCart if pcCartArray(f,10)=0 AND (pcv_StateCode<>"") and (ucase(pcv_Country)="CA") then strCheckVar=strCheckVar&CheckTaxEptZone(pcCartArray(f,0),TaxZoneRateID)&"," end if next if instr(strCheckVar,"1") then if instr(strCheckVar,"0") then checkVar=0 else checkVar=1 end if else checkVar=0 end if checkTaxExempt=checkVar end function ' Cart Weight function calculateCartWeight(pcCartArray, indexCart) dim f, totalWeight totalWeight=0 for f=1 to indexCart if pcCartArray(f,10)=0 then totalWeight=totalWeight + (pcCartArray(f,6)*pcCartArray(f,2)) end if next if cdbl(totalWeight)>0 AND cdbl(totalWeight)<1 then totalWeight=1 end if totalWeight=round(totalWeight,0) calculateCartWeight=totalWeight set f=nothing set totalWeight=nothing end function ' Cart Weight function calculateShipWeight(pcCartArray, indexCart) dim f, totalWeight totalWeight=0 for f=1 to indexCart if pcCartArray(f,10)=0 AND pcCartArray(f,20)=0 then totalWeight=totalWeight + (pcCartArray(f,6)*pcCartArray(f,2)) end if next if cdbl(totalWeight)>0 AND cdbl(totalWeight)<1 then totalWeight=1 end if totalWeight=round(totalWeight,0) calculateShipWeight=totalWeight set f=nothing set totalWeight=nothing end function ' Cart Surcharge function calculateTotalProductSurcharge(pcCartArray, indexCart) dim f, totalSurcharge dim fQty, fSurcharge1, fSurcharge2 totalSurcharge=0 'Create a new temporary array to group like ProductIDs regardless of option Dim SCArray(100,5) G = Cint(0) for f=1 to indexCart if pcCartArray(f,10)=0 then if G>0 then var_update = 0 for h = 0 to G if SCArray(h,0)=pcCartArray(f,0) then SCArray(h,1)=Cint(SCArray(h,1))+Cint(pcCartArray(f,2)) var_update = 1 end if next if var_update = 0 then SCArray(G,0)=pcCartArray(f,0) SCArray(G,1)=pcCartArray(f,2) SCArray(G,2)=pcCartArray(f,36) SCArray(G,3)=pcCartArray(f,37) end if else SCArray(G,0)=pcCartArray(f,0) SCArray(G,1)=pcCartArray(f,2) SCArray(G,2)=pcCartArray(f,36) SCArray(G,3)=pcCartArray(f,37) end if G = G + 1 end if Next for t=0 to G fQty = SCArray(t,1) 'quantity ordered of product fSurcharge1 = SCArray(t,2) 'Initial Surcharge fSurcharge2 = SCArray(t,3) 'Additional Surcharge totalSurcharge=ccur(totalSurcharge) + ccur(SCArray(t,2)) if fQty > 1 AND fSurcharge2>0 then totalSurcharge=ccur(totalSurcharge) + (ccur(SCArray(t,3))*(CLng(fQty)-1)) end if next calculateTotalProductSurcharge=totalSurcharge set f=nothing set totalSurcharge=nothing end function ' Cart Product Quantity function calculateCartQuantity(pcCartArray, indexCart) dim f, totalQuantity totalQuantity=0 for f=1 to indexCart if pcCartArray(f,10)=0 then totalQuantity=totalQuantity + pcCartArray(f,2) end if next calculateCartQuantity=totalQuantity set f=nothing set totalQuantity=nothing end function 'RP ADDON-S ' Cart Points Rewarded Quantity function calculateCartRewards(pcCartArray, indexCart) dim f, totalQuantity totalQuantity = 0 for f=1 to indexCart if pcCartArray(f,10) = 0 then if (pcCartArray(f,22)="") OR IsNull(pcCartArray(f,22)) then pcCartArray(f,22)=0 end if totalQuantity = totalQuantity + (pcCartArray(f,2) * cdbl(pcCartArray(f,22))) 'BTO Additional Charges Reward Points if (pcCartArray(f,29)<>"") and (pcCartArray(f,29)<>"0") then totalQuantity = totalQuantity + pcCartArray(f,29) end if end if next calculateCartRewards = totalQuantity set f = nothing set totalQuantity = nothing end function 'RP ADDON-E ' Cart Product Quantity function calculateCartShipQuantity(pcCartArray, indexCart) dim f, totalShipQuantity totalShipQuantity=0 for f=1 to indexCart if pcCartArray(f,10)=0 AND pcCartArray(f,20)=0 then totalShipQuantity=totalShipQuantity + pcCartArray(f,2) end if next calculateCartShipQuantity=totalShipQuantity set f=nothing set totalShipQuantity=nothing end function ' Check session lost function checkSessionLost(pcCartArray, pcCartIndex) if pcCartIndex="" then ' session is lost, initialize all variables Session.Timeout=25 Session("idCustomer")=Cint(0) Session("language")=Cstr("english") Session("pcCartIndex")=Cint(0) ReDim pcCartArray(50, 18) Session("pcCartSession")=pcCartArray checkSessionLost=1 else checkSessionLost=0 end if end function '//////////////////////////////////////////////////////////////////////////////////////// '// START: VAT CALCULATIONS '//////////////////////////////////////////////////////////////////////////////////////// '// Removes VAT from UnitPrice when purchased outside the European Union. Function pcf_VAT(Price, ProductID) Dim notax If pcv_IsEUMemberState=1 OR pcv_IsEUMemberState=0 Then notax="-1" If not validNum(ProductID) Then ProductID = 0 End If If ProductID<>0 Then '// Product query="SELECT products.notax FROM products WHERE idProduct=" & ProductID & " AND configOnly=0 AND removed=0 " set rsVAT=server.CreateObject("ADODB.RecordSet") set rsVAT=connTemp.execute(query) If NOT rsVAT.eof Then notax=rsVAT("notax") End If set rsVAT=nothing If ptaxVAT="1" AND notax <> "-1" Then if pcv_IsEUMemberState=0 then pcf_VAT=pcf_RemoveVAT(Price, ProductID) Exit Function else pcf_VAT=Price Exit Function end if Else pcf_VAT=Price Exit Function End If Else '// VAT Item - No Product ID If ptaxVAT="1" Then if pcv_IsEUMemberState=0 then pcf_VAT=pcf_RemoveVAT(Price, ProductID) Exit Function else pcf_VAT=Price Exit Function end if Else pcf_VAT=Price Exit Function End If End If Else '// If pcv_IsEUMemberState=1 OR pcv_IsEUMemberState=0 Then pcf_VAT=Price Exit Function End If End Function '// Removes VAT from Price Function pcf_RemoveVAT(Price,ProductID) pcf_RemoveVAT=Price/(1+pcf_VATRate(ptaxVATRate_Code, ProductID)/100) End Function '// Determines the correct VAT from a Product ID Function pcf_VATRate(StateCode,ProductID) If StateCode="0" OR StateCode="" Then pcf_VATRate=ptaxVATrate '// Default Rate Exit Function Else if not validNum(ProductID) then ProductID = 0 if ProductID="" OR ProductID=0 OR isNULL(ProductID)=True then pcf_VATRate=ptaxVATrate '// Default Rate Exit Function else query="SELECT pcProductsVATRates.pcVATRate_ID, pcVATRates.pcVATRate_Rate, pcVATRates.pcVATRate_ID " query=query&"FROM pcProductsVATRates, pcVATRates " query=query&"WHERE pcProductsVATRates.pcVATRate_ID=pcVATRates.pcVATRate_ID AND pcProductsVATRates.idProduct="&ProductID Set rsVAT=Server.CreateObject("ADODB.Recordset") set rsVAT=connTemp.execute(query) if not rsVAT.eof then pcf_VATRate=rsVAT("pcVATRate_Rate") '// Category Rate else pcf_VATRate=ptaxVATrate '// Default Rate end if set rsVAT=nothing Exit Function end if End If End Function '// Determines if a country is apart of the European Union ' 1 = YES ' 0 = NO ' 2 = Not Applicable Function pcf_IsEUMemberState(CountryCode) pcf_IsEUMemberState=2 If (CountryCode<>"" AND isNULL(CountryCode)=False) Then if (UCASE(CountryCode)=UCASE(scCompanyCountry)) AND ptaxVAT="1" then pcf_IsEUMemberState=1 Exit Function end if End If If ptaxVAT="1" AND (CountryCode<>"" AND isNULL(CountryCode)=False) Then query="SELECT pcVATCountries.pcVATCountry_Code From pcVATCountries WHERE pcVATCountries.pcVATCountry_Code='"&UCASE(CountryCode)&"';" set rsVAT=Server.CreateObject("ADODB.Recordset") set rsVAT=connTemp.execute(query) if not rsVAT.eof then pcf_IsEUMemberState=1 else pcf_IsEUMemberState=0 end if set rsVAT=nothing End If End Function ' Cart VAT Total and Remove VAT function calculateNoVATTotal(pcCartArray, indexCart, TotalStandardDiscount, TotalCategoryDiscount) Dim f, total,pcv_StateCode,pcv_Country,mtest total=0 grandtotal=0 If trim(pcStrShippingStateCode)<> "" then pcv_StateCode=trim(pcStrShippingStateCode) else If trim(pcStrBillingStateCode)<> "" then pcv_StateCode=trim(pcStrBillingStateCode) End if end if if trim(pcStrShippingCountryCode)<>"" then pcv_Country=trim(pcStrShippingCountryCode) else if trim(pcStrBillingCountryCode)<>"" then pcv_Country=trim(pcStrBillingCountryCode) end if end if for f=1 to indexCart total=0 mtest=0 if (pcv_StateCode<>"") and (ucase(pcv_Country)="US") then mtest=CheckTaxEpt(pcCartArray(f,0),pcv_StateCode) end if if (pcCartArray(f,10)=0) AND (pcCartArray(f,19)=0) AND (mtest=0) then if pcCartArray(f,16)<>"" then total = pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - (pcCartArray(f,15)+pcCartArray(f,30)) +pcCartArray(f,31) else if pcCartArray(f,15)<>"0" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - pcCartArray(f,15) else total = pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,3)) end if end if if (pcCartArray(f,27)>0) AND (pcCartArray(f,28)>0) then total = ( ((ccur(pcCartArray(f,28)) + ccur(pcCartArray(cint(pcCartArray(f,27)),28))) * -1) * pcCartArray(f,2)) end if end if '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Start: Discount Distribution % '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// This Line Item represents what % of the Total Discount? Proportional_total = RoundTo((total/ApplicableDisountTotal),.01) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// End: Discount Distribution % '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Start: Distribute Discounts based off % above '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Line Item after discount ApplicableDisount_total = (TotalStandardDiscount * Proportional_total) total = (total - ApplicableDisount_total) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// End: Distribute Discounts based off % above '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if pcv_strrApplicableCategories<>"" then pcArray_ApplicableCategories = split(pcv_strrApplicableCategories, ",") for y=0 to ubound(pcArray_ApplicableCategories)-1 '// For Each Category Discount Available pcArray_ApplicableCategory = split(pcArray_ApplicableCategories(y), chr(124)) tmpApplicableCategoryID = pcArray_ApplicableCategory(1) tmpCategorySubTotal = pcArray_ApplicableCategory(0) ApplicableCategoryItem=False 'response.Write("Category: " & tmpApplicableCategoryID & "

") if pcv_strApplicableProducts <> "" then pcArray_ApplicableProducts = split(pcv_strApplicableProducts, ",") for x=0 to ubound(pcArray_ApplicableProducts)-1 '// Loop through all Products pcArray_ApplicableProduct = split(pcArray_ApplicableProducts(x), chr(124)) tmpProductID = pcArray_ApplicableProduct(0) tmpCategoryID = pcArray_ApplicableProduct(1) 'response.Write("Product: " & tmpProductID & " - " & pcCartArray(f,0) & "
") if (tmpProductID = pcCartArray(f,0)) AND (tmpCategoryID = tmpApplicableCategoryID) then '// This Product is Applicable to this Category ApplicableCategoryItem=True 'response.Write("Hit: " & tmpCategorySubTotal & "
") end if next end if '// if pcv_strApplicableProducts <> "" then If ApplicableCategoryItem=True AND tmpCategorySubTotal>0 Then '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Start: Category Distribution % '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// This Line Item represents what % of the Total Category? ProportionalCat_total = RoundTo((total/tmpCategorySubTotal),.01) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// End: Category Distribution % '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Start: Distribute Category based off % above '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Line Item after Category ApplicableCatDisount_total = (TotalCategoryDiscount * ProportionalCat_total) total = (total - ApplicableCatDisount_total) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// End: Distribute Category based off % above '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End If next end if '// if pcv_strrApplicableCategories<>"" then total = pcf_RemoveVAT(total, pcCartArray(f,0)) grandtotal = grandtotal + total next calculateNoVATTotal=grandtotal set f=nothing set total=nothing end function ' Cart VAT Total function calculateVATTotal(pcCartArray, indexCart, TotalStandardDiscount, TotalCategoryDiscount) Dim f, total,pcv_StateCode,pcv_Country,mtest total=0 grandtotal=0 If trim(pcStrShippingStateCode)<> "" then pcv_StateCode=trim(pcStrShippingStateCode) else If trim(pcStrBillingStateCode)<> "" then pcv_StateCode=trim(pcStrBillingStateCode) End if end if if trim(pcStrShippingCountryCode)<>"" then pcv_Country=trim(pcStrShippingCountryCode) else if trim(pcStrBillingCountryCode)<>"" then pcv_Country=trim(pcStrBillingCountryCode) end if end if for f=1 to indexCart total=0 mtest=0 if (pcv_StateCode<>"") and (ucase(pcv_Country)="US") then mtest=CheckTaxEpt(pcCartArray(f,0),pcv_StateCode) end if if (pcCartArray(f,10)=0) AND (pcCartArray(f,19)=0) AND (mtest=0) then if pcCartArray(f,16)<>"" then total = pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - (pcCartArray(f,15)+pcCartArray(f,30)) +pcCartArray(f,31) else if pcCartArray(f,15)<>"0" then total=total + pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,17)) - pcCartArray(f,15) else total = pcCartArray(f,2)*(pcCartArray(f,5)+pcCartArray(f,3)) end if end if if (pcCartArray(f,27)>0) AND (pcCartArray(f,28)>0) then total = ( ((ccur(pcCartArray(f,28)) + ccur(pcCartArray(cint(pcCartArray(f,27)),28))) * -1) * pcCartArray(f,2)) end if end if '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Start: Discount Distribution % '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// This Line Item represents what % of the Total Discount? Proportional_total = RoundTo((total/ApplicableDisountTotal),.01) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// End: Discount Distribution % '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Start: Distribute Discounts based off % above '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Line Item after discount ApplicableDisount_total = (TotalStandardDiscount * Proportional_total) total = (total - ApplicableDisount_total) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// End: Distribute Discounts based off % above '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if pcv_strrApplicableCategories<>"" then pcArray_ApplicableCategories = split(pcv_strrApplicableCategories, ",") for y=0 to ubound(pcArray_ApplicableCategories)-1 '// For Each Category Discount Available pcArray_ApplicableCategory = split(pcArray_ApplicableCategories(y), chr(124)) tmpApplicableCategoryID = pcArray_ApplicableCategory(1) tmpCategorySubTotal = pcArray_ApplicableCategory(0) ApplicableCategoryItem=False 'response.Write("Category: " & tmpApplicableCategoryID & "

") if pcv_strApplicableProducts <> "" then pcArray_ApplicableProducts = split(pcv_strApplicableProducts, ",") for x=0 to ubound(pcArray_ApplicableProducts)-1 '// Loop through all Products pcArray_ApplicableProduct = split(pcArray_ApplicableProducts(x), chr(124)) tmpProductID = pcArray_ApplicableProduct(0) tmpCategoryID = pcArray_ApplicableProduct(1) 'response.Write("Product: " & tmpProductID & " - " & pcCartArray(f,0) & "
") if (tmpProductID = pcCartArray(f,0)) AND (tmpCategoryID = tmpApplicableCategoryID) then '// This Product is Applicable to this Category ApplicableCategoryItem=True 'response.Write("Hit: " & tmpCategorySubTotal & "
") end if next end if '// if pcv_strApplicableProducts <> "" then If ApplicableCategoryItem=True AND tmpCategorySubTotal>0 Then '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Start: Category Distribution % '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// This Line Item represents what % of the Total Category? ProportionalCat_total = RoundTo((total/tmpCategorySubTotal),.01) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// End: Category Distribution % '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Start: Distribute Category based off % above '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// Line Item after Category ApplicableCatDisount_total = (TotalCategoryDiscount * ProportionalCat_total) total = (total - ApplicableCatDisount_total) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '// End: Distribute Category based off % above '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End If next end if '// if pcv_strrApplicableCategories<>"" then grandtotal = grandtotal + total next calculateVATTotal=grandtotal set f=nothing set total=nothing end function '//////////////////////////////////////////////////////////////////////////////////////// '// END: VAT CALCULATIONS '//////////////////////////////////////////////////////////////////////////////////////// '//////////////////////////////////////////////////////////////////////////////////////// '// START: (Re)check stock levels of current cart '//////////////////////////////////////////////////////////////////////////////////////// function checkCartStockLevels(pcCartArray, indexCart, aryBads) Dim intCCSLindex, intCCSLcounter, intCCSLfound Dim strCCSLSQL, strCCSLWarn Dim aryCCSLitems, aryCCSLids Dim objCCSLrs ' Initialize the 'bads' array (an array tied to the index of pcCartArray, indicating which lines are bad) ReDim aryBads(indexCart) ' If cart configuration allows purchasing out-of-stock items, we're all done here If scOutofstockpurchase=0 Then Exit Function ReDim aryCCSLitems(1,0) intCCSLcounter = -1 strCCSLwarn = "" for intCCSLIndex=1 to indexCart intCCSLfound = -1 ' Init to -1 indicating 'not found' if pcCartArray(intCCSLindex,10)=0 then ' If this product has not been deleted from cart, then intCCSLcounter = intCCSLcounter + 1 ReDim preserve aryCCSLitems(1, intCCSLcounter) aryCCSLitems(0,intCCSLcounter) = pcCartArray(intCCSLindex, 0) aryCCSLitems(1,intCCSLcounter) = pcCartArray(intCCSLindex, 2) End If Next ' If there were no viable items found in the cart array (e.g. all were deleted?) then exit now If intCCSLcounter = -1 Then Exit Function ' Unspool/Serialize the idProducts in the array ReDim aryCCSLids(intCCSLcounter) For intCCSLindex=0 to intCCSLcounter aryCCSLids(intCCSLIndex) = aryCCSLitems(0, intCCSLindex) Next strCCSLSQL = "SELECT idproduct, stock, Description, noStock, pcProd_BackOrder FROM products WHERE idproduct in (" & Join(aryCCSLids, ",") & ") and noStock=0 and pcProd_BackOrder=0" Set objCCSLrs = connTemp.execute(strCCSLSQL) If objCCSLrs.eof Then objCCSLrs.close Set objCCSLrs = Nothing Exit Function Else aryCCSLrecs = objCCSLrs.getrows() End If objCCSLrs.close Set objCCSLrs = Nothing ReDim aryBads(UBound(aryCCSLitems,2)) For intCCSLindex=0 to UBound(aryCCSLitems,2) aryBads(intCCSLindex) = 0 ' Flag this line as OK (for now) For intCCSLindex2 = 0 To UBound(aryCCSLrecs, 2) If CLng(aryCCSLitems(0, intCCSLindex)) = CLng(aryCCSLrecs(0, intCCSLindex2)) Then If CLng(aryCCSLitems(1, intCCSLindex)) > CLng(aryCCSLrecs(1, intCCSLindex2)) Then ' Is overstock! strCCSLwarn = strCCSLwarn & ("
  • " & aryCCSLrecs(2, intCCSLindex2) & " (we currently have " & aryCCSLrecs(1, intCCSLindex2) & " in stock)
  • ") aryBads(intCCSLindex) = -1 ' Flag this line as insufficient stock level End If Exit For End If next Next If Len(strCCSLwarn)>0 Then checkCartStockLevels = dictLanguage.Item(Session("language")&"__alert_14") & "
      " & strCCSLwarn & "
    " end function '//////////////////////////////////////////////////////////////////////////////////////// '// START: get customer ID from order ID '//////////////////////////////////////////////////////////////////////////////////////// function getCustIDfromOrder(idOrder) query="SELECT idcustomer FROM orders WHERE idOrder="&idOrder set rsCFO=server.CreateObject("ADODB.RecordSet") set rsCFO=connTemp.execute(query) if rsCFO.eof then getCustIDfromOrder=0 else getCustIDfromOrder=rsCFO("idcustomer") end if set rsCFO=nothing end function '//////////////////////////////////////////////////////////////////////////////////////// '// END: get customer ID from order ID '//////////////////////////////////////////////////////////////////////////////////////// %> <% 'This file is part of ProductCart, an ecommerce application developed and sold by Early Impact LLC. ProductCart, its source code, the ProductCart name and logo are property of Early Impact, LLC. Copyright 2001-2006. All rights reserved. You are not allowed to use, alter, distribute and/or resell any parts of ProductCart's source code without the written consent of Early Impact. To contact Early Impact, please visit www.earlyimpact.com. '******************************* ' Check if store is ON or OFF '******************************* If scStoreOff="1" then response.redirect "msg.asp?message=83" End If Function SEOcheckAff() Dim tmpStr1,tmpStr2,k,tmp1 tmp1=Cint(1) if session("strSEOAffiliate")<>"" then if IsNumeric(session("strSEOAffiliate")) then tmp1=session("strSEOAffiliate") end if end if SEOcheckAff=tmp1 End Function '******************************* ' START ProductCart Session '******************************* HaveNewSession=0 if session("idcustomer")="" then Dim pcv_intFlagNoLocal pcv_intFlagNoLocal=Cint(0) session("idPCStore")= scID session("idCustomer")=Cint(0) session("customerCategory")=Cint(0) session("customerType")=Cint(0) session("ATBCustomer")= Cint(0) session("ATBPercentOff")= Cint(0) session("idAffiliate")=SEOcheckAff() session("language")=Cstr("english") session("pcCartIndex")=Cint(0) dim pcCartArrayORG(100,45) session("pcCartSession")=pcCartArrayORG HaveNewSession=1 end if if session("idPCStore")<>scID then session.Abandon() session("idPCStore")= scID session("idCustomer")=Cint(0) session("customerCategory")=Cint(0) session("customerType")=Cint(0) session("ATBCustomer")= Cint(0) session("ATBPercentOff")= Cint(0) session("idAffiliate")=SEOcheckAff() session("language")=Cstr("english") session("pcCartIndex")=Cint(0) redim pcCartArrayORG(100,45) session("pcCartSession")=pcCartArrayORG HaveNewSession=1 end if pcCartArray=session("pcCartSession") '******************************* ' END ProductCart Session '******************************* %> <%'// Affiliate Program Settings // private const scAffProgramActive = "1" private const scAffAutoApprove = "0" private const scAffDefaultCom = "0" private const scSaveAffiliate = "1" private const scSaveAffiliateDays = "90" private const scAllowedAffOrders = "5" private const scExcludeWholesaleAff = "0" '// Affiliate Program Settings // %> <% '******************************* ' AFFILIATE - START '******************************* dim pcInt_IdAffiliate, pcv_SavedAffiliateID dim pcInt_UseAffiliate, pcv_AffiliateCookiePath session("pcInt_AllowedAffOrders")=scAllowedAffOrders IF scAffProgramActive="1" THEN '// Check for previously stored affiliate ID IF session("idAffiliate")=1 THEN pcv_SavedAffiliateID=getUserInput(Request.Cookies("SavedAffiliateID"),0) If validNum(pcv_SavedAffiliateID) then pcInt_IdAffiliate=pcv_SavedAffiliateID Else pcInt_IdAffiliate=1 End If session("idAffiliate")=trim(pcInt_IdAffiliate) '// If none, check querystring If session("idAffiliate")=1 then pcInt_IdAffiliate = request.querystring("idAffiliate") if validNum(pcInt_IdAffiliate) then session("idAffiliate")=pcInt_IdAffiliate else session("idAffiliate")=1 end if End if END IF '// Set cookie with Affiliate ID, if feature is active If scSaveAffiliate="1" and session("idAffiliate")<>1 Then Response.Cookies("SavedAffiliateID")=session("idAffiliate") pcInt_SaveAffiliateDays=Cint(scSaveAffiliateDays) if NOT validNum(pcInt_SaveAffiliateDays) then pcInt_SaveAffiliateDays=365 end if Response.Cookies("SavedAffiliateID").Expires=Date() + pcInt_SaveAffiliateDays end if END IF '******************************* ' AFFILIATE - END '******************************* '******************************* ' set Reward Points - referral '******************************* Dim pcvIntRefBy pcvIntRefBy=getUserInput(request("refby"),10) if not validNum(pcvIntRefBy) then pcvIntRefBy="" If Session("ContinueRef")="" then If RewardsActive=1 then If (pcvIntRefBy <> "") And (RewardsReferral=1) Then Session("ContinueRef")=CLng(pcvIntRefBy) End If End if End if IF HaveNewSession=1 THEN%> <%iAddDefaultWPrice1=0 iAddDefaultPrice1=0 pBtoBPrice1=0 pPrice1=0 Public Function CheckPrdPrices(tmpIDBTO,tmpIDPrd,tmpPrdPrice,tmpPrdWPrice,custType) Dim intCC_BTO_Pricing,query,rsCCObj,pcCC_BTO_Price Dim prdPrice,prdBtoBPrice prdPrice=tmpPrdPrice prdBtoBPrice=tmpPrdWPrice if prdBtoBPrice=0 then prdBtoBPrice=prdPrice end if intCC_BTO_Pricing=0 if session("customercategory")<>0 then query="SELECT pcCC_BTO_Price FROM pcCC_BTO_Pricing WHERE idcustomerCategory=" & session("customercategory") & " AND idBTOItem=" & tmpIDPrd & " AND idBTOProduct=" & tmpIDBTO & ";" set rsCCObj=server.CreateObject("ADODB.RecordSet") set rsCCObj=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsCCObj=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if NOT rsCCObj.eof then intCC_BTO_Pricing=1 pcCC_BTO_Price=rsCCObj("pcCC_BTO_Price") else query="SELECT pcCC_Pricing.pcCC_Price FROM pcCC_Pricing WHERE pcCC_Pricing.idcustomerCategory=" & session("customercategory") &" AND pcCC_Pricing.idProduct=" & tmpIDPrd & ";" set rsCCObj=server.CreateObject("ADODB.RecordSet") set rsCCObj=conntemp.execute(query) if NOT rsCCObj.eof then intCC_BTO_Pricing=1 pcCC_BTO_Price=rsCCObj("pcCC_Price") end if end if set rsCCObj=nothing end if 'customer logged in as ATB customer based on retail price if session("ATBCustomer")=1 AND session("ATBPercentOff")=0 then prdPrice=Cdbl(prdPrice)-(pcf_Round(Cdbl(prdPrice)*(cdbl(session("ATBPercentage"))/100),2)) end if 'customer logged in as ATB customer based on wholesale price if session("ATBCustomer")=1 AND session("ATBPercentOff")=1 then prdBtoBPrice=Cdbl(prdBtoBPrice)-(pcf_Round(Cdbl(prdBtoBPrice)*(cdbl(session("ATBPercentage"))/100),2)) prdPrice=Cdbl(prdBtoBPrice) end if 'customer logged in as a wholesale customer if prdBtoBPrice>0 and custType=1 and session("ATBCustomer")<>1 then prdPrice=Cdbl(prdBtoBPrice) end if 'customer logged in as a customer type with price different then the online price if intCC_BTO_Pricing=1 then 'if cdbl(pcCC_BTO_Price)>0 then prdPrice=Cdbl(pcCC_BTO_Price) 'end if end if CheckPrdPrices=prdPrice End Function Public Function CheckParentPrices(tmpIDBTO,tmpPrdPrice,tmpPrdWPrice,custType) Dim intCC_BTO_Pricing,query,rsCCObj,pcCC_BTO_Price Dim prdPrice,prdBtoBPrice prdPrice=tmpPrdPrice prdBtoBPrice=tmpPrdWPrice if prdBtoBPrice=0 then prdBtoBPrice=prdPrice end if intCC_BTO_Pricing=0 if session("customercategory")<>0 then query="SELECT pcCC_Price FROM pcCC_Pricing WHERE idcustomerCategory=" & session("customercategory") & " AND idProduct=" & tmpIDBTO & ";" set rsCCObj=server.CreateObject("ADODB.RecordSet") set rsCCObj=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsCCObj=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if NOT rsCCObj.eof then intCC_BTO_Pricing=1 pcCC_BTO_Price=rsCCObj("pcCC_Price") pcCC_BTO_Price=pcf_Round(pcCC_BTO_Price, 2) end if set rsCCObj=nothing end if 'customer logged in as ATB customer based on retail price if session("ATBCustomer")=1 AND session("ATBPercentOff")=0 then prdPrice=Cdbl(prdPrice)-(pcf_Round(Cdbl(prdPrice)*(cdbl(session("ATBPercentage"))/100),2)) end if 'customer logged in as ATB customer based on wholesale price if session("ATBCustomer")=1 AND session("ATBPercentOff")=1 then prdBtoBPrice=Cdbl(prdBtoBPrice)-(pcf_Round(Cdbl(prdBtoBPrice)*(cdbl(session("ATBPercentage"))/100),2)) prdPrice=Cdbl(prdBtoBPrice) end if 'customer logged in as a wholesale customer if prdBtoBPrice>0 and custType=1 and session("ATBCustomer")<>1 then prdPrice=Cdbl(prdBtoBPrice) end if 'customer logged in as a customer type with price different then the online price if intCC_BTO_Pricing=1 then 'if cdbl(pcCC_BTO_Price)>0 then prdPrice=Cdbl(pcCC_BTO_Price) 'end if end if CheckParentPrices=prdPrice End Function Public Function GetDefaultPrice(pIdProduct,tempVarCat) Dim query,rsTempObj,dblprice,dblWprice,intCC_BTO_Pricing,rsCCObj,pcCC_BTO_Price,tmpItemID '***** GET DEFAULT PRICE OF THE CAT query="SELECT configSpec_products.configProduct,configSpec_products.price, configSpec_products.Wprice, configSpec_products.cdefault FROM configSpec_products WHERE configSpec_products.configProductCategory="&tempVarCat&" AND configSpec_products.specProduct="&pIdProduct&" AND configSpec_products.cdefault<>0;" set rsTempObj=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsTempObj=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if pcv_strRunCCSection=0 If NOT rsTempObj.eof then tmpItemID=rsTempObj("configProduct") dblprice=Cdbl(rsTempObj("price")) dblWprice=Cdbl(rsTempObj("Wprice")) pcv_strRunCCSection=1 end if Set rsTempObj=nothing If pcv_strRunCCSection=1 Then if dblWprice=0 then dblWprice=dblprice end if intCC_BTO_Pricing=0 if session("customercategory")<>0 then query="SELECT pcCC_BTO_Price FROM pcCC_BTO_Pricing WHERE idcustomerCategory=" & session("customercategory") & " AND idBTOItem=" & tmpItemID & " AND idBTOProduct=" & pIdProduct & ";" set rsCCObj=server.CreateObject("ADODB.RecordSet") set rsCCObj=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsCCObj=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if NOT rsCCObj.eof then intCC_BTO_Pricing=1 pcCC_BTO_Price=rsCCObj("pcCC_BTO_Price") end if set rsCCObj=nothing if NOT intCC_BTO_Pricing=1 then query="SELECT pcCC_Pricing.pcCC_Price FROM pcCC_Pricing WHERE pcCC_Pricing.idcustomerCategory=" & session("customercategory") &" AND pcCC_Pricing.idProduct=" & tmpItemID & ";" set rsCCObj=server.CreateObject("ADODB.RecordSet") set rsCCObj=conntemp.execute(query) if NOT rsCCObj.eof then intCC_BTO_Pricing=1 pcCC_BTO_Price=rsCCObj("pcCC_Price") end if set rsCCObj=nothing end if end if 'customer logged in as ATB customer based on retail price if session("ATBCustomer")=1 AND session("ATBPercentOff")=0 then dblprice=Cdbl(dblprice)-(pcf_Round(Cdbl(dblprice)*(cdbl(session("ATBPercentage"))/100),2)) end if defaultPrice= Cdbl(dblprice) 'customer logged in as ATB customer based on wholesale price if session("ATBCustomer")=1 AND session("ATBPercentOff")=1 then dblWprice=Cdbl(dblWprice)-(pcf_Round(Cdbl(dblWprice)*(cdbl(session("ATBPercentage"))/100),2)) defaultPrice=Cdbl(dblWprice) end if 'customer logged in as a wholesale customer if dblWprice>0 and session("customerType")=1 then defaultPrice=Cdbl(dblWprice) end if 'customer logged in as a customer type with price different then the online price if intCC_BTO_Pricing=1 then 'if pcCC_BTO_Price>0 then defaultPrice=Cdbl(pcCC_BTO_Price) 'end if end if End If '***** END OF GET DEFAULT PRICE OF THE CAT GetDefaultPrice=defaultPrice End Function Public Function GetCDefaultPrice(pIdProduct,tempVarCat) Dim query,rsTempObj,dblprice,dblWprice,intCC_BTO_Pricing,rsCCObj,pcCC_BTO_Price,tmpItemID '***** GET DEFAULT PRICE OF THE CAT query="SELECT configSpec_Charges.configProduct,configSpec_Charges.price, configSpec_Charges.Wprice, configSpec_Charges.cdefault FROM configSpec_Charges WHERE configSpec_Charges.configProductCategory="&tempVarCat&" AND configSpec_Charges.specProduct="&pIdProduct&" AND configSpec_Charges.multiSelect=0 AND configSpec_Charges.cdefault=-1;" set rsTempObj=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsTempObj=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if pcv_strRunCCSection=0 If NOT rsTempObj.eof then tmpItemID=rsTempObj("configProduct") dblprice=Cdbl(rsTempObj("price")) dblWprice=Cdbl(rsTempObj("Wprice")) pcv_strRunCCSection=1 End If Set rsTempObj = nothing If pcv_strRunCCSection=1 Then if dblWprice=0 then dblWprice=dblprice end if intCC_BTO_Pricing=0 if session("customercategory")<>0 then query="SELECT pcCC_BTO_Price FROM pcCC_BTO_Pricing WHERE idcustomerCategory=" & session("customercategory") & " AND idBTOItem=" & tmpItemID & " AND idBTOProduct=" & pIdProduct & ";" set rsCCObj=server.CreateObject("ADODB.RecordSet") set rsCCObj=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsCCObj=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if NOT rsCCObj.eof then intCC_BTO_Pricing=1 pcCC_BTO_Price=rsCCObj("pcCC_BTO_Price") end if set rsCCObj=nothing If NOT intCC_BTO_Pricing=1 Then query="SELECT pcCC_Pricing.pcCC_Price FROM pcCC_Pricing WHERE pcCC_Pricing.idcustomerCategory=" & session("customercategory") &" AND pcCC_Pricing.idProduct=" & tmpItemID & ";" set rsCCObj=server.CreateObject("ADODB.RecordSet") set rsCCObj=conntemp.execute(query) if NOT rsCCObj.eof then intCC_BTO_Pricing=1 pcCC_BTO_Price=rsCCObj("pcCC_Price") end if set rsCCObj=nothing End If end if 'customer logged in as ATB customer based on retail price if session("ATBCustomer")=1 AND session("ATBPercentOff")=0 then dblprice=Cdbl(dblprice)-(pcf_Round(Cdbl(dblprice)*(cdbl(session("ATBPercentage"))/100),2)) end if defaultPrice= Cdbl(dblprice) 'customer logged in as ATB customer based on wholesale price if session("ATBCustomer")=1 AND session("ATBPercentOff")=1 then dblWprice=Cdbl(dblWprice)-(pcf_Round(Cdbl(dblWprice)*(cdbl(session("ATBPercentage"))/100),2)) defaultPrice=Cdbl(dblWprice) end if 'customer logged in as a wholesale customer if dblWprice>0 and session("customerType")=1 then defaultPrice=Cdbl(dblWprice) end if 'customer logged in as a customer type with price different then the online price if intCC_BTO_Pricing=1 then 'if pcCC_BTO_Price>0 then defaultPrice=Cdbl(pcCC_BTO_Price) 'end if end if End If '***** END OF GET DEFAULT PRICE OF THE CAT GetCDefaultPrice=defaultPrice End Function '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: Show BTO Default Configuration '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Sub pcs_GetBTOConfigPrices(pCnt,dtype) Dim query,rs query="SELECT categories.categoryDesc, products.description, products.iRewardPoints,configSpec_products.configProductCategory, configSpec_products.price, configSpec_products.Wprice, categories_products.idCategory, categories_products.idProduct, products.weight FROM categories, products, categories_products INNER JOIN configSpec_products ON categories_products.idCategory=configSpec_products.configProductCategory WHERE (((configSpec_products.specProduct)="&pIdProduct&") AND ((configSpec_products.configProduct)=[categories_products].[idproduct]) AND ((categories_products.idCategory)=[categories].[idcategory]) AND ((categories_products.idProduct)=[products].[idproduct]) AND ((configSpec_products.cdefault)<>0)) ORDER BY configSpec_products.catSort, categories.idCategory, configSpec_products.prdSort;" set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if iAddDefaultPrice=Cdbl(0) iAddDefaultWPrice=Cdbl(0) iAddDefaultPrice1=Cdbl(0) iAddDefaultWPrice1=Cdbl(0) if NOT rs.eof then Dim FirstCnt FirstCnt=0 do until rs.eof FirstCnt=FirstCnt+1 strCategoryDesc=rs("categoryDesc") strDescription=rs("description") intReward=rs("iRewardPoints") if (intReward<>"") and (intReward<>"0") then else intReward=0 end if pcv_BTORP=pcv_BTORP+clng(intReward) strConfigProductCategory=rs("configProductCategory") dblPrice=rs("price") dblWPrice=rs("Wprice") intIdCategory=rs("idCategory") intIdProduct=rs("idProduct") intWeight=rs("weight") dblPrice1=CheckPrdPrices(pIdProduct,intIdProduct,dblPrice,dblWPrice,0) dblWPrice1=CheckPrdPrices(pIdProduct,intIdProduct,dblPrice,dblWPrice,1) ItemPrice=0 if Session("CustomerType")=1 then if (dblWPrice<>0) then ItemPrice=dblWPrice1 else ItemPrice=dblPrice1 end if else ItemPrice=dblPrice1 end if if dtype = "m" then response.write "" response.write "" end if rs.moveNext loop if dtype = "m" then response.write "" end if end if set rs=nothing End Sub '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: Show BTO Default Configuration '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function ChkMultiSelectDef(pIdProduct,tempVarCat,itemID) Dim query,rs query="SELECT configSpec_products.configProduct FROM configSpec_products WHERE configSpec_products.configProduct=" & itemID & " AND configSpec_products.configProductCategory="&tempVarCat&" AND configSpec_products.specProduct="&pIdProduct&" AND configSpec_products.multiSelect<>0;" set rs=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if If rs.eof then ChkMultiSelectDef=2 set rs=nothing exit function end if Set rs=nothing query="SELECT configSpec_products.configProduct FROM configSpec_products WHERE configSpec_products.configProduct=" & itemID & " AND configSpec_products.configProductCategory="&tempVarCat&" AND configSpec_products.specProduct="&pIdProduct&" AND configSpec_products.cdefault<>0 AND configSpec_products.multiSelect<>0;" set rs=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if If not rs.eof then ChkMultiSelectDef=0 else ChkMultiSelectDef=1 end if Set rs=nothing End Function Public Function GetDefaultQty(pIdProduct,tempVarCat) Dim query,rs,tmp1 query="SELECT products.pcprod_minimumqty FROM products INNER JOIN configSpec_products ON products.idproduct=configSpec_products.configProduct WHERE configSpec_products.configProductCategory="&tempVarCat&" AND configSpec_products.specProduct="&pIdProduct&" AND configSpec_products.cdefault<>0;" set rs=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if tmp1=1 if not rs.eof then tmp1=rs("pcprod_minimumqty") if IsNull(tmp1) or tmp1="" then tmp1=1 end if if tmp1="0" then tmp1=1 end if end if set rs=nothing GetDefaultQty=tmp1 End Function Public Function GetItemDefaultQty(pIdProduct) Dim query,rs,tmp1 query="SELECT products.pcprod_minimumqty FROM products WHERE products.idproduct="&pIdProduct&";" set rs=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if tmp1=1 if not rs.eof then tmp1=rs("pcprod_minimumqty") if IsNull(tmp1) or tmp1="" then tmp1=1 end if if tmp1="0" then tmp1=1 end if end if set rs=nothing GetItemDefaultQty=tmp1 End Function Public Function NotForSaleOverride(pcvIntCustCategory) Dim query,rsNFSO,tmpNFSO,tmpIntCustCategory tmpIntCustCategory=pcvIntCustCategory if validNum(tmpIntCustCategory) and tmpIntCustCategory>0 then query="SELECT pcCC_NFSoverride FROM pcCustomerCategories WHERE idCustomerCategory=" & tmpIntCustCategory set rsNFSO=Server.CreateObject("ADODB.Recordset") set rsNFSO=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rsNFSO=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if rsNFSO.eof then tmpNFSO=0 else tmpNFSO=rsNFSO("pcCC_NFSoverride") if IsNull(tmpNFSO) or tmpNFSO="" or tmpNFSO="0" then tmpNFSO=0 else tmpNFSO=1 end if end if set rsNFSO=nothing else tmpNFSO=0 end if NotForSaleOverride=tmpNFSO End Function %> <% pcCartIndex=Session("pcCartIndex") if IsNull(pcCartIndex) then pcCartArray=Session("pcCartSession") end if ppcCartIndex=Session("pcCartIndex") HasSavedCart=0 HasSavedPrds=0 IDSC=0 tmpGUID=getUserInput(Request.Cookies("SavedCartGUID"),0) if session("IDCustomer")<>"" AND session("IDCustomer")<>"0" then tmpIDCust=session("IDCustomer") else tmpIDCust=0 end if call opendb() query="SELECT IDCustomer FROM pcSavedCarts WHERE SavedCartGUID like '" & tmpGUID & "';" set rsQ=connTemp.execute(query) if not rsQ.eof then if clng(tmpIDCust)<>clng(rsQ("IDCustomer")) then tmpGUID="" end if end if set rsQ=nothing call closedb() '// Check if this feature is disabled if (scRestoreCart=0 or isNull(scRestoreCart) or scRestoreCart="") AND (HaveToRestore<>"yes") then tmpGUID="" end if '// v4.5: Disable feature if Admin Order if session("pcAdminOrder")=1 then tmpGUID="" end if IF tmpGUID<>"" THEN connTemp="" call opendb() if session("IDCustomer")<>"" AND session("IDCustomer")<>"0" then tmpIDCust=session("IDCustomer") else tmpIDCust=0 end if query="SELECT SavedCartID FROM pcSavedCarts WHERE SavedCartGUID like '" & tmpGUID & "';" set rsQ=connTemp.execute(query) if not rsQ.eof then IDSC=rsQ("SavedCartID") query="SELECT SCArray0, SCArray1, SCArray2, SCArray3, SCArray4, SCArray5, SCArray6, SCArray7, SCArray8, SCArray9, SCArray10, SCArray11, SCArray12, SCArray13, SCArray14, SCArray15, SCArray16, SCArray17, SCArray18, SCArray19, SCArray20, SCArray21, SCArray22, SCArray23, SCArray24, SCArray25, SCArray26,SCArray27, SCArray28, SCArray29,SCArray30, SCArray31, SCArray32,SCArray33, SCArray34, SCArray35, SCArray36, SCArray37, SCArray38, SCArray39, SCArray40, SCArray41, SCArray42, SCArray43, SCArray44, SCArray45 FROM pcSavedCartArray WHERE SavedCartID=" & IDSC & ";" set rsQ=connTemp.execute(query) if not rsQ.eof then tmpCartArr=rsQ.getRows() set rsQ=nothing tmpIntCount=ubound(tmpCartArr,2) HasSavedCart=1 else query="DELETE FROM pcSavedCarts WHERE SavedCartID=" & IDSC & ";" set rsQ=connTemp.execute(query) set rsQ=nothing Response.Cookies("SavedCartGUID")="" end if set rsQ=nothing else Response.Cookies("SavedCartGUID")="" end if set rsQ=nothing IF HasSavedCart=1 THEN For k=0 to tmpIntCount tmpPrdID=tmpCartArr(0,k) pquantity=tmpCartArr(2,k) pcv_OrdHaveOutStock=0 '// START v4.1 - Not For Sale override if NotForSaleOverride(session("customerCategory"))=1 then queryNFSO="" else queryNFSO=" AND products.formQuantity=0" end if '// END v4.1 query="SELECT products.serviceSpec,products.stock,products.noStock,products.pcprod_minimumqty,products.pcprod_qtyvalidate,products.pcProd_BackOrder FROM Products WHERE products.idproduct=" & tmpPrdID & " AND products.removed=0 AND products.active<>0" & queryNFSO & ";" set rsQ=connTemp.execute(query) IF not rsQ.eof THEN pserviceSpec=rsQ("serviceSpec") pStock=rsQ("stock") pNoStock=rsQ("noStock") pcv_minqty=rsQ("pcprod_minimumqty") pcv_qtyvalid=rsQ("pcprod_qtyvalidate") pcv_BackOrder=rsQ("pcProd_BackOrder") set rsQ=nothing if PStockpcv_minqty) then pcv_minqty1=pcv_minqty if pcv_minqty1=0 then pcv_minqty1=1 end if pStock=Fix(pStock/pcv_minqty1)*pcv_minqty1 end if end if IF (scOutofStockPurchase=-1 AND CLng(pStock)<1 AND pserviceSpec=0 AND pNoStock=0 AND pcv_BackOrder=0) OR (pserviceSpec<>0 AND scOutofStockPurchase=-1 AND iBTOOutofstockpurchase=-1 AND CLng(pStock)<1 AND pNoStock=0 AND pcv_BackOrder=0) THEN pcv_OrdHaveOutStock=1 END IF if pcv_OrdHaveOutStock=0 then if pStock=0 then if pcv_minqty>"0" then PStock=pcv_minqty else pStock=1 end if end if IF (scOutofStockPurchase=-1 AND pserviceSpec=0 AND pNoStock=0 AND pcv_BackOrder=0) OR (pserviceSpec<>0 AND scOutofStockPurchase=-1 AND iBTOOutofstockpurchase=-1 AND pNoStock=0 AND pcv_BackOrder=0) THEN if pStock <% '// Double-check customer category assignment If Session("idCustomer") <> 0 AND Session("idCustomer") <> "" Then query="SELECT idcustomerCategory FROM customers WHERE idcustomer="&session("idCustomer")&";" SET rs=Server.CreateObject("ADODB.RecordSet") SET rs=conntemp.execute(query) if NOT rs.eof then Session("customerCategory") = rs(0) set rs=nothing End IF '// Get customer category type to add to session and to update cart if NOT isNULL(session("customerCategory")) and session("customerCategory")<>"" and session("customerCategory")<>0 then query="SELECT pcCC_Name, pcCC_Description, pcCC_CategoryType, pcCC_ATB_Percentage, pcCC_ATB_Off FROM pcCustomerCategories WHERE idcustomerCategory="&session("customerCategory")&";" SET rs=Server.CreateObject("ADODB.RecordSet") SET rs=conntemp.execute(query) if NOT rs.eof then strpcCC_Name=rs("pcCC_Name") session("customerCategoryDesc")=strpcCC_Name strpcCC_Description=rs("pcCC_Description") session("customerCategoryType")=rs("pcCC_CategoryType") if session("customerCategoryType")="ATB" then session("ATBCustomer")=1 session("ATBPercentage")=rs("pcCC_ATB_Percentage") intpcCC_ATB_Off=rs("pcCC_ATB_Off") if intpcCC_ATB_Off="Retail" then session("ATBPercentOff")=0 else session("ATBPercentOff")=1 end if else session("ATBCustomer")=0 session("ATBPercentage")=0 session("ATBPercentOff")=0 end if end if set rs=nothing else session("customerCategory")=0 session("ATBCustomer")=0 session("ATBPercentage")=0 session("ATBPercentOff")=0 end if 'update cart for wholesale customer, if wholesale customer did not exist til now If (NeedReCalculate=1 OR Session("customerType")=1 OR session("customerCategory")<>0) AND pcCartArray(1,18)=0 Then '---start recalculations for t=1 to ppcCartIndex 'Start Loop if pcCartArray(t,10)=0 then 'if product not remove pcCartArray(t,18)=1 ' check discounts per quantity and recalculates the price pSIdProduct=pcCartArray(t,0) pTotalQuantity=pcCartArray(t,2) 'Check if this customer is logged in with a customer category if session("customerCategory")<>0 then query="SELECT idCC_Price, pcCC_Price FROM pcCC_Pricing WHERE idcustomerCategory="&session("customerCategory")&" AND idProduct="&pSIdProduct&";" set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) if NOT rs.eof then idCC_Price=rs("idCC_Price") dblpcCC_Price=rs("pcCC_Price") dblpcCC_Price=pcf_Round(dblpcCC_Price, 2) 'if dblpcCC_Price>0 then strcustomerCategory="YES" 'else ' strcustomerCategory="NO" 'end if else strcustomerCategory="NO" end if set rs=nothing end if if pSIdProduct<>"" then 'if product id exists 'Check if product is a BTO product, if so, do not recalculate total query="SELECT serviceSpec FROM products WHERE idProduct=" &pSIdProduct set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) tserviceSpec=rstemp("serviceSpec") set rstemp=nothing IF tserviceSpec=false THEN 'recalculate for wholesale customer '==================== ' get original price '==================== query="SELECT price, bToBPrice FROM products WHERE idProduct=" &pSIdProduct set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if rstemp.eof then set rstemp=nothing call closeDb() response.redirect "msg.asp?message=41" end if tempbToBPrice=rstemp("bToBPrice") tempprice=rstemp("price") if (tempbToBPrice<>0) then tempBPrice=tempbToBPrice else tempBPrice=tempprice end if if session("customerType")=1 then pPrice=tempBPrice else pPrice=tempprice end if if session("customerCategoryType")="ATB" then if session("ATBCustomer")=1 AND session("ATBPercentOff")=1 then tempBPrice=tempBPrice-(pcf_Round(tempBPrice*(cdbl(session("ATBPercentage"))/100),2)) pPrice=tempBPrice end if if session("ATBCustomer")=1 AND session("ATBPercentOff")=0 then tempprice=tempprice-(pcf_Round(tempprice*(cdbl(session("ATBPercentage"))/100),2)) pPrice=tempprice end if end if if strcustomerCategory="YES" then pPrice=dblpcCC_Price end if pcCartArray(t,3)=pPrice '***** '************************************************************************** ' START: GET OPTIONS '****************************************************************************** '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: Get the Options for the item '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcv_strSelectedOptions = pcCartArray(t,11) pcArray_SelectedOptions = Split(pcv_strSelectedOptions,chr(124)) pcv_strOptionsArray = "" pcv_strOptionsPriceArray = "" pcv_strOptionsPriceArrayCur = "" pcv_strOptionsPriceTotal = 0 xOptionsArrayCount = 0 For cCounter = LBound(pcArray_SelectedOptions) TO UBound(pcArray_SelectedOptions) ' SELECT DATA SET ' TABLES: optionsGroups, options, options_optionsGroups query = "SELECT optionsGroups.optionGroupDesc, options.optionDescrip, options_optionsGroups.price, options_optionsGroups.Wprice " query = query & "FROM optionsGroups, options, options_optionsGroups " query = query & "WHERE idoptoptgrp=" & pcArray_SelectedOptions(cCounter) & " " query = query & "AND options_optionsGroups.idOption=options.idoption " query = query & "AND options_optionsGroups.idOptionGroup=optionsGroups.idoptiongroup " set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if Not rs.eof then xOptionsArrayCount = xOptionsArrayCount + 1 pOptionDescrip="" pOptionGroupDesc="" pPriceToAdd="" pOptionDescrip=rs("optiondescrip") pOptionGroupDesc=rs("optionGroupDesc") If Session("customerType")=1 Then pPriceToAdd=rs("Wprice") If rs("Wprice")=0 then pPriceToAdd=rs("price") End If Else pPriceToAdd=rs("price") End If '// Generate Our Strings if xOptionsArrayCount > 1 then pcv_strOptionsArray = pcv_strOptionsArray & chr(124) pcv_strOptionsPriceArray = pcv_strOptionsPriceArray & chr(124) pcv_strOptionsPriceArrayCur = pcv_strOptionsPriceArrayCur & chr(124) end if '// Column 4) This is the Array of Product "option groups: options" pcv_strOptionsArray = pcv_strOptionsArray & pOptionGroupDesc & ": " & pOptionDescrip '// Column 25) This is the Array of Individual Options Prices pcv_strOptionsPriceArray = pcv_strOptionsPriceArray & pPriceToAdd '// Column 26) This is the Array of Individual Options Prices, but stored as currency "scCurSign & money(pcv_strOptionsPriceTotal) " pcv_strOptionsPriceArrayCur = pcv_strOptionsPriceArrayCur & scCurSign & money(pPriceToAdd) '// Column 5) This is the total of all option prices pcv_strOptionsPriceTotal = pcv_strOptionsPriceTotal + pPriceToAdd end if set rs=nothing Next '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: Get the Options for the item '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ '*************************************************************** ' END: GET OPTIONS '************************************************************* pcCartArray(t,25) = pcv_strOptionsPriceArray '// Array of Individual Options Prices 'pcCartArray(t,27)= "" '// Not in use anymore - VERIFY FOR Crosssell pcCartArray(t,5) = pcv_strOptionsPriceTotal '// Total Cost of all Options '***** 'get discount per quantity query="SELECT discountPerUnit,discountPerWUnit,percentage,baseproductonly FROM discountsPerQuantity WHERE idProduct=" &pSIdProduct& " AND quantityFrom<=" &pcCartArray(t,2)& " AND quantityUntil>=" &pcCartArray(t,2) '***** set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if pOrigPrice=pPrice pcCartArray(t,17)=pOrigPrice '***** if not rstemp.eof then ' there are quantity discounts defined for that quantity pDiscountPerUnit=rstemp("discountPerUnit") pDiscountPerWUnit=rstemp("discountPerWUnit") pPercentage=rstemp("percentage") pbaseproductonly=rstemp("baseproductonly") If Session("customerType")=1 Then pDiscountToUse=pDiscountPerWUnit Else pDiscountToUse=pDiscountPerUnit End If '-- if pPercentage="0" then pcCartArray(t,3)=pPrice - pDiscountToUse '***** pcCartArray(t,15)=pDiscountToUse * pTotalQuantity '***** else if pbaseproductonly="-1" then pcCartArray(t,3)=pPrice - ((pDiscountToUse/100) * pOrigPrice) '***** else pcCartArray(t,3)=pPrice - ((pDiscountToUse/100) * (pOrigPrice+pcCartArray(t,5))) '***** end if if pbaseproductonly="-1" then pcCartArray(t,15)=(pDiscountToUse/100) * pOrigPrice * pTotalQuantity '***** else pcCartArray(t,15)=(pDiscountToUse/100) * (pOrigPrice+pcCartArray(t,5)) * pTotalQuantity '***** end if end if '-- end if 'discounts ELSE '--------------------- ' UPDATE BTO PRODUCT '--------------------- '==================== ' get original price '==================== query="SELECT price, bToBPrice FROM products WHERE idProduct=" &pSIdProduct set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if rstemp.eof then call closeDb() response.redirect "msg.asp?message=41" end if tempbToBPrice=rstemp("bToBPrice") tempprice=rstemp("price") if (tempbToBPrice<>0) then tempBPrice=tempbToBPrice else tempBPrice=tempprice end if if session("customerType")=1 then pPrice=tempBPrice else pPrice=tempprice end if if session("customerCategoryType")="ATB" then if session("ATBCustomer")=1 AND session("ATBPercentOff")=1 then tempBPrice=tempBPrice-(pcf_Round(tempBPrice*(cdbl(session("ATBPercentage"))/100),2)) pPrice=tempBPrice end if if session("ATBCustomer")=1 AND session("ATBPercentOff")=0 then tempprice=tempprice-(pcf_Round(tempprice*(cdbl(session("ATBPercentage"))/100),2)) pPrice=tempprice end if end if if strcustomerCategory="YES" then pPrice=dblpcCC_Price end if BTODefaultPrice=pPrice '==================== ' get items price '==================== AllItemPrices=0 AllCItemPrices=0 ItemsDiscounts=0 IF pcCartArray(t,16)<>"0" and pcCartArray(t,16)<>"" then query="SELECT stringProducts,stringValues,stringCategories,stringQuantity,stringPrice FROM configSessions WHERE idconfigSession=" & pcCartArray(t,16) set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if not rstemp.eof then Pstring=rstemp("stringProducts") Vstring=rstemp("stringValues") Cstring=rstemp("stringCategories") Qstring=rstemp("stringQuantity") Pricestring=rstemp("stringPrice") end if set rstemp=nothing if Pstring<>"" and uCase(Pstring)<>"NA" then ArrProduct=split(Pstring,",") ArrValue=Split(Vstring, ",") ArrCategory=Split(Cstring, ",") ArrQuantity=Split(Qstring,",") ArrPrice=split(Pricestring,",") For m=lbound(ArrProduct) to (UBound(ArrProduct)-1) tmpIDeQty=GetItemDefaultQty(ArrProduct(m)) if Clng(ArrQuantity(m))0 then call LogErrorToDatabase() set rstemp=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if NOT rstemp.eof then tmpItemWPrice_A=rstemp("Wprice") tmpItemPrice_A=rstemp("price") end if set rstemp=nothing tmpItemPrice=CheckPrdPrices(pSIdProduct,ArrProduct(m),tmpItemPrice_A,tmpItemWPrice_A,0) tmpItemWPrice=CheckPrdPrices(pSIdProduct,ArrProduct(m),tmpItemPrice_A,tmpItemWPrice_A,1) if Session("customerType")=1 then dblItemPrice=tmpItemWPrice else dblItemPrice=tmpItemPrice end if ArrPrice(m)=dblItemPrice tmpDefaultItemPrice=0 'if cdbl(ArrValue(m))<>0 then tmpDefaultItemPrice=GetDefaultPrice(pSIdProduct,ArrCategory(m))*GetDefaultQty(pSIdProduct,ArrCategory(m)) tmpDef=ChkMultiSelectDef(pSIdProduct,ArrCategory(m),ArrProduct(m)) if tmpDef=2 then BTODefaultPrice=BTODefaultPrice+tmpDefaultItemPrice ArrValue(m)=cdbl(ArrPrice(m))-cdbl(tmpDefaultItemPrice) else if tmpDef=1 then tmpDefaultItemPrice=0 ArrValue(m)=cdbl(ArrPrice(m))-cdbl(tmpDefaultItemPrice) else if tmpDef=0 then BTODefaultPrice=BTODefaultPrice+tmpDefaultItemPrice ArrValue(m)=cdbl(ArrPrice(m))-cdbl(tmpDefaultItemPrice) end if end if end if 'end if AllItemPrices=AllItemPrices+cdbl(ArrPrice(m))-cdbl(tmpDefaultItemPrice)+(cdbl(ArrQuantity(m))-1)*cdbl(ArrPrice(m)) '==================== ' get items discounts '==================== query="SELECT quantityFrom,quantityUntil,discountperUnit,percentage,discountperWUnit FROM discountsPerQuantity WHERE IDProduct=" & ArrProduct(m) set rstemp=connTemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if TempDiscount=0 do while not rstemp.eof QFrom=rstemp("quantityFrom") QTo=rstemp("quantityUntil") DUnit=rstemp("discountperUnit") QPercent=rstemp("percentage") DWUnit=rstemp("discountperWUnit") if (DWUnit=0) and (DUnit>0) then DWUnit=DUnit end if TempD1=0 if (clng(ArrQuantity(m)*pTotalQuantity)>=clng(QFrom)) and (clng(ArrQuantity(m)*pTotalQuantity)<=clng(QTo)) then if QPercent="-1" then if session("customerType")=1 then TempD1=ArrQuantity(m)*pTotalQuantity*ArrPrice(m)*0.01*DWUnit else TempD1=ArrQuantity(m)*pTotalQuantity*ArrPrice(m)*0.01*DUnit end if else if session("customerType")=1 then TempD1=ArrQuantity(m)*pTotalQuantity*DWUnit else TempD1=ArrQuantity(m)*pTotalQuantity*DUnit end if end if end if TempDiscount=TempDiscount+TempD1 rstemp.movenext loop set rstemp=nothing ItemsDiscounts=ItemsDiscounts+TempDiscount Next Pstring="" Vstring="" Cstring="" Qstring="" Pricestring="" For m=lbound(ArrProduct) to (UBound(ArrProduct)-1) IF Clng(ArrQuantity(m))>0 THEN Pstring=Pstring & replace(ArrProduct(m),",",".") & "," Vstring=Vstring & replace(ArrValue(m),",",".") & "," Cstring=Cstring & replace(ArrCategory(m),",",".") & "," Qstring=Qstring & replace(ArrQuantity(m),",",".") & "," Pricestring=Pricestring & replace(ArrPrice(m),",",".") & "," END IF Next query="UPDATE configSessions SET stringProducts='" & Pstring & "',stringValues='" & Vstring & "',stringCategories='" & Cstring & "',stringQuantity='" & Qstring & "',stringPrice='" & Pricestring & "' WHERE idconfigSession=" & pcCartArray(t,16) set rstemp=connTemp.execute(query) set rstemp=nothing end if 'Have BTO Items 'Check BTO Additional Charges query="SELECT stringCProducts,stringCValues,stringCCategories FROM configSessions WHERE idconfigSession=" & pcCartArray(t,16) set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if not rstemp.eof then PCstring=rstemp("stringCProducts") VCstring=rstemp("stringCValues") CCstring=rstemp("stringCCategories") end if set rstemp=nothing if PCstring<>"" and uCase(PCstring)<>"NA" then ArrProduct=split(PCstring,",") ArrValue=Split(VCstring, ",") ArrCategory=Split(CCstring, ",") For m=lbound(ArrProduct) to (UBound(ArrProduct)-1) query="SELECT price, Wprice FROM configSpec_Charges WHERE specProduct="&pSIdProduct&" AND configProduct=" &ArrProduct(m) set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if tmpItemWPrice=rstemp("Wprice") tmpItemPrice=rstemp("price") set rstemp=nothing tmpItemPrice=CheckPrdPrices(pSIdProduct,ArrProduct(m),tmpItemPrice,tmpItemWPrice,0) tmpItemWPrice=CheckPrdPrices(pSIdProduct,ArrProduct(m),tmpItemPrice,tmpItemWPrice,1) if Session("customerType")=1 then dblItemPrice=tmpItemWPrice else dblItemPrice=tmpItemPrice end if ArrValue(m)=dblItemPrice if cdbl(ArrValue(m))<>0 then 'tmpDefaultItemPrice=GetCDefaultPrice(pSIdProduct,ArrCategory(m)) ArrValue(m)=dblItemPrice '-cdbl(tmpDefaultItemPrice) end if AllCItemPrices=AllCItemPrices+ArrValue(m) Next PCstring="" VCstring="" CCstring="" For m=lbound(ArrProduct) to (UBound(ArrProduct)-1) PCstring=PCstring & replace(ArrProduct(m),",",".") & "," VCstring=VCstring & replace(ArrValue(m),",",".") & "," CCstring=CCstring & replace(ArrCategory(m),",",".") & "," Next query="UPDATE configSessions SET stringCProducts='" & PCstring & "',stringCValues='" & VCstring & "',stringCCategories='" & CCstring & "' WHERE idconfigSession=" & pcCartArray(t,16) set rstemp=connTemp.execute(query) set rstemp=nothing end if 'Have BTO Additional Charges END IF pcCartArray(t,3)=BTODefaultPrice+AllItemPrices pcCartArray(t,30)=Round(ItemsDiscounts+0.001,2) pcCartArray(t,31)=AllCItemPrices pcCartArray(t,17)=pcCartArray(t,3) '==================== ' get product discount per quantity '==================== query="SELECT discountPerUnit,discountPerWUnit,percentage FROM discountsPerQuantity WHERE idProduct=" &pSIdProduct& " AND quantityFrom<=" &pTotalQuantity& " AND quantityUntil>=" &pTotalQuantity set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closeDb() response.redirect "techErr.asp?err="&pcStrCustRefID end if pOrigPrice=pcCartArray(t,3) if pcQDiscountType<>"1" then pOrigPrice=pOrigPrice-(pcCartArray(t,30)/pTotalQuantity) else pOrigPrice=pOrigPrice end if pcCartArray(t,15)=0 if not rstemp.eof then ' there are quantity discounts defined for that quantity pDiscountPerUnit = rstemp("discountPerUnit") pDiscountPerWUnit = rstemp("discountPerWUnit") pPercentage = rstemp("percentage") if session("customerType")<>1 then if pPercentage = "0" then pcCartArray(t,3) = pcCartArray(t,3) - pDiscountPerUnit pcCartArray(t,15) = pcCartArray(t,15) + (pDiscountPerUnit * pTotalQuantity) else pcCartArray(t,3) = pcCartArray(t,3) - ((pDiscountPerUnit/100) * pOrigPrice) pcCartArray(t,15) = pcCartArray(t,15) + ((pDiscountPerUnit/100) * (pOrigPrice * pTotalQuantity)) end if else if pPercentage = "0" then pcCartArray(t,3) = pcCartArray(t,3) - pDiscountPerWUnit pcCartArray(t,15) = pcCartArray(t,15) + (pDiscountPerWUnit * pTotalQuantity) else pcCartArray(t,3) = pcCartArray(t,3) - ((pDiscountPerWUnit/100) * pOrigPrice) pcCartArray(t,15) = pcCartArray(t,15) + ((pDiscountPerWUnit/100) * (pOrigPrice * pTotalQuantity)) end if end if end if set rstemp=nothing END IF 'not serviceSpec end if 'pSIdProduct<>"" 'SM-S if UCase(scDB)="SQL" then query="SELECT Products.pcSC_ID,pcSales_BackUp.pcSales_TargetPrice FROM pcSales_BackUp INNER JOIN Products ON pcSales_BackUp.pcSC_ID=Products.pcSC_ID WHERE Products.idProduct=" & pSIdProduct set rsQ=connTemp.execute(query) if not rsQ.eof then tmpSCID=rsQ("pcSC_ID") If IsNull(tmpSCID) then tmpSCID=0 End If tmpTarget=rsQ("pcSales_TargetPrice") if IsNull(tmpTarget) then tmpTarget=0 end if if ((clng(tmpTarget)=0) AND (session("customerCategory")=0) AND (session("customerType")<>"1")) OR ((clng(tmpTarget)=-1) AND (session("customerCategory")=0) AND (session("customerType")="1")) OR ((clng(tmpTarget)=clng(session("customerCategory"))) AND (clng(tmpTarget)>0)) then pcCartArray(t,39)=tmpSCID '//Sale ID else pcCartArray(t,39)=0 end if else pcCartArray(t,39)=0 end if set rsQ=nothing else pcCartArray(t,39)=0 end if 'SM-E end if 'if product not remove session("pcCartSession")=pcCartArray next 'Loop around %> <% Function CheckSamePrd(m,n) Dim tmpRe,y tmpRe=true For y=0 to 32 if (y<>0) AND (y<>2) AND (y<>3) AND (y<>15) AND (y<>17) AND (y<>21) AND (pcCartArray(m,y) & ""<>pcCartArray(n,y) & "") then tmpRe=false exit for end if Next CheckSamePrd=tmpRe End Function pcv_SourcePrd=0 'tmpSaveSource="||" for f=1 to ppcCartIndex if pcCartArray(f,10)=0 then pcv_SourcePrd=pcCartArray(f,0) 'if instr(tmpSaveSource,"||" & pcv_SourcePrd & "||")=0 then 'tmpSaveSource=tmpSaveSource & pcv_SourcePrd & "||" tmpQuantity=0 For k=1 to ppcCartIndex if pcCartArray(k,10)=0 then if (pcCartArray(k,0)=pcv_SourcePrd) AND CheckSamePrd(f,k) then tmpQuantity=tmpQuantity+cLng(pcCartArray(k,2)) end if end if Next disTotalQuantity=tmpQuantity query="SELECT discountPerUnit,discountPerWUnit,percentage,baseproductonly FROM discountsPerQuantity WHERE idProduct=" & pcv_SourcePrd & ";" set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if not rstemp.eof then For k=1 to ppcCartIndex if pcCartArray(k,10)=0 then if (pcCartArray(k,0)=pcv_SourcePrd) AND CheckSamePrd(f,k) then pcCartArray(k,15)=0 pcCartArray(k,3)=pcCartArray(k,17) end if end if Next end if query="SELECT discountPerUnit,discountPerWUnit,percentage,baseproductonly FROM discountsPerQuantity WHERE idProduct=" & pcv_SourcePrd & " AND quantityFrom<=" &disTotalQuantity& " AND quantityUntil>=" &disTotalQuantity set rstemp=server.CreateObject("ADODB.RecordSet") set rstemp=conntemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rstemp=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if not rstemp.eof and err.number<>9 then ' there are quantity discounts defined for that quantity pDiscountPerUnit=rstemp("discountPerUnit") pDiscountPerWUnit=rstemp("discountPerWUnit") pPercentage=rstemp("percentage") pbaseproductonly=rstemp("baseproductonly") set rstemp=nothing IF pcQDiscountType="1" THEN '==================== ' get original price '==================== query="SELECT price, bToBPrice FROM products WHERE idProduct=" &pcv_SourcePrd set rstemp=conntemp.execute(query) if not rstemp.eof then tempprice=rstemp("price") tempbToBPrice=rstemp("bToBPrice") end if set rstemp = nothing 'Check if this customer is logged in with a customer category if session("customerCategory")<>0 then query="SELECT pcCC_Price FROM pcCC_Pricing WHERE idcustomerCategory="&session("customerCategory")&" AND idProduct="&pcv_SourcePrd&";" set rs=server.CreateObject("ADODB.RecordSet") set rs=conntemp.execute(query) if NOT rs.eof then strcustomerCategory="YES" dblpcCC_Price=rs("pcCC_Price") dblpcCC_Price=pcf_Round(dblpcCC_Price, 2) else strcustomerCategory="NO" end if set rs=nothing end if if (tempbToBPrice<>0) then tempBPrice=tempbToBPrice else tempBPrice=tempprice end if if session("customerType")=1 then pPrice=tempBPrice else pPrice=tempprice end if if session("customerCategoryType")="ATB" then if session("ATBCustomer")=1 AND session("ATBPercentOff")=1 then tempBPrice=tempBPrice-(pcf_Round(tempBPrice*(cdbl(session("ATBPercentage"))/100),2)) pPrice=tempBPrice end if if session("ATBCustomer")=1 AND session("ATBPercentOff")=0 then tempprice=tempprice-(pcf_Round(tempprice*(cdbl(session("ATBPercentage"))/100),2)) pPrice=tempprice end if end if 'if strcustomerCategory="YES" AND dblpcCC_Price>0 then if strcustomerCategory="YES" then pcCartArray(ppcCartIndex,3)=dblpcCC_Price pPrice=dblpcCC_Price end if END IF 'pcQDiscountType="1" For k=1 to ppcCartIndex if pcCartArray(k,10)=0 then if (pcCartArray(k,0)=pcv_SourcePrd) AND CheckSamePrd(f,k) then if session("customerType")=1 then pcCartArray(k,18)=1 else pcCartArray(k,18)=0 end if pOrigPrice=pcCartArray(k,17) pcCartArray(k,15)=0 pTotalQuantity=pcCartArray(k,2) 'reset price for source product pcCartArray(k,3)=pOrigPrice if pcQDiscountType<>"1" then pOrigPrice=pOrigPrice-(pcCartArray(k,30)/pTotalQuantity) else pOrigPrice=pPrice end if if session("customerType")<>1 then 'customer is a normal user if pPercentage="0" then pcCartArray(k,3)=pcCartArray(k,3) - pDiscountPerUnit 'Price - discount per unit pcCartArray(k,15)=pcCartArray(k,15) + (pDiscountPerUnit * pTotalQuantity) 'running total of discounts else if pbaseproductonly="-1" then pcCartArray(k,3)=pcCartArray(k,3) - ((pDiscountPerUnit/100) * pOrigPrice) else pcCartArray(k,3)=pcCartArray(k,3) - ((pDiscountPerUnit/100) * (pOrigPrice+pcCartArray(k,5))) end if if pbaseproductonly="-1" then pcCartArray(k,15)=pcCartArray(k,15) + (((pDiscountPerUnit/100) * pOrigPrice) * pTotalQuantity) else pcCartArray(k,15)=pcCartArray(k,15) + (((pDiscountPerUnit/100) * (pOrigPrice+pcCartArray(k,5))) * pTotalQuantity) end if end if else 'customer is a wholesale customer if pPercentage="0" then pcCartArray(k,3)=pcCartArray(k,3) - pDiscountPerWUnit pcCartArray(k,15)=pcCartArray(k,15) + (pDiscountPerWUnit * pTotalQuantity) else if pbaseproductonly="-1" then pcCartArray(k,3)=pcCartArray(k,3) - ((pDiscountPerWUnit/100) * pOrigPrice) else pcCartArray(k,3)=pcCartArray(k,3) - ((pDiscountPerWUnit/100) * (pOrigPrice+pcCartArray(k,5))) end if if pbaseproductonly="-1" then pcCartArray(k,15)=pcCartArray(k,15) + (((pDiscountPerWUnit/100) * pOrigPrice)* pTotalQuantity) else pcCartArray(k,15)=pcCartArray(k,15) + (((pDiscountPerWUnit/100) * (pOrigPrice+pcCartArray(k,5))) * pTotalQuantity) end if end if end if end if end if Next end if set rstemp=nothing 'end if end if next %> <% Sub RelCalCS(cartIdx,IDParent,IDBundle,ctype) Dim query,rs,y,query1 call opendb() if ctype=0 then 'Parent query1="cs_relationships.idproduct=products.idProduct" else 'Bundle query1="cs_relationships.idrelation=products.idProduct" end if query="SELECT cs_relationships.idproduct, cs_relationships.idrelation, cs_relationships.cs_type, cs_relationships.discount, cs_relationships.ispercent,cs_relationships.isRequired, products.servicespec, products.price, products.description, products.bToBprice, products.serviceSpec, products.noprices FROM cs_relationships INNER JOIN products ON " & query1 & " WHERE cs_relationships.idrelation=" & IDBundle & " AND cs_relationships.idproduct="&IDParent&" AND products.active=-1 AND products.removed=0 ORDER BY cs_relationships.num,cs_relationships.idrelation;" set rs=conntemp.execute(query) if not rs.eof then pcArray_CSRelations = rs.getRows() set rs=nothing pcv_intProductCount = UBound(pcArray_CSRelations,2) For y=0 to pcv_intProductCount if ctype=0 then 'Parent pidrelation=pcArray_CSRelations(0,y) '// rs("idproduct") else 'Bundle pidrelation=pcArray_CSRelations(1,y) '// rs("idrelation") end if pcsType=pcArray_CSRelations(2,y) '// rs("cs_type") pDiscount=pcArray_CSRelations(3,y) '// rs("discount") pIsPercent=pcArray_CSRelations(4,y) '// rs("isPercent") pcv_strIsRequired=pcArray_CSRelations(5,y) '// rs("isRequired") cs_pserviceSpec=pcArray_CSRelations(6,y) '// rs("servicespec") ppPrice=pcArray_CSRelations(7,y) '// rs("price") if pcArray_CSRelations(9,y)>"0" then ppBPrice=pcArray_CSRelations(9,y) else ppBPrice=ppPrice end if cs_pserviceSpec=pcArray_CSRelations(10,y) if cs_pserviceSpec="" OR IsNull(cs_pserviceSpec) then cs_pserviceSpec=0 end if cs_pnoprices=pcArray_CSRelations(11,y) if cs_pnoprices="" OR IsNull(cs_pnoprices) then cs_pnoprices=0 end if tmp_pidProduct=pidProduct tmp_pPrice=pPrice tmp_pPrice1=pPrice1 tmp_pBtoBPrice=pBtoBPrice tmp_pBtoBPrice1=pBtoBPrice1 tmp_pnoprices=pnoprices tmp_pserviceSpec=pserviceSpec pidProduct=pidrelation pPrice=ppPrice pBtoBPrice=ppBPrice pnoprices=cs_pnoprices pserviceSpec=cs_pserviceSpec ppPrice1=CheckParentPrices(pidProduct,pPrice,pBtoBPrice,0) ppBtoBPrice1=CheckParentPrices(pidProduct,pPrice,pBtoBPrice,1) if session("customertype")=1 and ppBtoBPrice1>0 then ppPrice1=ppBtoBPrice1 end if pidProduct=tmp_pidProduct pPrice=tmp_pPrice pPrice1=tmp_pPrice1 pBtoBPrice=tmp_pBtoBPrice pBtoBPrice1=tmp_pBtoBPrice1 pnoprices=tmp_pnoprices pserviceSpec=tmp_pserviceSpec if pIsPercent<>0 then ppPrice1 = CDbl(ppPrice1*(pDiscount/100)) else if ctype=0 then ppPrice1=0 else ppPrice1 = CDbl(pDiscount) end if end if Next pcCartArray(cartIdx,28)=ppPrice1 end if set rs=nothing call closedb() End Sub for f=1 to ppcCartIndex if pcCartArray(f,10)=0 AND pcCartArray(f,27)<>"" AND pcCartArray(f,27)<>"0" then if pcCartArray(f,27)="-1" AND pcCartArray(f,8)>"0" then call RelCalCS(f,pcCartArray(f,0),pcCartArray(f,8),0) else if pcCartArray(f,27)>"0" then call RelCalCS(f,pcCartArray(pcCartArray(f,27),0),pcCartArray(f,0),1) end if end if end if next call closedb() %> <% session("pcCartSession")=pcCartArray 'Calculate Product Promotions - START %> <%ReDim PromoArr(100,5) PromoIndex=0 PrdPromoArr="" PrdPromoCount=0 CatPromoArr="" CatPromoCount=0 'Include Option Prices to Total Product Price to calculate Product Promotion PR_IncOptPrice=1 '//Defaut=1 PromoMsgStr="" tmpShowList="***" k=0 m=0 PromoIndex=0 pcTmpArr=Session("pcCartSession") pcTmpIndex=Session("pcCartIndex") call opendb() pcv_HaveCatPromotions=0 query="SELECT pcCatPro_id,idcategory,pcCatPro_QtyTrigger,pcCatPro_DiscountType,pcCatPro_DiscountValue,pcCatPro_ApplyUnits,pcCatPro_PromoMsg,pcCatPro_ConfirmMsg,pcCatPro_SDesc FROM pcCatPromotions;" set rsQ=connTemp.execute(query) if not rsQ.eof then pcv_HaveCatPromotions=1 CatPromoArr=rsQ.getRows() set rsQ=nothing CatPromoCount=ubound(CatPromoArr,2) end if set rsQ=nothing if pcv_HaveCatPromotions=1 then For m=0 to CatPromoCount 'call CalCatPromo(m) Next end if pcv_HavePrdPromotions=0 query="SELECT pcPrdPro_id,idproduct,pcPrdPro_QtyTrigger,pcPrdPro_DiscountType,pcPrdPro_DiscountValue,pcPrdPro_ApplyUnits,pcPrdPro_PromoMsg,pcPrdPro_ConfirmMsg,pcPrdPro_SDesc,pcPrdPro_IncExcCust,pcPrdPro_IncExcCPrice,pcPrdPro_RetailFlag,pcPrdPro_WholesaleFlag FROM pcPrdPromotions WHERE pcPrdPro_Inactive=0;" set rsQ=connTemp.execute(query) if not rsQ.eof then pcv_HavePrdPromotions=1 PrdPromoArr=rsQ.getRows() set rsQ=nothing PrdPromoCount=ubound(PrdPromoArr,2) end if set rsQ=nothing pcv_strUsedPrdPromo = "" if pcv_HavePrdPromotions=1 then For k=1 to pcTmpIndex '// For each product in cart array For m=0 to PrdPromoCount '// For each promo available '// If Product ID = Promo Product ID if clng(CheckParentPrd(k))=clng(PrdPromoArr(1,m)) then call CalPrdPromo(k,m) '// Apply Promo pcv_strUsedPrdPromo = pcv_strUsedPrdPromo & CheckParentPrd(k) & "_" & m & "," '// Keep track for cleaning sessions end if Next Next end if Session("pcPromoSession")=PromoArr Session("pcPromoIndex")=PromoIndex Function CheckParentPrd(tmpIdx) Dim pcv_tmpPPrd if (pcTmpArr(tmpIdx,32)<>"") then pcv_tmpPPrd=split(pcTmpArr(tmpIdx,32),"$$") CheckParentPrd=pcv_tmpPPrd(ubound(pcv_tmpPPrd)) else CheckParentPrd=pcTmpArr(tmpIdx,0) end if End Function Function CheckSubCatList(tmpIdParent) Dim query,rsQ,tmpPcCatArr,tmpPcCatCount,j,tmpCatStr tmpCatStr="" query="SELECT idcategory FROM Categories WHERE idParentCategory=" & tmpIdParent & ";" set rsQ=connTemp.execute(query) if not rsQ.eof then tmpPcCatArr=rsQ.getRows() set rsQ=nothing tmpPcCatCount=ubound(tmpPcCatArr,2) For j=0 to tmpPcCatCount tmpCatStr=tmpCatStr & "," & tmpPcCatArr(0,j) tmpCatStr=tmpCatStr & CheckSubCatList(tmpPcCatArr(0,j)) Next end if set rsQ=nothing CheckSubCatList=tmpCatStr End Function Function GetAvailableUnits(tmpC,tmpP) Dim pcv_intTrueCount,pcv_intBaseID,pcv_CheapestPrice, pcv_tmpCheapestPrice pcv_intTrueCount = 0 pcv_CheapestPrice = cdbl(0) pcv_tmpCheapestPrice = cdbl(0) pcv_intBaseID = CheckParentPrd(tmpC) For UnitCount=1 to pcTmpIndex If cdbl(pcv_intBaseID) = cdbl(CheckParentPrd(UnitCount)) Then pcv_intTrueCount = cdbl(pcv_intTrueCount) + cdbl(pcTmpArr(UnitCount,2)) '// Find Cheapest Unit if PR_IncOptPrice=1 then pcv_tmpCheapestPrice=(pcTmpArr(UnitCount,3)+pcTmpArr(UnitCount,5)+round((pcTmpArr(UnitCount,31)/pcTmpArr(UnitCount,2)),2)) else pcv_tmpCheapestPrice=(pcTmpArr(UnitCount,3)+round((pcTmpArr(UnitCount,31)/pcTmpArr(UnitCount,2)),2)) end if if (pcv_tmpCheapestPrice0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if not rs.eof then pcv_Filters=pcv_Filters+1 pcv_CustFilter=1 end if set rs=nothing if pcv_CustFilter=1 then query="select IDCustomer from PcPPFCusts where pcPrdPro_id=" & tmpIDCode & " and IDCustomer=" & session("IDCustomer") set rs=server.CreateObject("ADODB.RecordSet") set rs=connTemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if not rs.eof then if (pcIncExcCust="0") then pcv_FResults=pcv_FResults+1 end if else if (pcIncExcCust="1") then pcv_FResults=pcv_FResults+1 end if end if set rs=nothing end if 'End of Filter by Customers 'Filter by Customer Categories pcv_CustCatFilter=0 query="select idCustomerCategory from pcPPFCustPriceCats where pcPrdPro_id=" & tmpIDCode set rs=server.CreateObject("ADODB.RecordSet") set rs=connTemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if not rs.eof then pcv_Filters=pcv_Filters+1 pcv_CustCatFilter=1 end if set rs=nothing if pcv_CustCatFilter=1 then query="select pcPPFCustPriceCats.idCustomerCategory from pcPPFCustPriceCats, Customers where pcPPFCustPriceCats.pcPrdPro_id=" & tmpIDCode & " and pcPPFCustPriceCats.idCustomerCategory = Customers.idCustomerCategory and Customers.idcustomer=" & session("IDCustomer") set rs=server.CreateObject("ADODB.RecordSet") set rs=connTemp.execute(query) if err.number<>0 then call LogErrorToDatabase() set rs=nothing call closedb() response.redirect "techErr.asp?err="&pcStrCustRefID end if if not rs.eof then if (pcIncExcCPrice="0") then pcv_FResults=pcv_FResults+1 end if else if (pcIncExcCPrice="1") then pcv_FResults=pcv_FResults+1 end if end if set rs=nothing end if 'End of Filter by Customer Categories 'Check to see if promotion is filtered by reatil or wholesale. if (pcv_retail ="0" and pcv_wholeSale ="1") or (pcv_retail ="1" and pcv_wholeSale ="0") Then pcv_Filters=pcv_Filters+1 if pcv_wholeSale = "1" and session("customertype") = 1 then pcv_FResults=pcv_FResults+1 end if if pcv_retail = "1" and session("customertype") <> 1 Then pcv_FResults=pcv_FResults+1 end if end if 'End Check to see if promotion is filtered by reatil or wholesale. IF pcv_Filters=pcv_FResults THEN if Instr(tmpShowList,"***" & PrdPromoArr(1,tmpP) & "***")=0 then tmpShowList=tmpShowList & PrdPromoArr(1,tmpP) & "***" PromoMsgStr=PromoMsgStr & "
  • " & PrdPromoArr(6,tmpP) & "
  • " end if 'Have Trigger if (tmpProductQty-tmpQtyTrigger>=0) AND (Session("UA_" & CheckParentPrd(tmpC) & "_" & tmpP) <> "DONE") then 'Get Target Products query="SELECT idproduct FROM pcPPFProducts WHERE pcPrdPro_ID=" & tmpIDCode & ";" set rsQ=connTemp.execute(query) pcv_HavePrdTargets=0 if not rsQ.eof then pcPrdTargetArr=rsQ.getRows() set rsQ=nothing PrdTargetCount=ubound(pcPrdTargetArr,2) For j=0 to PrdTargetCount tmpPrdTargetStr=tmpPrdTargetStr & "**" & pcPrdTargetArr(0,j) Next tmpPrdTargetStr=tmpPrdTargetStr & "**" pcv_HavePrdTargets=1 end if set rsQ=nothing 'Get Target Categories query="SELECT idcategory,pcPPFCats_IncSubCats FROM pcPPFCategories WHERE pcPrdPro_ID=" & tmpIDCode & ";" set rsQ=connTemp.execute(query) pcv_HaveCatTargets=0 if not rsQ.eof then pcCatTargetArr=rsQ.getRows() set rsQ=nothing CatTargetCount=ubound(pcCatTargetArr,2) For j=0 to CatTargetCount if tmpCatTargetStr<>"" then tmpCatTargetStr=tmpCatTargetStr & "," end if tmpCatTargetStr=tmpCatTargetStr & pcCatTargetArr(0,j) if pcCatTargetArr(1,j)="1" then tmpCatTargetStr=tmpCatTargetStr & CheckSubCatList(pcCatTargetArr(0,j)) end if Next pcv_HaveCatTargets=1 end if set rsQ=nothing 'Filter by Target Products IF pcv_HavePrdTargets=1 OR (pcv_HavePrdTargets=0 AND pcv_HaveCatTargets=0) THEN '// Apply the Promo to all available Qty until you run out Do while (tmpProductQty>0) AND (clng(tmpProductQty)-clng(tmpQtyTrigger)>=0) tmpProductQty=tmpProductQty-clng(tmpQtyTrigger) tmpU=tmpApplyUnits '// # of Units if tmpApplyUnits=0 then tmpAll=1 '// Apply to all additional else tmpAll=0 '// Appy to "n" units end if tmpTotal=0 tmpQtyTotal=0 For j=1 to pcTmpIndex '// For each item in cart array '// If (Not Deleted) AND (Qty more than Zero) AND ((No Target Product) OR (Matching Target Product)) if pcTmpArr(j,10)="0" AND tmpProductQty>"0" AND ((tmpPrdTargetStr="") OR (InStr(tmpPrdTargetStr,"**" & CheckParentPrd(j) & "**")>0)) then if tmpAll=1 then '// APPLY TO ALL tmpTotal=tmpTotal+(tmpProductQty*Session("UAP_" & CheckParentPrd(tmpC) & "_" & tmpP)) tmpQtyTotal=tmpQtyTotal+tmpProductQty tmpProductQty=0 else '// APPLY TO 'N' UNITS if tmpU-clng(tmpProductQty)>=0 then '// If all "n" units are available tmpTotal=tmpTotal+(tmpProductQty*Session("UAP_" & CheckParentPrd(tmpC) & "_" & tmpP)) tmpU=tmpU-clng(tmpProductQty) tmpProductQty=0 else '// Not all "n" units are left tmpTotal=tmpTotal+(tmpU*Session("UAP_" & CheckParentPrd(tmpC) & "_" & tmpP)) tmpProductQty=tmpProductQty-tmpU tmpU=0 end if end if end if '// Check if we are done if tmpU=0 AND tmpAll=0 then exit for end if Next '// Prior to exit set a session flag so this promo cannot be applied to the same ID again Session("UA_" & CheckParentPrd(tmpC) & "_" & tmpP) = "DONE" '// UA_ProductID_PromoID '// Apply the Total Promo if tmpTotal>0 then if tmpDiscountType="1" then if tmpQtyTotal>0 then tmpTotal=tmpDiscountValue*tmpQtyTotal else tmpTotal=tmpDiscountValue*(tmpApplyUnits-tmpU) end if else tmpTotal=Round((tmpTotal*tmpDiscountValue)/100,2) end if tmpHas=0 For j=1 to PromoIndex if PromoArr(j,0)="P" & tmpIDCode then PromoArr(j,2)=PromoArr(j,2)+tmpTotal tmpHas=1 exit for end if Next if tmpHas=0 then PromoIndex=PromoIndex+1 j=PromoIndex PromoArr(j,0)="P" & tmpIDCode PromoArr(j,1)=tmpConfirmMsg PromoArr(j,2)=tmpTotal PromoArr(j,3)=tmpDescMsg PromoArr(j,4)=tmpIDProduct end if end if Loop END IF 'Filter by Target Products 'Filter by Target Categories IF pcv_HaveCatTargets=1 THEN Do while (pcTmpArr(tmpC,2)>0) AND (clng(pcTmpArr(tmpC,2))-clng(tmpQtyTrigger)>=0) pcTmpArr(tmpC,2)=pcTmpArr(tmpC,2)-clng(tmpQtyTrigger) tmpU=tmpApplyUnits if tmpApplyUnits=0 then tmpAll=1 else tmpAll=0 end if tmpTotal=0 tmpQtyTotal=0 For j=1 to pcTmpIndex if pcTmpArr(j,10)="0" AND pcTmpArr(j,2)>"0" then query="SELECT idcategory FROM categories_products WHERE idproduct=" & pcTmpArr(j,0) & " AND idcategory IN (" & tmpCatTargetStr & ");" set rsQ=connTemp.execute(query) if not rsQ.eof then set rsQ=nothing if tmpAll=1 then if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(pcTmpArr(j,2)*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(pcTmpArr(j,2)*pcTmpArr(j,3)) end if tmpQtyTotal=tmpQtyTotal+pcTmpArr(j,2) pcTmpArr(j,2)=0 else if tmpU-clng(pcTmpArr(j,2))>=0 then if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(pcTmpArr(j,2)*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(pcTmpArr(j,2)*pcTmpArr(j,3)) end if tmpU=tmpU-clng(pcTmpArr(j,2)) pcTmpArr(j,2)=0 else if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(tmpU*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(tmpU*pcTmpArr(j,3)) end if pcTmpArr(j,2)=pcTmpArr(j,2)-tmpU tmpU=0 end if end if end if set rsQ=nothing end if if tmpU=0 AND tmpAll=0 then exit for end if Next if tmpTotal>0 then if tmpDiscountType="1" then if tmpQtyTotal>0 then tmpTotal=tmpDiscountValue*tmpQtyTotal else tmpTotal=tmpDiscountValue*(tmpApplyUnits-tmpU) end if else tmpTotal=Round((tmpTotal*tmpDiscountValue)/100,2) end if tmpHas=0 For j=1 to PromoIndex if PromoArr(j,0)="P" & tmpIDCode then PromoArr(j,2)=PromoArr(j,2)+tmpTotal tmpHas=1 exit for end if Next if tmpHas=0 then PromoIndex=PromoIndex+1 j=PromoIndex PromoArr(j,0)="P" & tmpIDCode PromoArr(j,1)=tmpConfirmMsg PromoArr(j,2)=tmpTotal PromoArr(j,3)=tmpDescMsg PromoArr(j,4)=tmpIDProduct end if end if Loop END IF 'Filter by Target Categories end if 'Have Trigger END IF '// IF pcv_Filters=pcv_FResults THEN End Sub Function CheckCatTrigger(tmpIDCat,QtyTrigger,istyle,cindex) Dim query,rsQ,j,tmpQty tmpQty=QtyTrigger For j=1 to pcTmpIndex if pcTmpArr(j,10)="0" AND pcTmpArr(j,2)>"0" then query="SELECT idcategory FROM categories_products WHERE idproduct=" & pcTmpArr(j,0) & " AND idcategory=" & tmpIDCat & ";" set rsQ=connTemp.execute(query) if not rsQ.eof then set rsQ=nothing if istyle="0" then PromoMsgStr=PromoMsgStr & "
  • " & CatPromoArr(6,cindex) & "
  • " end if if clng(tmpQty)-clng(pcTmpArr(j,2))>=0 then tmpQty=clng(tmpQty)-clng(pcTmpArr(j,2)) if istyle="1" then pcTmpArr(j,2)=0 end if else if istyle="1" then pcTmpArr(j,2)=pcTmpArr(j,2)-tmpQty end if tmpQty=0 end if end if set rsQ=nothing end if if tmpQty=0 then exit for end if Next if tmpQty=0 then CheckCatTrigger=true else CheckCatTrigger=false end if End Function Sub CalCatPromo(tmpP) Dim query,rsQ,j Dim pcPrdTargetArr,PrdTargetCount,pcv_HavePrdTargets,tmpPrdTargetStr Dim pcCatTargetArr,CatTargetCount,pcv_HaveCatTargets,tmpCatTargetStr Dim tmpU,tmpTotal,tmpAll,tmpHas tmpPrdTargetStr="" tmpCatTargetStr="" tmpIDCode=CatPromoArr(0,tmpP) tmpIDCat=CatPromoArr(1,tmpP) tmpQtyTrigger=clng(CatPromoArr(2,tmpP)) tmpDiscountType=CatPromoArr(3,tmpP) tmpDiscountValue=CatPromoArr(4,tmpP) tmpApplyUnits=CatPromoArr(5,tmpP) tmpConfirmMsg=CatPromoArr(7,tmpP) tmpDescMsg=CatPromoArr(8,tmpP) 'Have Trigger if CheckCatTrigger(tmpIDCat,tmpQtyTrigger,0,tmpP) then 'Get Target Products query="SELECT idproduct FROM pcCPFProducts WHERE pcCatPro_ID=" & tmpIDCode & ";" set rsQ=connTemp.execute(query) pcv_HavePrdTargets=0 if not rsQ.eof then pcPrdTargetArr=rsQ.getRows() set rsQ=nothing PrdTargetCount=ubound(pcPrdTargetArr,2) For j=0 to PrdTargetCount tmpPrdTargetStr=tmpPrdTargetStr & "**" & pcPrdTargetArr(0,j) Next tmpPrdTargetStr=tmpPrdTargetStr & "**" pcv_HavePrdTargets=1 end if set rsQ=nothing 'Get Target Categories query="SELECT idcategory,pcCPFCats_IncSubCats FROM pcCPFCategories WHERE pcCatPro_ID=" & tmpIDCode & ";" set rsQ=connTemp.execute(query) pcv_HaveCatTargets=0 if not rsQ.eof then pcCatTargetArr=rsQ.getRows() set rsQ=nothing CatTargetCount=ubound(pcCatTargetArr,2) For j=0 to CatTargetCount if tmpCatTargetStr<>"" then tmpCatTargetStr=tmpCatTargetStr & "," end if tmpCatTargetStr=tmpCatTargetStr & pcCatTargetArr(0,j) if pcCatTargetArr(1,j)="1" then tmpCatTargetStr=tmpCatTargetStr & CheckSubCatList(pcCatTargetArr(0,j)) end if Next pcv_HaveCatTargets=1 end if set rsQ=nothing 'Filter by Target Products IF pcv_HavePrdTargets=1 OR (pcv_HavePrdTargets=0 AND pcv_HaveCatTargets=0) THEN Do while CheckCatTrigger(tmpIDCat,tmpQtyTrigger,1,tmpP) tmpU=tmpApplyUnits if tmpApplyUnits=0 then tmpAll=1 else tmpAll=0 end if tmpTotal=0 tmpQtyTotal=0 For j=1 to pcTmpIndex if pcTmpArr(j,10)="0" AND pcTmpArr(j,2)>"0" AND ((tmpPrdTargetStr="") OR (InStr(tmpPrdTargetStr,"**" & pcTmpArr(j,0) & "**")>0)) then if tmpAll=1 then if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(pcTmpArr(j,2)*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(pcTmpArr(j,2)*pcTmpArr(j,3)) end if tmpQtyTotal=tmpQtyTotal+pcTmpArr(j,2) pcTmpArr(j,2)=0 else if tmpU-clng(pcTmpArr(j,2))>=0 then if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(pcTmpArr(j,2)*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(pcTmpArr(j,2)*pcTmpArr(j,3)) end if tmpU=tmpU-clng(pcTmpArr(j,2)) pcTmpArr(j,2)=0 else if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(tmpU*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(tmpU*pcTmpArr(j,3)) end if pcTmpArr(j,2)=pcTmpArr(j,2)-tmpU tmpU=0 end if end if end if if tmpU=0 AND tmpAll=0 then exit for end if Next if tmpTotal>0 then if tmpDiscountType="1" then if tmpQtyTotal>0 then tmpTotal=tmpDiscountValue*tmpQtyTotal else tmpTotal=tmpDiscountValue*(tmpApplyUnits-tmpU) end if else tmpTotal=Round((tmpTotal*tmpDiscountValue)/100,2) end if tmpHas=0 For j=1 to PromoIndex if PromoArr(j,0)="C" & tmpIDCode then PromoArr(j,2)=PromoArr(j,2)+tmpTotal tmpHas=1 exit for end if Next if tmpHas=0 then PromoIndex=PromoIndex+1 j=PromoIndex PromoArr(j,0)="C" & tmpIDCode PromoArr(j,1)=tmpConfirmMsg PromoArr(j,2)=tmpTotal PromoArr(j,3)=tmpDescMsg end if end if Loop END IF 'Filter by Target Products 'Filter by Target Categories IF pcv_HaveCatTargets=1 THEN Do while CheckCatTrigger(tmpIDCat,tmpQtyTrigger,1,tmpP) tmpU=tmpApplyUnits if tmpApplyUnits=0 then tmpAll=1 else tmpAll=0 end if tmpTotal=0 tmpQtyTotal=0 For j=1 to pcTmpIndex if pcTmpArr(j,10)="0" AND pcTmpArr(j,2)>"0" then query="SELECT idcategory FROM categories_products WHERE idproduct=" & pcTmpArr(j,0) & " AND idcategory IN (" & tmpCatTargetStr & ");" set rsQ=connTemp.execute(query) if not rsQ.eof then set rsQ=nothing if tmpAll=1 then if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(pcTmpArr(j,2)*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(pcTmpArr(j,2)*pcTmpArr(j,3)) end if tmpQtyTotal=tmpQtyTotal+pcTmpArr(j,2) pcTmpArr(j,2)=0 else if tmpU-clng(pcTmpArr(j,2))>=0 then if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(pcTmpArr(j,2)*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(pcTmpArr(j,2)*pcTmpArr(j,3)) end if tmpU=tmpU-clng(pcTmpArr(j,2)) pcTmpArr(j,2)=0 else if PR_IncOptPrice=1 then tmpTotal=tmpTotal+(tmpU*(pcTmpArr(j,3)+pcTmpArr(j,5))) else tmpTotal=tmpTotal+(tmpU*pcTmpArr(j,3)) end if pcTmpArr(j,2)=pcTmpArr(j,2)-tmpU tmpU=0 end if end if end if set rsQ=nothing end if if tmpU=0 AND tmpAll=0 then exit for end if Next if tmpTotal>0 then if tmpDiscountType="1" then if tmpQtyTotal>0 then tmpTotal=tmpDiscountValue*tmpQtyTotal else tmpTotal=tmpDiscountValue*(tmpApplyUnits-tmpU) end if else tmpTotal=Round((tmpTotal*tmpDiscountValue)/100,2) end if tmpHas=0 For j=1 to PromoIndex if PromoArr(j,0)="C" & tmpIDCode then PromoArr(j,2)=PromoArr(j,2)+tmpTotal tmpHas=1 exit for end if Next if tmpHas=0 then PromoIndex=PromoIndex+1 j=PromoIndex PromoArr(j,0)="C" & tmpIDCode PromoArr(j,1)=tmpConfirmMsg PromoArr(j,2)=tmpTotal PromoArr(j,3)=tmpDescMsg end if end if Loop END IF 'Filter by Target Categories end if 'Have Trigger End Sub '// Clean Up Sessions pcArray_UsedPrdPromo = split(pcv_strUsedPrdPromo,",") For PrdPromoCount=0 to ubound(pcArray_UsedPrdPromo) Session("UA_" & pcArray_UsedPrdPromo(PrdPromoCount)) = "" Session("UAP_" & pcArray_UsedPrdPromo(PrdPromoCount)) = "" Next %> <% 'Calculate Product Promotions - END 'After reCalculation, check to see if wholesale amount is qualified 'dim pCartTotalWeight, pCartQuantity, howMuch pCartTotalWeight=Cdbl(0) pCartQuantity=Cint(0) howMuch=CDbl(0) ' calculate total price of the order, total weight and product total quantities pSubtotal=Cdbl(calculateCartTotal(pcCartArray, ppcCartIndex)) pCartTotalWeight=Cdbl(calculateCartWeight(pcCartArray, ppcCartIndex)) pCartQuantity=int(calculateCartQuantity(pcCartArray, ppcCartIndex)) If session("customerType")=1 AND ppcCartIndex>0 Then if (calculateCartTotal(pcCartArray, ppcCartIndex)
    "&dictLanguage.Item(Session("language")&"_titles_3")&" : "&dictLanguage.Item(Session("language")&"_titles_5")&"") end if End If end If 'check for wholesale customer recalculation%> <% END IF ELSE Response.Cookies("SavedCartGUID")="" END IF call closedb() END IF %> <%END IF%> Quest Protein non-fiber carbs
    Buy Your Quest Bars



    $1.99 20g Protein 4g Non-Fiber Carbs 230 Calories




    $22.99 20g Protein 4g Non-Fiber Carbs 230 Calories






    $1.99 20g Protein 5g Non-Fiber Carbs 220 Calories






    $22.99 20g Protein 5g Non-Fiber Carbs 220 Calories






    $22.99 20g Protein 5g Non-Fiber Carbs 220 Calories






    $22.99 20g Protein 5g Non-Fiber Carbs 220 Calories

    Home Ingredients Why Choose Quest? Who Uses Quest Bar Articles Contact About
    Buy Now
    Buy Now
     
    0