Chapter 2: Installing and Using NetStores
Depending on which type of storefront interface you decided to use, you'll perform different steps to set up your product list so NetStores can use it. This section, and the one on "Setting up the search (gen-srch) interface" describe the steps for creating stores with the various NetStores interfaces.
The storefront for the gen-cat interface includes any introductory text and images you want to use followed by a list of all your products. Internally, the catalog interface uses a hierarchy of directories and a series of HTML pages for each item. It also generates forms for ordering.
"Browse a small catalog (gen-cat)" For an online example of this interface, see http://www.netstores.com/dwos-bin/gen-cat?vcp or http://www.netstores.com/dwos-bin/gen-cat?dwts (use "1" for the account number and "captain" for the password.
The gen-cat interface can use the same set of files to keep track of customers,
transactions, and orders as the gen-srch interface. However, instead of listing
the items in
itmfil.asc, you create an
item hierarchy in the
Before you begin creating files, decide on the hierarchy of products you want to offer. For example, if you are selling pet supplies, your top-level categories might be Food, Toys, Grooming tools, and Training tools. Or, you might start with categories for Cats, Dogs, Birds, and Fish. It's helpful to draw a diagram or make a list of the product hierarchy you plan to create. For example:
You can have as many category levels in your hierarchy as you want. Also, different branches of the hierarchy can have different numbers of layers. Your hierarchy of categories and products will appear in nested bulleted lists on your storefront page.
Within each category of products, you can choose between two methods of storing prices and item descriptions. You can use different methods for different product categories.
cats" and "
directory.txtin the directory that contains the new subdirectories.
directory.txt file, put your description of this set
of categories in HTML format. This file will be included as a bulleted list
item and the text will be displayed in bold. Your description can be a single
line of text or lots of text with images and any HTML formatting you want
to use. (If you want to turn off bolding, put
the beginning of the
directory.txt file and
<B> at the end of the
PULL124" and "
CHEW246" in the "
NetStores creates a page for each item is using the files and parameters shown here:
PULL124" directory, create a file named "
This HTML file begins the page, so it should include
<BODY> tags. However, other files come after it, so don't
to end the page.
If you want to include the same image in many pages, put that image in the
and reference the image in the HTML file as if it were located in the
/images directory. (You created
a link between these two directories in the section on
"Creating directories and files for a store".)
If you want to include an image for this product only, put the image in the
directory and reference the image in the HTML file as if it were actually
located in the
image.giffile in this product directory if you place one there. NetStores uses the $CNAME, $BBGD, and $LOGO parameters you defined to do this.
desc.txtif you place it in the product directory. This file can contain any HTML you like. For example, you may want to copy standard headers to the
item_#.htmlfiles and put product descriptions extracted from your catalog in the
items(in the category directory) with the following format:
10003|Large Dog House|79.95 10004|Cat Bed|29.95 20001|Dog Training for Dummies|19.95
stylesthat lists the product subdirectories in the order you want them listed on the page. Put one directory name on each line. For example:
CHEW100%_DOG CHEW345_DOG FETCH678_DOG
desc.linthat contains a one-line description of the product.
colorsthat lists options (one per line) for a variable that does not affect the price (see the description of the "color" variable above). Your file might look like one of these examples:
Windows 3.1 Windows 95 Mac OS SPARC SunOS SPARC Solaris
Cardinal Red Snow White Forest Green Royal Blue Deepest Black
You can also use a
colors file if you are using the "items"
method. This is because the
colors file does not affect the
price. If you use a
sizes file, you must create all the files
described in this list (except the
colors file, which is optional).
sizesthat lists options for a variable that does affect the price (see the description of the "size" variable above) in the following format:
# is a number that will match the number in the
prices file you will create in the next step. Your file might
look like one of these examples:
100 orders/month|1 150 orders/month|2 250 orders/month|3 500 orders/month|4 Unlimited|5
6" tall|1 9" tall|2 12" tall|3 15" tall|4
sizesfile, you must also create a
pricesfile in the same directory to list the price for each option in the
sizesfile in this format:
# matches the number in the
sizes file. Your
file might look like this:
1|99.95 2|199.95 3|299.95
/params.shto control what the links to the next and previous page say:
/params.shto control what the buttons on the order form say:
/params.shto control the length of the fields in the order form and order acceptance form for customers using browsers that may not support tables:
|NetStores Administrator's Guide|
2: Installing and Using NetStores
4: Technical Reference