# Perl Support File
# Variables used by ws400.cgi
# Variables used by all scripts: /Web_store/ws_global.setup
# File Permissions: 644 -rw-r--r--
# NOTE: If you change the filename of this file, change the value of
# $default_setup_file in ws400.cgi to reflect the file's new name.
############################################################################
# outlet.setup #
#==========================================================================#
# Copyright (c) 1996 - 2003, RDC Software #
# WebStore@ratite.com http://www.ratite.com/Perl/WebStore.shtml #
# Version: 4.16.00 Date: 01/01/2003 #
# #
# Full copyright notice can be found in the following files for the #
# listed license type: #
# #
# Single User License: /Docs/Copyright_SingleUser.html #
# Server License: /Docs/Copyright_Server.html #
# #
# This copyright notification can not be altered or removed from this file.#
#==========================================================================#
# Backslash all @ signs --> \@ <-- Perl 5 compatibility. #
# Variables containing @ signs must be enclosed in " (double quotes). #
# #
# All other variables are enclosed in ' (single quotes). #
# #
# If the value you store in a variable enclosed in single quotes requires #
# the use of a single quote, backslash the imbedded single quote: #
# #
# EXAMPLE: $global_page_title = 'Joe\'s Auto Parts' #
############################################################################
#--------------------------------------------------------------------------#
# General Settings
#--------------------------------------------------------------------------#
# $data_file is the | (pipe) delimited flatfile database containing the store's
# inventory of items for sale.
$data_file = 'outlet.data';
# $global_page_title is the
text printed to HTML pages generated by
# WebStore and the table header text for the search engine.
# $global_page_title is used in $email_subject, $meta_tags, and $table_title
# (below), in $email_subject of secondary form files, and in page header arrays
# in primary order form setup files and secondary form setup files.
$global_page_title = 'RDC Software';
# @company is is used on the Confirmation of Order page, in $pre_client_msg
# (below), and in $pre_client_msg in secondary form files.
# The contents of @company is printed at the top of the Confirmation of
# Order page using the following format:
#
# RDC Software
# Route 3, Box 29B Grapeland, Texas 75844 Phone: 936.687.2400 Fax: 936.687.9057
#
# The first element of @company must be your business name.
# The business name is wrapped inside an tag using $return_link_url
# in the address listing at the top of the page and in the following phrase
# located at the bottom of the page:
#
# "Thank you for shopping at RDC Software"
@company = (
'RDC Software',
'Route 3, Box 29B',
'Grapeland, Texas 75844',
'Phone: 936.687.2400',
'Fax: 936.687.9057',
); # DO NOT REMOVE - terminates @company
# $currency is the currency label for price values printed to the client's
# web browser and order e-mail messages.
# $currency defaults to '$' (US currency) when the value of $currency is not
# defined or the value of $currency does not match a non-whitespace character.
# Example $currency settings:
# $currency = '£'; # Sterling Pounds
# $currency = 'Lit.'; # Italian Lira
# $currency = '$'; # US Dollars
$currency = '$';
# $frontpage_file is the store's front page containing links to database
# categories, category front pages, or expanded item information pages.
$frontpage_file = 'outlet_frontpage.html';
# $frameset_file is the store's frame document.
# WebStore is packaged with the following frame documents:
# Frameset.html
# Frameset_banner.html
# Setting $frameset_file = '' disables frames. WebStore loads
# the file defined in $frontpage_file as the store's front page.
$frameset_file = 'Frameset.html';
# If $duplicate_buttons = 1, print buttons for "View Cart", "Order Form",
# and "Front Page" in the "main" frame housing the WebStore application.
# If these buttons do not exist in an HTML document defined in a
# tag of the frame document defined in $frameset_file,
# $duplicate_buttons must be set to '1'.
# WebStore disregards $duplicate_buttons when $frameset_file = ''.
# All buttons are printed.
# Setting $duplicate_buttons = '' disables printing of buttons when a
# filename is defined in $frameset_file, WebStore is running in frames.
$duplicate_buttons = '1'; # 1 = Yes
# $button_1_txt thru $button_5_txt are variables containing the text
# displayed on submission buttons throughout WebStore.
# $button_5_txt is also used in "Add to Cart" error messages.
$button_1_txt = 'View Cart'; # Go to View/Modify table
$button_2_txt = 'Front Page'; # Go to Store's Front Page
$button_3_txt = 'Previous Page'; # Go to Previous Category
$button_4_txt = 'Check Out'; # Go to Order Form
$button_5_txt = 'Add to Cart'; # Add item to shopping cart
# $add_cart_button is the "Add to Cart" button printed in each item's table row
# in database category displays and expanded item pages.
# $add_cart_button may be colon delimited, listing an add to cart button image
# to the left of the colon and image attributes to the right of the colon.
#
# WebStore assigns the image submit button's NAME and VALUE. If you include
# NAME or VALUE in the attributes, WebStore will not print any listed attributes.
#
# The add to cart button image must be stored in the /Graphics sub-directory.
# If the image is not readable by the server, -r IMAGE.xxx, form submission
# buttons are printed to item rows.
#
# Accepted image types are .gif, .jpg, or .jpeg.
#
# Accepted button image settings:
#
# $add_cart_button = 'IMAGE.gif'; No Image Attributes
# $add_cart_button = 'IMAGE.gif:BORDER="0" WIDTH="63" HEIGHT="15"';
# Setting $add_cart_button = '1' prints form submission buttons to item table
# rows using the text defined in $button_5_txt (above) as the button's VALUE.
#
# Setting $add_cart_button = '' disables printing add to cart buttons to item
# table rows. A single "Add to Cart" button is printed at the bottom of the
# page.
#$add_cart_button = 'ac.Buy.gif :BORDER="0" WIDTH="27" HEIGHT="15"';
#$add_cart_button = 'ac.Order.gif :BORDER="0" WIDTH="36" HEIGHT="15"';
$add_cart_button = 'ac.Purchase.gif :BORDER="0" WIDTH="55" HEIGHT="15"';
#$add_cart_button = 'ac.Add_to_Cart.gif:BORDER="0" WIDTH="63" HEIGHT="15"';
# $return_link_url is an absolute URL link printed at the bottom
# of all pages in WebStore whose format is:
#
# http://www.YourDomain.xxx/AnyDirectories/Filename.html
# $return_link_url targets "_top" to exit frames when a frames document is
# defined in $frameset_file (above).
# Setting $return_link_url = '' disables printing of this URL.
# For the Confirmation of Order HTML page, WebStore will attempt to construct
# a value for $return_link_url using:
#
# $return_link_url = 'http://'.$ENV{'HTTP_HOST'};
# $return_link_title is the absolute URL's description.
$return_link_url = 'http://www.ratite.com';
$return_link_title = 'Home Page';
# $email_link_url is an e-mail link printed at the bottom of all
# pages in WebStore.
# Setting $email_link_url = '' disables printing of this link.
# $email_link_title is the e-mail link's description.
$email_link_url = "WebStore\@ratite.com";
$email_link_title = 'Mail to: '.$email_link_url;
#--------------------------------------------------------------------------#
# Database of Items for Sale
#--------------------------------------------------------------------------#
# @field_names is a listing of the database record structure present in the
# | (pipe) delimited product database, outlet.data, defined in $data_file
# above. These field names are used to display column header text in
# View/Modify, Delete, Change Quantity, Order Form, and Reminder to client
# of what they ordered.
# Never set the "Shipping" field for display. It is used for calculating
# shipping costs only.
# The "Id" field must always be the last field in @field_names and it's
# name can not be changed.
@field_names = (
# Field Name Dbase Field
'Item', # 0
'Shipping', # 1
'Category', # 2
'Price', # 3
'Name', # 4
'Description', # 5
'Id', # 6
); # DO NOT REMOVE - terminates @field_names
# 0 | 1 | 2 | 3 | 4 | 5 | 6
# Item | Shipping | Category | Price | Name | Description | Id
# NOTE: First element of an array is '0'.
# $category_fld_num is the array index number of the "Category" field
# within each database record of outlet.data.
$category_fld_num = '2';
# $item_fld_num is the array index number of the item field or the item's
# inventory control number field within each database record of outlet.data.
# When printing database category displays or search result pages, WebStore
# prints name anchors in each item's table row using the value present in
# the item field.
#
# Spaces in the item field value are replaced with _ (underscore) in name
# anchors.
#
# Name Anchor:
# Enables the use of &buy_item=ItemNumber and &view_item=ItemNumber in
# WebStore query strings. Refer to /Docs/query_string.html for details.
# Setting $item_fld_num = '' disables name anchor generation and the use of
# &buy_item=ItemNumber and &view_item=ItemNumber.
$item_fld_num = '0';
# $price_fld_num is the array index number of the "Price" field
# within each database record of outlet.data.
$price_fld_num = '3';
#--------------------------------------------------------------------------#
# Client Form Files
#--------------------------------------------------------------------------#
# $password_file is the forms setup file clients will use to gain access
# to WebStore. The client's order form file must exist in the
# /Databases/Clients/Restricted sub-directory or access to WebStore is denied.
# WebStore adds '.setup' to the filename listed in $password_file if the
# filename does not end in '.setup'.
# Set $password_file equal to the setup filename configured for the type of
# access fields you will be using:
#
# Setup Filename Type of Access Fields
#
# Access.Restrict.Password.setup E-mail Address and Password
# Access.Restrict.Phone.setup E-mail Address and Phone Number
# Setting $password_file = '' disables restricted access to WebStore.
# Client form file access is controlled by $client_file (below).
$password_file = '';
# $def_username and $def_password are the default username and password given
# to clients to permit access when WebStore is configured for restricted access
# (filename defined in $password_file).
# When entering WebStore using $def_username and $def_password, clients must
# create and submit an account file before access to WebStore is permitted.
# WebStore sets $def_username and $def_password = '' when no filename is defined
# in $password_file.
# Setting $def_username = '' and/or $def_password = '' disables the use of
# the default username/password access method when WebStore is operating under
# restricted access. The client must have an order form file present in the
# /Databases/Clients/Restricted sub-directory in order to access WebStore.
$def_username = "demo\@ratite.com";
$def_password = 'demo1234';
# $deny_access_url is an absolute URL of an HTML page clients are directed
# to when client file access is denied when WebStore is configured for
# restricted access.
# When the number of failed form submission attempts exceeds the value of
# $access_attempts (below), WebStore prints an HTML page directing the client
# to the web page defined in $deny_access_url.
$deny_access_url = $return_link_url;
# $client_file is the forms setup file clients will use to modify their existing
# form file in the /Databases/Clients sub-directory.
# When a setup file is defined in $password_file, the value assigned to
# $client_file is disregarded.
# WebStore adds '.setup' to the filename listed in $client_file if the
# filename does not end in '.setup'.
# Set $client_file equal to the setup filename configured for the type of
# access fields you will be using:
#
# Setup Filename Type of Access Fields
#
# Access.Client.Password.setup E-mail Address and Password
# Access.Client.Phone.setup E-mail Address and Phone Number
# Setting $client_file = '' disables the use of client form files for
# retrieving client form field data.
$client_file = 'Access.Client.Phone.setup';
# $retrieve_file is the form setup file WebStore will use to retrieve a
# client's form file in the /Databases/Clients sub-directory when a client
# goes to the order form. The client may also select the method of payment
# when %form_files (below) is configured for multiple order forms.
# WebStore will not print the form defined in $retrieve_file when going to
# the order form when the existence of the client's form file was previously
# verified and %form_files is configured for a single order form in
# WebStore adds '.setup' to the filename listed in $retrieve_file if the
# filename does not end in '.setup'.
# Set $retrieve_file equal to the setup filename configured for the type of
# access fields you will be using:
#
# Setup Filename Type of Access Fields
#
# Client.Retrieve.Password.setup E-mail Address and Password
# Client.Retrieve.Phone.setup E-mail Address and Phone Number
# Setting $retrieve_file = '' disables printing of a client retrieval form
# when going to the order form. WebStore will print the default order form
# defined in %form_files. The client may switch order forms by selecting an
# alternative payment method near the top of the default order form.
$retrieve_file = 'Client.Retrieve.Phone.setup';
# $client_delete_age limits the age of client form files stored in the
# /Databases/Clients or /Databases/Clients/Restricted sub-directory.
# When a filename is defined in $password_file (above), files are checked in
# the /Databases/Clients/Restricted sub-directory.
# When $password_file = '', and a filename is defined in $client_file (above),
# files are checked in the /Databases/Clients sub-directory.
# Example Settings:
# $client_delete_age = '6' 6 months
# $client_delete_age = '12' 12 months
# $client_delete_age = '18' 18 months
# $client_delete_age = '24' 24 months
# Setting $client_delete_age = '' disables age deletion of client files from
# the /Databases/Clients or /Databases/Clients/Restricted sub-directory.
$client_delete_age = '24';
# @client_fields is a listing of the record structure present in the client
# order form files.
# @client_fields is a listing of form field names used in all forms in
# WebStore.
# The client selected shipping method and sales tax ('ship' and 'tax') are
# added to the client's record when an order is submitted.
# WebStore add two fields to the client's record after the tax field:
# Order Reference 990815114601967
# Date 1999 08 15
#
# The Order Reference number and Date are written to the client's record
# when an order is submitted.
@client_fields = (
# Form Name Field Label
'nameFirst', # First Name
'nameLast', # Last Name
'name', # Full Name
'company', # Company
'addr1', # Address 1
'addr2', # Address 2
'addr3', # Address 3
'city', # City
'state', # State
'province', # Province
'country', # Country
'zip', # Zip/Postal Code
'phone', # Phone
'fax', # Fax
'email', # E-mail Address
'shpNameFirst', # Ship First Name
'shpNameLast', # Ship Last Name
'shpName', # Ship Full Name
'shpAddr1', # Ship Address 1
'shpAddr2', # Ship Address 2
'shpAddr3', # Ship Address 3
'shpCity', # Ship City
'shpProvince', # Ship Province
'shpState', # Ship State
'shpCountry', # Ship Country
'shpZip', # Ship Zip/Postal Code
'shpPhone', # Ship Phone
'shpIns', # Shipping Instructions
'password1', # Password
'ship', # Shipping Method
'tax', # Sales Tax
); # DO NOT REMOVE - terminates @client_fields
# $usr_fld_name defines the field name of the user id field in the client's
# order form file, defined in @client_fields (above).
$usr_fld_name = 'email'; # E-mail Address
# $pwd_fld_name defines the field name of the password field in the client's
# order form file, defined in @client_fields (above).
# WebStore uses the client's e-mail address and phone number (or password)
# to construct the account filename: susan@cgicentral.net~4096872400.client
# The value of $pwd_fld_name is dependent on the access file you defined in
# $client_file or $password_file when operating in restricted mode.
#
# Set the field name in $pwd_fld_name according to the following:
#
# Filename defined in Variable Settings
# $client_file or $password_file
#
# Access.Restrict.Password.setup $pwd_fld_name = 'password1';
# Access.Client.Password.setup
#
# Access.Restrict.Phone.setup $pwd_fld_name = 'phone';
# Access.Client.Phone.setup
$pwd_fld_name = 'phone'; # Phone
# $access_attempts is the number of form submission attempts allowed for the
# %ClientAccess and %ClientRetrieve forms in the file defined in $client_file.
# $access_attempts is a whole number, greater than 1, defaulting to 3 if
# mis-configured.
$access_attempts = '3';
# When $admin_file_email = 1, send client file update e-mail to the
# store administrator.
# Setting $admin_file_email = '' disables client file update e-mail to the
# store administrator.
$admin_file_email = '';
#--------------------------------------------------------------------------#
# Product Resellers
#--------------------------------------------------------------------------#
# $reseller_data_file is the | (pipe) delimited flatfile database of resellers.
# Depending on the values assigned to $reseller_file and $reseller_spreadsheet
# (below), reseller records may be automatically added to the reseller database
# by WebStore or manually added to the reseller database using WS Editor.
#
# The setup file for editing the reseller database using WS Editor is
# Resellers.data_editor.setup.
# WebStore maintains a second reseller database, Resellers.data.readonly,
# which is accessed for reseller retrieval whenever Resellers.data is locked
# in write mode.
#
# The read only filename is constructed using the filename defined in
# $reseller_data_file: $read_file = $reseller_data_file.'.readonly';
#
# WebStore updates the read only database when a file size difference exists
# between Resellers.data and Resellers.data.readonly.
# WebStore generated reseller codes consist of the reseller's country code,
# state code (00 for foreign countries), and the cart reference number defined
# when a reseller application is submitted:
#
# Reseller code example: 31953-990806010728290
#
# 319 = United States
# 53 = Texas
# 990806010728290 = Cart reference number
# Links pointing to your WebStore from a reseller's html document must include
# the rsc= name=value pair for the reseller's code in the query string:
#
# http://www.YourDomain.xxx/Web_store/ws400.cgi?rsc=31953-990806010728290
# Setting $reseller_data_file = '' disables all reseller functions in WebStore.
# No reseller order e-mail message is generated.
# $reseller_data_file = 'Resellers.data';
$reseller_data_file = '';
# $reseller_file is the forms setup file clients will use to apply for
# product reselling.
# WebStore adds '.setup' to the filename listed in $reseller_file if the
# filename does not end in '.setup'.
# Reseller form submissions are added to the reseller database defined in
# $reseller_spreadsheet (below).
# Setting $reseller_file = '' disables the addition of reseller form input
# records to the reseller database defined in $reseller_spreadsheet.
$reseller_file = 'Form.Reseller.setup';
# $reseller_spreadsheet is the | (pipe) delimited flatfile database of reseller
# applications ($reseller_file form submissions).
# The filename 'Resellers.data.txt' is WS Editor's spreadsheet filename for the
# reseller's database, 'Resellers.data', defined in $reseller_data_file (above).
#
# The WS Editor setup file for the reseller spreadsheet is
# Resellers.data.txt_editor.setup.
#
# Using WS Editor and the setup file for the reseller spreadsheet, you may
# delete or modify reseller applications before merging the spreadsheet into
# the reseller database, 'Resellers.data'.
#
# After verifying the records in the spreadsheet, switch to the WS Editor setup
# file for the reseller database, Resellers.data_editor.setup.
#
# WS Editor will detect the presence of the reseller spreadsheet and switch
# you to the spreadsheet conversion page where you may merge the records
# from the spreadsheet into the reseller's database, 'Resellers.data'.
# Setting $reseller_spreadsheet equal to the same filename defined in
# $reseller_data_file (above) will write reseller application records directly
# to the reseller database. Resellers become active immediately.
# Setting $reseller_spreadsheet = '' disables the addition of reseller form
# input to a database. Resellers must be added to the reseller database using
# WS Editor.
# $reseller_spreadsheet = 'Resellers.data.txt';
$reseller_spreadsheet = $reseller_data_file;
# %RESELLER_FIELDS is a listing of the record structure in the reseller
# database defined in $reseller_data_file and $reseller_spreadsheet.
# The field names in %RESELLER_FIELDS are a listing of the form fields present
# in %Form in the reseller's secondary form file, Form.Reseller.setup.
#
# Field names changed in %Form in Form.Reseller.setup must be changed in
# %RESELLER_FIELDS. Field names in %Form which do not match a field name in
# %RESELLER_FIELDS will not be written to the reseller database.
#
# Fields removed from %Form which exist in %RESELLER_FIELDS or optional fields
# not completed by the reseller applicant will store a blank field in the
# reseller database.
#
# The field names 'rsc', 'name', 'email', 'state', and 'country' can not be
# changed.
# The field named 'rcs' must be database field 0, $RESELLER_FIELDS{00}.
%RESELLER_FIELDS = (
# KEY Field Name E-mail Label Dbase Field
'00' => ['rsc', 'Reseller Code'], # 0
'01' => ['name', 'Name'], # 1
'02' => ['company', 'Company'], # 2
'03' => ['addr1', 'Address 1'], # 3
'04' => ['addr2', 'Address 2'], # 4
'05' => ['city', 'City'], # 5
'06' => ['state', 'State'], # 6
'07' => ['country', 'Country'], # 7
'08' => ['zip', 'Zip/Postal Code'], # 8
'09' => ['phone', 'Phone Number'], # 9
'10' => ['fax', 'Fax Number'], # 10
'11' => ['email', 'E-mail Address'], # 11
'12' => ['urlpage', 'Web Page URL'], # 12
); # DO NOT REMOVE - terminates %RESELLER_FIELDS
# @reseller_include_files is a listing of template text files used to display
# reseller information when a value is present for rsc=, r_data=, and WebStore
# is configured for resellers.
# Reseller information is retrieved from the reseller database for substitution
# into these template text files.
# The contents of the files listed in @reseller_include_files are substituted
# into parsed HTML pages by adding hidden text tags using the file's name.
# Example:
#
# Whitespace is not allowed in reseller include hidden text tags.
# WebStore ignores hidden text tags which contain whitespace.
#
# Hidden text tags are replaced with the associated file's contents.
#
# Files listed in @reseller_include_files must be located under the /Html
# sub-directory or any sub-directory you may create under /Html.
#
# When files are placed under sub-directories, the sub-directory must be listed
# in the hidden text tag:
# When a file does not exist under the /Html directory, WebStore writes a
# FILE NOT FOUND message in the file's associated hidden text tag:
#
#
# cart_id= substitution occurs on the contents of substituted files.
# Substitution of the reseller's information into the contents of the reseller
# text file is accomplished using hidden text tags containing the field names
# present in element zero of %RESELLER_FIELDS:
#
# Reseller Code
# Name
# Company
# Address 1
# Address 2
# City
# State
# Country
# Zip/Postal Code
# Phone Number
# Fax Number
# E-mail Address
# Web Page URL
#
# Field names ending in email, case insensitive, are converted to MAILTO tags.
#
# Field names ending in img or imgexist, case insensitive, are converted to
# IMG SRC tags. If present, the reseller's referring web page URL is wrapped
# around the IMG SRC tag in an HREF anchor which targets "top".
#
# Field names ending in url, urlexist, and urlpage, case insensitive, are
# converted to HREF tags which target "top".
# Setting @reseller_include_files = () or $reseller_data_file = '' disables the
# use of the reseller template text files.
@reseller_include_files = (
# 'include.reseller.txt',
# 'include.reseller.category_page.txt',
# 'include.reseller.item_page.txt',
); # DO NOT REMOVE - terminates @reseller_include_files
# $rsc_name_fld_num, $rsc_mail_fld_num, and $rsc_urlpage_fld_num are the field
# numbers in the reseller database for the reseller's name, e-mail address, and
# web page URL respectively.
# $rsc_name_fld_num can be set to the reseller's name field or company field.
# When a client enters your store from a reseller advertising web page and a
# valid reseller code exists in a name=value pair for rsc= in the query string,
# WebStore uses the contents of these fields to replace the values for
# $return_link_url, $return_link_title, $email_link_url , and $email_link_title
# when printing links at the bottom of WebStore parsed pages.
#
# A reseller code is valid when it exists in the reseller database.
# The reseller's web page URL is also used to print an href anchor near the top
# of the confirmation of order HTML page.
# Reseller Dbase Field
$rsc_name_fld_num = '2'; # Company
$rsc_mail_fld_num = '11'; # E-mail Address
$rsc_urlpage_fld_num = '12'; # Web Page URL
#--------------------------------------------------------------------------#
# Realtime Payment Processing
#--------------------------------------------------------------------------#
# $merchant_file is the merchant configuration file for the real-time payment
# processor you are using.
# WebStore supports the following real-time processors:
#
# Processor Name Merchant Configuration Filename
# -------------- -------------------------------
#
# Authorize.Net merchant.authorizenet.cfg
# Surepay merchant.surepay.cfg
# The Processor Name must be included in the Merchant Configuration Filename.
# For example, "Surepay" must be included as part of the filename for the
# Surepay merchant configuration file, merchant.surepay.cfg. The Processor
# Name is case insensitive in the Merchant Configuration Filename.
# Merchant configuration files are located in the /Library sub-directory.
# The /Library sub-directoy should be placed under HTACCESS.
# Modify the variables in the merchant configuration file you are using.
# Variables included in the configuration file are your merchant ID, merchant
# password, etc.
# Setting $merchant_file = '' disables real-time payment processing.
$merchant_file = '';
#--------------------------------------------------------------------------#
# Order Form
#--------------------------------------------------------------------------#
# $country_file contains two hash of arrays, %countries and %states,
# used to perform required fields checking of country and state form
# inputs on all forms used in WebStore.
# WebStore adds '.setup' to the filename listed in $country_file if the
# filename does not end in '.setup'.
$country_file = 'outlet.state_country.setup';
# $pre_form_file is the form setup file WebStore will use to determine the
# client's sales tax liability, shipping method preference, payment method
# preference, etc.
# WebStore adds '.setup' to the filename listed in $pre_form_file if the
# filename does not end in '.setup'.
# WebStore will not print the form defined in $pre_form_file prior to printing
# WebStore's order form if the values requested by this form were previously
# determined during client form file verification.
$pre_form_file = 'Pre.OrderForm.setup';
# %form_files is a hash of arrays listing WebStore's order form setup files.
# WebStore is packaged with pre-configured sets of order form setup files.
# One set of files is included for those who do not use real-time processing.
# One set of files is included for each real-time processor WebStore supports.
# Refer to /Docs/OrderForm.html for order form setup file details.
# Additional information for real-time processor form files may be found in
# the following documents:
#
# Authorize.Net /Docs/rp.AuthorizeNet.html
# Surepay /Docs/rp.Surepay.html
# Element zero of each array lists an order form's filename in the /Databases
# sub-directory. WebStore adds '.setup' to the filename listed in element
# zero if the filename does not end in '.setup'.
# Element one is the order form's descriptive label.
# Filenames beginning with 'Demo' include values for credit card and check
# fields or special diagnostic fields for real-time processor testing.
# 'Demo' is included in the Label in element one of demonstration files.
# WebStore sorts the arrays in %form_files by their KEYS, in ascending order.
# The array with the least significant KEY becomes the default order form
# printed by WebStore when no payment method is selected by the client.
# $form_files{10} is the default order form in the distributions of WebStore.
%form_files = (
# Not using real-time processing:
#
# KEYS zero - Filename one - Label
'10' => ['OrderForm.CreditCard.setup', 'Credit Card'],
'11' => ['OrderForm.Check.setup', 'Personal Check - US citizens'],
'12' => ['OrderForm.FaxMail.setup', 'Fax or Mail your order'],
# '13' => ['OrderForm.CreditFaxMail.setup', 'Credit Card, Fax, or Mail'],
# '14' => ['Demo.OrderForm.CreditFaxMail.setup', 'Demo: Credit Card, Fax, or Mail'],
# Authorize.Net real-time processing:
#
# '20' => ['OrderForm.AuthorizeNet.CreditCard.setup', 'Credit Card'],
# '21' => ['OrderForm.AuthorizeNet.Check.setup', 'Personal Check - US citizens'],
# '22' => ['Demo.OrderForm.AuthorizeNet.CreditCard.setup', 'Demo Authorize.Net: Credit Card'],
# Surepay real-time processing:
#
# '30' => ['OrderForm.Surepay.CreditCard.setup', 'Credit Card'],
# '31' => ['OrderForm.Surepay.Check.setup', 'Personal Check - US citizens'],
# '32' => ['Demo.OrderForm.Surepay.CreditCard.setup', 'Demo Surepay: Credit Card'],
# '33' => ['Demo.OrderForm.Surepay.Check.setup', 'Demo Surepay: Personal Check - US citizens'],
); # DO NOT REMOVE - terminates %form_files
# $demo_form_file is the order form setup file used when $demo = '1' in
# ws_global.setup or when $demo = '' and the first URL accessing WebStore
# contains a name=value pair for demo: ws400.cgi?demo=Y
# When demonstration mode is activated, WebStore adds the demo form file to
# %form_files (above), immediately after the most significant KEY, labeling
# the file "Demonstration Form File". This order form becomes $form_files{13}.
# WebStore adds '.setup' to the filename listed in $demo_form_file if the
# filename does not end in '.setup'.
# Setting $demo_form_file = '' disables the use of the demonstration
# forms file.
$demo_form_file = 'Demo.OrderForm.CreditFaxMail.setup';
# $minimum_order is the minimum order subtotal allowed before WebStore
# will print the order form.
# $minimum_order is a fixed decimal number. Do not include a dollar sign
# or commas in $minimum_order.
# Setting $minimum_order = '' disables minimum order checking. WebStore's
# order form is available when the client's shopping cart contains one item.
$minimum_order = '25.00'; # '' = No minimum order checking
# %DISCOUNT lists percentage discounts for client orders.
# Discounts are based on the order's subtotal value or on the total number of
# items purchased.
# $DISCOUNT{1} lists order subtotal range values.
# $DISCOUNT{2} lists item quantity range values.
# Element zero of $DISCOUNT{1} and $DISCOUNT{2} is the field label printed
# to the client confirmation HTML page and to e-mail messages.
# The remaining elements of $DISCOUNT{1} and $DISCOUNT{2} are colon-delimited
# discount range values. Range values must be listed in ascending order.
#
# For $DISCOUNT{1} and $DISCOUNT{2}, the percentage discount is to the right
# of each colon. The value of percentage discount is a fixed decimal number.
# For example, .15 equals a 15% discount.
#
# For $DISCOUNT{1}, the value to the left of each colon is an order subtotal
# value. The percentage discount increases when the order's subtotal is
# greater than the subtotal value listed in an element of $DISCOUNT{1}.
#
# For $DISCOUNT{2}, the value to the left of each colon is an item quantity
# value. The percentage discount increases when the quantity of items ordered
# is greater than the item count listed in an element of $DISCOUNT{2}.
# Remove the discount array you will not be using or place # (pound signs) in
# column one of each element of the entire array ($DISCOUNT{1} or $DISCOUNT{2}),
# including the closing ] (square bracket).
# If you do not use discounts, %DISCOUNT may be removed from this file or you
# may place a # (pound sign) in column one for each line in the entire hash of
# arrays.
%DISCOUNT = (
# Subtotal Discount Discount Subtotal Value
'1' => ['Subtotal Discount',
' 75.00:0', # 0% $75.00 or less
'100.00:.10', # 10% $75.01 - $100.00
'125.00:.125', # 12.5% $100.01 - $125.00
'150.00:.15', # 15% $125.01 - $150.00
'175.00:.175', # 17.5% $150.01 - $175.00
'175.01:.20', # 20% $175.01 or more
],
# Quantity Discount Discount Items Purchased
# '2' => ['Quantity Discount',
# ' 2:0', # 0% 1 - 2
# ' 6:.10', # 10% 3 - 6
# '12:.125', # 12.5% 7 - 12
# '24:.15', # 15% 13 - 24
# '36:.175', # 17.5% 25 - 36
# '37:.20', # 20% 37 or more
# ],
); # DO NOT REMOVE - terminates %DISCOUNT
# %SHIPPING is a hash of arrays listing all shipping variables.
# %SHIPPING in this file is configured for DATABASE ITEM WEIGHT SHIPPING.
# For details on WebStore's four types of shipping configurations, refer to
# the following HTML support documents:
#
# /Docs/shipping.Dbase_Price.html Database Item Price Shipping
# /Docs/shipping.Dbase_Weight.html Database Item Weight Shipping
# /Docs/shipping.Rates_Percentages.html Fixed Rate and Percentage Shipping
# /Docs/shipping.Subtotal.html Subtotal Range Shipping
#
# The %SHIPPING hash of arrays may be copied directly from the files listed
# above into this file.
# Arrays 1, 2, and 10 must exist in %SHIPPING. If any of these arrays are
# not present, shipping is disabled in WebStore.
%SHIPPING = (
# Determines type of shipping
# Database Field, Handling, Free Shipping
'1' => ['1:L', '', ''],
# Domestic Shipping
'2' => ['319', '10','11','12','13'],
# Universal Weight Range Values
'3' => [ # Order Weight Shipping Charged
' 1: 6.95', # 1 - 4 lbs/kilos $6.95
' 5: 9.95', # 5 - 9 lbs/kilos $9.95
'10:12.95', # 10 - 14 lbs/kilos $12.95
'15:15.95', # 15 - 19 lbs/kilos $15.95
'20:20.00', # 20 - 24 lbs/kilos $20.00
'25:30.00', # 25 - 29 lbs/kilos $30.00
'30:45.00', # 30 lbs/kilos & up $45.00
],
# Shipping Methods
# 10 UPS Ground or Priority Mail: $7.00 plus .30/lb.
# 11 2nd Day Air: $12.00 plus .85/lb.
# 12 Standard Next Day Air: $20.00 plus 2.15/lb.
# 13 Alaska & Hawaii: $15.00 plus 2.00/lb.
# 14 Canadian Orders: $30.00 plus 2.05/lb.
# 15 International Orders: $40.00 plus 3.25/lb.
# Add Price/lb
'10' => ['UPS Ground or Priority Mail', '7.00', '.30'],
'11' => ['2nd Day Air', '12.00', '.85'],
'12' => ['Standard Next Day Air', '20.00', '2.15'],
# State Specific Shipping Method
'13' => ['Alaska & Hawaii', '15.00', '2.00', '11:21'],
# Country Specific Shipping Method
'14' => ['Canadian Orders', '30.00', '2.05', '132'],
'15' => ['International Orders', '40.00', '3.25'],
); # DO NOT REMOVE - terminates %SHIPPING
# If $tax = 1, sales tax is calculated and displayed on the order form when the
# client's billing state, province, or country contains a tax rate value in
# element 2 of %states, %provinces, or %countries in the file defined in
# $country_file (above).
# Store sales tax percentage values, in decimal format, in element 2 of %states,
# %provinces, or %countries in the file defined in $country_file.
#
# Examples of state array in %states with 6.75% sales tax:
#
# '53' => ['TX', 'Texas', '.0675'],
# '53' => ['TX', 'Texas', '.0675', '~~RATE~~ ~~STATE~~ Sales Tax'],
# Setting $tax = '' disables sales tax calculation. Tax rates present in
# %states, %provinces, or %countries in $country_file are disregarded.
$tax = '1'; # 1 = Yes
# $tax_label is displayed on WebStore's order form.
# Occurrences of ~~RATE~~ ~~STATE~~ ~~PROVINCE~~ and ~~COUNTRY~~
# found in $tax_label will be replaced with:
#
# ~~RATE~~ Tax rate in percentage format: 6.75%
# ~~STATE~~ US state from %states in $country_file
# ~~PROVINCE~~ Province from %provinces in $country_file
# ~~COUNTRY~~ Country from %countries in $country_file
# Example sales tax rate of .0675 and sales tax state of Texas:
#
# $tax_label = '~~RATE~~ ~~STATE~~ Sales Tax';
# $tax_label = '6.75% Texas Sales Tax';
# State, provincial, or country specific tax labels may be stored in element 3
# of %states, %provinces, or %countries in the file defined in $country_file
# (above).
$tax_label = '~~RATE~~ ~~STATE~~ Sales Tax';
# $mail_file is the | (pipe) delimited flatfile mailing list database
# consisting of e-mail addresses and names. When an order is submitted,
# the client's e-mail address and name are added to $mail_file if the
# submitted e-mail address does not exist in $mail_file.
# WebStore adds '.list' to the filename defined in $mail_file if the
# filename does not end in '.list'.
# Setting $mail_file = '' disables the use of the mailing list database.
# Example database record: susan@cgicentral.net|Susan Smith
$mail_file = 'WebStore.list';
# When $join_list = '1', clients are added to the mailing list defined in
# $mail_file regardless of the use or condition of the form field 'joinlist'.
# Setting $join_list = '' disables automatic addition to the mailing list.
# A form field for 'joinlist' must be included on the form and the client
# must choose to be added to the mailing list.
$join_list = '';
#--------------------------------------------------------------------------#
# Confirmation of Order HTML Page
#--------------------------------------------------------------------------#
# Order form fields printed to the Confirmation of Order HTML page are
# printed using 3 for fax orders. for credit card
# orders uses $data_font. for the entire page uses $data_face.
# $data_font and $data_face are defined in ws_global.setup.
# When $data_font is set to a value greater than '3', WebStore sets
# $data_font = '2' and $header_font = '3' for printing the Confirmation of
# Order page.
# To assure proper colors for printing of the Confirmation of Order page,
# color attributes within the opening tag are set by the script
# using the following values:
# $body{'background'} = ''; # No background
# $body{'bgcolor'} = '#FFFFFF'; # White
# $body{'text'} = '#000000'; # Black
# $body{'link'} = '#0000FF'; # Blue
# $body{'alink'} = '#FF0000'; # Red
# $body{'vlink'} = '#0000A0'; # Dark Blue
# "Send Order to My Web Browser for Printing" may be disabled by removing
# it's form submit button from the order form.
# If $fax_signature = 0, never print client signature line on fax orders.
# If $fax_signature = 1, print client signature line in the credit card
# section of fax orders when any credit card field is not completed on
# the order form.
# If $fax_signature = 2, always print client signature line in the credit
# card section of fax orders.
$fax_signature = '2';
# If $delete_cart = '1', delete the client's shopping cart file after
# successful order form submission, preventing the client from performing
# multiple form submissions. The client's cart is deleted after the
# entire confirmation of order page has been printed to the client's web
# browser.
# Setting $delete_cart = '' disables cart file deletion.
$delete_cart = '';
#--------------------------------------------------------------------------#
# Email Messages: ADMINISTRATIVE & CONFIRMATION OF ORDER (sent to client)
#--------------------------------------------------------------------------#
# @email_numbers array lists the array index numbers for each field to be
# included in the confirmation e-mail to client and e-mail to administrator.
# If you use the "Shipping" field, never set the "Shipping" field for
# display. It is used for calculating shipping costs only.
# 0 | 1 | 2 | 3 | 4 | 5 | 6
# Item | Shipping | Category | Price | Name | Description | Id
# NOTE: First element of an array is '0'.
# 0 3 4
# Item, Price, Name
@email_numbers = ('0', '3', '4');
# %email_fields_array is a hash which defines the alignment attribute for
# each field in @email_numbers. Numeric fields are normally right justified
# while alpha and alpha-numeric fields are left justified.
# Valid alignment values are 'left' and 'right'.
# NOTE: First element of an array is '0'.
%email_fields_array = ( # Field alignment in e-mail messages
'0' => 'right',
'3' => 'right',
'4' => 'left',
); # DO NOT REMOVE - terminates %email_fields_array
# $label_align defines the alignment attribute for form field labels for all
# forms in WebStore. Valid alignment values are 'left' and 'right'.
# LABELS ALIGNED left:
#
# Type of Card: Visa
# Name on Card: Susan Smith
# Card Number: 4111 1111 1111 1111
# Expiration Month: January - 01
# Expiration Year: 2003
# LABELS ALIGNED right:
#
# Type of Card: Visa
# Name on Card: Susan Smith
# Card Number: 4111 1111 1111 1111
# Expiration Month: January - 01
# Expiration Year: 2003
# $label_align defaults to 'left' if mis-configured.
$label_align = 'left';
# If $item_subtotal = 1, include the subtotal of each item the client has
# ordered in the e-mail to client and e-mail to administrator.
# An item subtotal equals the quantity of an item multiplied by the item's
# unit price. Item subtotals are appended to the item's row, right justified
# (mandatory).
# Setting $item_subtotal = '' disables the addition of item subtotals
# to e-mail messages.
$item_subtotal = '1'; # 1 = Yes
# $email_subject used as SUBJECT of e-mail to customer and administrator.
# The client's order identification number is appended to the SUBJECT:
# RDC Software Order: [980712040921989]
$email_subject = $global_page_title.' Order';
# $message_columns is the maximum number of characters per line in the
# client's confirmation of order e-mail and the administrative order
# e-mail for WebStore's order form.
# $message_columns also controls line lengths in e-mail messages
# generated by WebStore's secondary form processor and the line length
# of the message separator character string defined in $message_divider
# (below) in all e-mail messages generated by all forms.
# Reformatting long text lines is performed on the contents of
# $pre_client_msg, $app_client_msg, and