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.
./dwos/data/
store-abbrev/params.sh
to tell
NetStores what types of discounts to provide:
100|1000|5000
".
For example, if ORDDISC="100|1000|5000"
and
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.asc
to use for this customer. If the value
in this field of cusfil
is 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
cusfil
.
./dwos/data/
store-abbrev/params.sh
to tell
NetStores how to calculate sales tax:
itmfil.asc
that contains a "1" (one) if the item is
subject to sales tax and a "0" (zero) if the item is nontaxable.
NY|CA|TX
".
ZIP|.075|.06
".
state_code|rate_expression|state_code|rate_expression
where state_code is the postal abbreviation matching a code in the definition of the TAXSTATE parameter, and rate_expression is:
part_1;part_2;...;part_n
where part_# is:
zip_expr,zip_expr,...,=rate
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
like ^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:
NY|^11[0346],=.085;^10[0-9],^112,=.0825;^1[100%],=.04
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.
custship
shell
script in your ./dwos/data/store-abbrev
directory. 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.
The example 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.
The example 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.
payopt
in the
./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
./dwos/data/
store-abbrev/params.sh
to tell
NetStores how to process the Order Acceptance form:
Accept and Add
More
"
<h4>Type the shipping method you want used
here:</h4>
"
CMNTREQ=1
and 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>
"
./dwos/data/
store-abbrev/params.sh
to tell
NetStores how to handle invoices and receipts:
"Qty Stock # Description Price Ext"
emconf
in the
./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.
./dwos/data/
store-abbrev/params.sh
to 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/faxdoc
script 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.)
orders@JacksPets.com
".
Jack Dolittle
and Associates
".
www.netstores.com/dwos-bin/post-form.
invhdr
in the
./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 | |
---|---|
1: About
NetStores 2: Installing and Using NetStores |
3:
Troubleshooting 4: Technical Reference |