Chapter 2: Installing and Using NetStores
With NetStores, you can allow your customers to pay you in a wide array of ways. Payment methods can include CyberCash, credit cards (which can be validated by CyberCash), and COD.
If you have the optional NetStores EDI Link module, you can also accept payment by purchase order. See "Purchase orders and EDI" for details.
/params.shto tell NetStores what types of discounts to provide:
For example, if
ORDPCT="5|10|15", then orders from $100 to $999.99 are discounted
by 5%, orders from $1000 to $4999.99 are discounted by 10%, and orders of
$5000 or more are discounted by 15%.
cusfil) that contains a value indicating which price field in
itmfil.ascto use for this customer. If the value in this field of
cusfilis 0 (zero) or blank, NetStores uses the first price field. If the value is 1 (one), NetStores uses the second price field (and so on).
If you want to allow customers to open their own accounts with the gen-acct
form, you should set CUSPRC to 32. If you generate your own
cusfil from a database, you can put the CUSPRC value in any
field you aren't using. See "Creating account
and transaction files" for information on creating the
/params.shto tell NetStores how to calculate sales tax:
itmfil.ascthat contains a "1" (one) if the item is subject to sales tax and a "0" (zero) if the item is nontaxable.
where state_code is the postal abbreviation matching a code in the definition of the TAXSTATE parameter, and rate_expression is:
where part_# is:
where rate is the sales tax rate (for example, .0725) and
zip_expr is a UNIX regular expression. Regular expressions are described
in the UNIX
man page for "
ed" and can be fairly
complex. However, for sales tax, you generally want to specify a range of
zip codes. To specify a zip code range from 90100 to 90799, use an expression
^90[1-7], which matches all zip codes beginning with 10
with a third digit from 1 to 7. For example, here is a sample value for TAXZIP:
This means that in New York, zip codes in the 11000s, 11300s, 11400s, and 11600s have a tax rate of .085. Zip codes from 10000 to 10999 and zip codes in the 11200s have a tax rate of .0825. And, zip codes from 12000 to 14999 have a tax rate of .04.
custshipshell script in your
./dwos/data/store-abbrevdirectory. NetStores passes the number of items ordered ($1 parameter) and the total cost of the order ($2 parameter) to this script. No shipping method is passed to this script in the $3 parameter, but you can modify the script to add a charge for the shipping method you will use.
custship file provided in the
./dwos/data/cat directory charges based on the number of items
ordered and does not charge if the customer orders more than three items.
custship file provided in the
./dwos/data/srch directory charges for postage based on the
number of items orders and for handling based on the total cost of the order.
./dwos/data/store-abbrev directory. This file should list the types of payment you want to accept (one per line). NetStores will use this list when it creates the field in the Order Acceptance form that lets customers choose how they want to pay for the order. For example, a file that listed all the payment options NetStores recognizes would look like this:
Visa MasterCard AmEx Discover CyberCash Wallet Terms COD Quote
/params.shto tell NetStores how to process the Order Acceptance form:
Accept and Add More"
<h4>Type the shipping method you want used here:</h4>"
CMNTREQ=1and a customer does not provide a Comment. For example, "
<B>You must request a specific shipping method. Click your BACK button and type one please.</B>"
/params.shto tell NetStores how to handle invoices and receipts:
"Qty Stock # Description Price Ext"
./dwos/data/store-abbrev directory that contains the message you want to email or fax to customers who request order confirmation. NetStores will replace EMWAIT in this file with the value of the EMWAIT parameter, ORDNO with the order number, and ORDDAT and ORDTIM with the current date and time.
/params.shto tell NetStores how to handle credit card payments:
<P>SSL encryption will be used to protect your credit card numbers if you are using a browser such as Netscape that supports SSL."
800-555-3456". (The default
./dwos-bin/faxdocscript sends the fax remotely from
megamart.com. Edit this script to send faxes using the appropriate commands for your server. NetStores sends the MERCHFAX phone number as a parameter to this script.)
Jack Dolittle and Associates".
./dwos/data/store-abbrev directory. Put your store's name, address, and phone numbers in this file as you want them to appear in the header of the receipt that is emailed or faxed to customers who request confirmation.
|NetStores Administrator's Guide|
2: Installing and Using NetStores
4: Technical Reference