				---------------------------
				Shop-Script :: Free version
				---------------------------

		+---------------------------------------------------+
		|                                                   |
		|   This is a free version of commerically          |
		|   distributed script Shop-Script, that can be     |
		|   found at http://www.shop-script.com             |
		|                                                   |
		+---------------------------------------------------+

Contents:
 1. About this script.
 2. Installing on local server.
 3. Installing on remote server.
 4. Database structure.
 5. Files.

 ------------
 About script
 ------------

Script is written on PHP with the use of MySQL.
It consist of 2 parts: public and administrative.
Public: offers catalog with ability to add offers/goods to the shopping cart and plce orders.
Administrative: here you can add categories, offers/goods and watch for new orders.
Access it by running <your shop URL>/cfg/admin.php

 --------------------------
 Installing on local server
 --------------------------

You need Apache (or any other HTTP-server), PHP4 and MySQL to be installed.

1. Copy all archive content to your web-server directory.
2. Move 'database' dir to you mysql/data directory and rename it however you want.
3. In cfg/connect.inc write connection settings.
   Notice, that $DB_NAME should equal the name of database directory.
4. Set goods_pictures attributes to 0775, if you use UNIX.
5. Have fun :)


 ---------------------------
 Installing on remote server
 ---------------------------

1. Copy all archive content to your web-server directory.
2. In cfg/connect.inc write connection settings.
3. Using any MySQL manager create new database (name it however you want
   according to this new name change $DB_NAME value)...
4. Run install.php
5. Set goods_pictures attributes to 0775.
6. Have fun :)

P.S. Don't forget to limit access to cfg/ directory (f.e. by .htaccess-files is you use Apache).


 ------------------
 Database structure
 ------------------

4 tables:

1. Categories:
	+-------+--------+
	|  CID  |  Name  |
	+-------+--------+

	CID (INT PRIMARY KEY) - category ID
	Name (CHAR(30)) - category title

2. GoodsList:
	+-----+----+------+-------+---------+
	| CID | ID | Name | Price | Picture |
	+-----+----+------+-------+---------+

	CID (INT) - categories IDs, offers are distributed between
	ID (INT) PRIMARY KEY - offer's ID
	Name (CHAR(200)) - title
	Price (FLOAT) - price
	Picture (CHAR(40)) - picture filename (all images are being uploaded to goods_pictures/ directory)

3. Orders:
	+-----+------+-------+---------+
	| OID | Name | Email | Address |
	+-----+------+-------+---------+

	OID (INT PRIMARY KEY) - order ID
	Name (CHAR(50)) - customer's name
	Email (CHAR(50)) - his email
	Address (CHAR(100)) - address

4. OrderedCarts: all ordered offers are held in this table

	+-----+----------+-----+
	| GID | Quantity | OID |
	+-----+----------+-----+

	GID (INT) - offer's ID
	Quantity (INT)
	OID (INT) - order ID


 -----
 Files
 -----

Public:

style.css - CSS

head.incl - "head"-script (top of the page + some functions)

index.php - main page: categories, offers, homepage, etc.

order.php - proceeding to checkout

completeorder.php - place order

cart.php - shopping cart

install.php - install script. Creates all required tables


Administration:

cfg/admin.php - main admin page

cfg/goods.php - offers/goods administration

cfg/categories.php - categories administration

cfg/connect.inc - connection settings


Have any question/problems? Write on support@shop-script.com

Information on other script version can be found @ www.shop-script.com