
PgMarket is developed using PostgreSQL 7.0.x
If you are using PostgreSQL 6.5.x, please read the file
PostgreSQL-6.5.txt in this directory.
If you want to use MySQL instead of PostgreSQL, please download
the MySQL module.

Extract the tarball in the web shop directory tree.

Choose the application-??.inc.php best suited to your needs,
rename it as application.inc.php, and customize it
(I hope it is sufficiently self-explanatory :)

Create the database and set it up through the included PostgreSQL dumps.
pgmarket.start.dump has to be used to obtain an empty market without
any user apart the root;
pgmarket.demo_data.dump is related to the demo site, whose images are provided
in a distinct tarball (have you donloaded also it ?  If you previously
downloaded version 0.99, you don't need to download again the images,
as they are the same).
The default root password is "password" (change it immediately !!!).
in postgresql.dump a user is provided: pratesi (me :), with password
"marco71" (yes, I'm still young... but that's not my real password ;)))

The "products" directory is used to upload product images,
hence it must be writable for the web server.

Starting from version 1.0.0, PgMarket uses .inc.php files
instead of .inc files.
The web server MUST REFUSE http requests for .ihtml files
(and possibly for .inc.php files, too): do not forget that
application.inc.php contains the password to access the database
(pay attention to the FTP service, too).
Anyway, these security issues are surely beyond these installation
instructions: you should already be acquainted with these topics.

Thumbnails are created through a system call to UNIX;
you must have the programs djpeg, giftopnm, pngtopnm, pnmscale, cjpeg.
By default, I suppose they are in /usr/bin ; edit the value of
$CFG->pnmpath in application.inc.php if this is not your path.

Fill your web shop after logging in as "root".
Add categories and subcategories to organize your products.
Remember: a product can belong to more than one category;
products are shown ordered by special_level ; products with
special_flag = 1 are shown in the home page,
in the Special Products section.

Customize cart.inc.php to set the right delivery price depending
on the shopping cart weight.

Customize the global.inc.php and template (.ihtml) files to your needs.

Notes: if you update a product, you don't need to specify the image again;
if you omit it, the old image continues to be used; if you want to update
the image, select a new image while updating the product.

Send me an e-mail... I am happy to know that you are using PgMarket
(can you link the PgMarket's home page ?  I would appreciate it very much.)

Marco Pratesi
--
http://www.telug.it
pratesi@telug.it

