University of Bahrain
Information Technology College
Computer Science Department
Semester 1, Year 2006/2007
ITCS 373: Class Lab Work
E-commerce1
Instructor: Dr. Eshaa M. Alkhalifa
You should know
how to write server side scripts by now.
I will give you a copy of freely availably shopping cart scripts that
you must install on your own.
- Click on the icon to start the installation
process. Accept the
agreement. It will as you if it is
to install it to a remote machine or this machine. Choose the option to install it to
this machine. Click on next.
- It will ask you: this installer will save the files
into the location specified below so
click on the browse button to the right to find this directory on your
computer c:\AppServ\www\ShopScript\ and if it does not exist, make a new ShopScript directory on your computer, and then find
it. Click on next.
- It will ask you for the URL of the server, check that
your server is working by opening a browser window to localhost. If it is not working turn it on manually
through start/programs/AppServ/control server
by manual/Apache start.
- Type the word localhost/ShopScript
as your URL. Then click on
next. Do not click on the checkbox.
- Click on install and then click on finish.
- It will open a browser window that looks like the one
below;

- You must fill in the data required. Your user name is “user” because
we added this user name to our database, and our password is “pass”. The database name is “ourdata”.
- To make extra sure that this works properly, go to phpmyadmin and make sure that you delete every
single table you have in that database.
You select your database that is called ourdata
then select each table from the list on the left, and select the drop
tab at the top right of the screen.
- Make sure that the Fill database with demo content
checkbox is checked.
- Click on install.
It will tell you that the installation is successful, then you must
click on proceed to my shopping cart.
- You will now see another screen that looks like this

- It tells you to delete the file that is called install.php from the shop-script folder. So you go to the folder which is located
at c:\AppServ\www\ShopScript\ and delete the file install.php.
- Refresh the screen and you will notice that the
comment at the top has disappeared.
- Browse through your shopping cart and add items as
you wish.
- Click on proceed to checkout and insert the following
information as shown below.

- Click on place order.
You will find a few errors appearing. 2 for email because we did
not install an email server. 1 for headers which implies that header
information is sent late within the text.
- Type
the following URL and go the page; http://localhost/ShopScript/access_admin.php
then type your user name which is admin and password 1234.

- You
will see the page displayed above which represents the control panel of
your shopping cart.
- Go to
the catalog tab. Click on Alcohol
which is directly below beverages.
We do not wish this category to exist in our store. Wait until you see the screen on the
right. Uncheck the checkboxes next
to the drinks below the Enable column, then click on save. Open a new screen and check that the
drinks disappeared from the store.
However the category alcohol still exists.
- Go
back to the browser window that shows you the admin page and click
on edit which is a hyperlink next to the category alcohol. A pop up window will appear. Click on Delete to delete this
category and then click on OK.
- Go
back to the admin page and refresh it to find that the alcohol
category has been deleted.
- Now go
to check the orders tab. You
will find the order that we attempted to make that failed listed there.
- Then
go to configuration. Here you can
insert information about your store. And Connect it to PayPal.