Professional Documents
Culture Documents
on
ONLINE
SHOPPING
PORTAL
By
Nikhil Sharma
Guru Nanak Dev University, Amritsar
Roll no-872097
B.TECH-8thsem
1
INTRODUCTION TO ONLINE SHOPPING
Online shopping is the process whereby consumers directly buy goods or services
from a seller in real-time, without an intermediary service, over the Internet. If an
intermediary service is present the process is called electronic commerce. An online
shop, e-shop, e-store, internet shop, web shop, web store, online store, or virtual store
evokes the physical analogy of buying products or services at a bricks-and-mortar
retailer or in a shopping mall. The process is called Business-to-Consumer (B2C) online
shopping. When a business buys from another business it is called Business-to-Business
(B2B) online shopping. Both B2C and B2B online shopping are forms of e-commerce.
2
INTRODUCTION TO E-COMMERCE
E-commerce is about buying and selling products and services on the World
Wide Web. The sellers are individuals, small businesses or large corporations.
The buyers are consumers or businesses. Payment can be made by credit or debit
card, money order, cash, check, services or trade. The range of things that can be
sold using e-Commerce is enormous and covers things that are sold today and
those that are not practical to sell any other way.
ELEMENTS OF COMMERCE
• Buyers – These are people with money who want to purchase a good or
service.
• Sellers – These are the people who offer goods and services to buyers.
Sellers are generally recognized in two different forms: retailers who sell
directly to consumers and wholesalers or distributors who sell to retailers
and other businesses.
• Producers – These are the people who create the products and services
that sellers offer to buyers. A producer is always, by necessity, a seller as
well. The producer sells the products produced to wholesalers, retailers or
directly to the consumer.
3
DIFFERENT TYPES OF E-COMMERCE SYSTEMS
4
Purpose
Today the internet and its boom have created a new economic scenario that not
only stresses on the classical concept of the “product” but also on the modern
concept of “service”. It is this level of service that dictates whether a commercial
venture will succeed or not in the market. To provide a high accessibility of
service we will design the online shopping website, so that potential customers
need not go to a physical shop to buy products or services. They just need to
online to complete their purchases. Unlike the prevailing “brick and mortar”
shops which have physical existence, we will operate solely from cyber-space.
Most current systems have a physical foundation that is the root cause to quite a
number of problems. By maintaining multiple store fronts, itself being an
expensive proposition, store prices are forced to rise. Thus, by using our product,
our clients’ competitors are at a disadvantage because their costs are significantly
higher than our costs, allowing our clients to sell the same goods at a lower price.
As people become more accustomed to using the internet, they view ordering
products and services online as a time-saving and cost-saving experience, which
is the very essence of our online shopping system.
This project envisages bridging the gap between the seller, the retailer and the
customer. A very high flexibility is being maintained in the design process so that
this project can take the following path:-
5
WORKING OF THE PROJECT
6
MODULES DESCRIPTION
Home Page:
When a user logs in home page for website is opened. The purpose of the home
page is to welcome new visitors and provide a menu of links to the other pages.
The home page contains an index of all the contents and links to various pages of
the website.
Registration Form:
This form contains the information of the person who wants to log in. Here the
user has to enter the user_id and password to sign up.
Displaying Products:
It display the picture of the products if available and an informational cell
containing the product’s item number, name and description and a pricing cell
that displays the product’s current price.
Shopping Cart:
This page contains information like quantity , item_no ,item_name ,and price of
the item. It asked from the user to enter the quantity of the product. It display the
information of that item and calculates a running subtotal.
Payment:
In this page the user enters the shipping and payment information like delivery
address, mode of payment.
7
User master
New
Registere
d
Login ok
Proces Process Shipmen
User s purchase t process
Login
Order table
Delivers product
8
DATABASE TABLES
ADMINISTRATOR:-
In this module the administrator will have an access to manage manufacturers,
categories, subcategories and products. This module will work at the backend. It
can only be accessed by the administrator.
MANUFACTURERS:-
In this module the administrator will manage manufacturers whose products are
sold on website. It stores the manufacture code, name, its details and its logo.
9
CATEGORY MASTER:-
In this module the administrator will manage different categories on website. It
stores the category code , name and its photo.
SUBCATEGORY MASTER:-
In this module the administrator will manage different subcategories on website.
It stores the subcategory code, name, category code and name of photo of
subcategory.
10
PRODUCT MASTER:-
In this module the administrator will manage different subcategories on website.
It stores the subcategory code, name, category code and name of photo of
subcategory.
USERS:-
This table contains the data of all the registered users.
11
Date_of_reg Date/Time Not null Date of registration
ORDER TABLE
A record will be added to the Order table for each order entered by a customer.
DELIEVERY INFO
It contains dispatch date.
Field Name Type Size Constraint Description
orderid Number 10 PK Id of the order
Date_of_delievery Date Not null Date of delivery of the
order
12
ORDER DETAIL
Each time an order is placed, one record is added to the Orders table; in addition
one record is added to the Order Details table for each item requested in that
order.
13
FRONT END TOOLS
Technologies used:-
HTML:-
No book can be printed without paper and paper can be made only with raw
materials. If you are planning to have your website on World Wide Web then you
need the raw material called the Hypertext Markup Language (HTML). HTML is
the authoring tool used to develop web pages.
The name World Wide Web truly means something that encompasses just about
every topic in the world. Each HTML document has an Internet address called
the Uniform Resource Locators (URL). URL is a unique address on the Internet,
Which specifies the Web Server address and the address Web page, which
resides on the server.
URL is divided into four parts :
1. Transfer Protocol.
2. Server name.
14
3. Directory Path.
4. File name.
Java Script:-
Java Script is on easy to use object scripting language designed for creating live
on line applications that link together objects and resources on both clients and
servers. Java is used by programmers to create new objects and applets Java
Script is designed for use by HTML page authors and enterprise application
developers to dynamically script the behavior of objects running either on clients
or the servers Java Scripts design and concepts represent the next generation of
software for the internet and is:
With Java Script on HTML page might contain a from that processes data on the
client side server side Java Script might pull data out of a relation data base and
format it in HTML on the fly A page might contain Java Script scripts that run on
both the client and server
JAVA SERVLETS:-
Servlets are the programs that run on a Web server and build Web pages.
Advantage of Servlets:
Java Servlets are more efficient, easier to use, more powerful, more portable, and
cheaper than traditional CGI and then many alternative CGI-like technologies.
Efficient: With traditional CGI, a new process is started for each HTTP request.
If the CGI program does a relatively fast operation, the overhead of starting the
process can dominate the execution time. With Servlets, the Java Virtual
15
Machine stays up, and each request is handled by a lightweight Java thread, not a
heavyweight operating system process.
Powerful: Java Servlets let you easily do several things that are difficult or
impossible with regular CGI. For one thing, Servlets can talk directly to the Web
server (regular CGI programs can't). This simplifies operations that need to look
up images and other data stored in standard places. Servlets can also share data
among each other, making useful thing like database connection pools easy to
implement.
16
JAVA DATABASE CONNECTIVITY (JDBC)
1. Load Driver
The first step in using JDBC is to load the JDBC-ODBC bridge driver. This is
usually accomplished using the forName static method of the Class object (which
is part of the base Java system). The call is made as follows: JDBC Tutorial
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
When this call is made, the Java system searches for the class requested
and loads the driver. A class descriptor is returned by this method, but because it
is not needed, it is ignored. 4
2. Create Connection
The loading of the JDBC database driver does not connect to the database; it
merely creates an environment in the program where this can be done. Before
any database-specific SQL statements can be executed, a connection must be
established to the database. This is accomplished through a call to the
DriverManager.getConnection method to find a specific driver that can create a
connection to the URL requested.
17
The DriverManager searches through registered drivers until one is found that
can process the database URL that was specified. If a driver cannot be found, an
exception is thrown and code execution will not continue for that method. Code
that follows this statement can
therefore assert that no exception was thrown and a connection has been
successfully established. The call is made as follows:
Oracle is a BACK – END tool , which connects well with the front– end
like Visual Basic (VB) ,Power Builder (PB), Developer 2000 etc ..
18
much larger number of component users ,up to 30000 , depending on the
server operating system and server hardware resource .
Faster access to data : Oracle 8.0 access the data faster than other
available back – end tools such as FoxPro .
Large number of files can be opened : In Oracle 8.0 there is no
restriction to the number of files that can be opened
Improved Security Administration : The Oracle 8.0 server includes
password management , so that a password has a limited lifetime and
must meet certain criteria such as minimum length . An account can be
locked after a specified number of failed login attempts .
An RDBMS Product : Oracle is the most popular RDBMS products
and it is available on many platforms and can work for all popular
operating systems . Also it offers perfect security and integrity of data .
Java Server Pages (JSP) is a new technology to integrate server-side code into
static HTML code. JSPs are common to Active Server Pages (ASP), but have
the advance that they run with Java and therefore on almost every operating
system. JSPs are related to Java Servlets, more exact: JSPs are translated into a
Java Servlet when they are called the first time. With every request of a JSP, the
generated Java Servlet runs the service() method.
The main difference between Servlets and JSP is:In JSPs you insert dynamic
Java code into static HTML In Java Servlets you insert static HTML into Java
code.
Tomcat:-
Tomcat is a servlet container and is the reference implementation for the Java
Servlet and JaveServer Pages (JSP) technologies. It does not contain an EJB
container.
Here below an overview of Tomcat version vs. Servlet/JSP specification.
Tomcat version Servlet/JSP Spec
5.5.4 2.4/2.0
4.1.31 2.3/1.2
19
3.3.2 2.2/1.1
Apache or any other common web server can’t handle Servlets nor JSP. So we
use the Tomcat server from the Apache sub-project named Jakarta. Tomcat is
the official reference implementation for the Servlet 2.3 and JSP 1.2
specification. Tomcat is a Java based web application container, is open source
and entire free to use (Tomcat is released under the Apache software license).
Tomcat is developed by a group of voluntary programmers.
TRAINING
Training being taken at Real Infotech, Amritsar under Mr.
Umesh Kalia.
20