Professional Documents
Culture Documents
Major Project Report
Major Project Report
Major Project Report
ON
SUBMITTED BY:-
This is to certify that Mr. Harsh Mahan Pathak, have prepared a project entitled
“ONLINE ELECTRONIC STORE” based successfully for the partial fulfillment
towards the Degree of Master in Computer Application in Computer Science and
Engineering in Rajasthan Institute of Engineering and Technology,JAIPUR(Raj.)
We hereby declare that this written submission represents our ideas in our own words
and where other ideas or words have been included, we have adequately cited and
referenced the original sources. We also hereby declare that we have adhere to all
principles of academic honesty and integrity and have not misinterpreted or fabricated
or falsified any idea/fact/ source in our submission. We understand that any violation
of the above will cause for disciplinary action by the Institute and can also invoke
penal action from the sources which have thus not been properly cited or
from whom proper permission has not been taken when needed.
ACKNOWLEDGEMENT
Words are often too less to reveals one’s deep regards. We take this opportunity to
express my profound sense of gratitude and respect to all those who helped us through
the duration of this project. We acknowledge with gratitude and humility our
indebtedness to our project guide MR. ANIL DHANKAR Sir under whose guidance
we had the privilege to complete this project.
Lastly but not least, words run to express our gratitude to all the faculties and friends
for their co-operation, constructive criticisms and valuable suggestion during the
project work.
CHAPTER – 5 ARCHITECTURE
CHAPTER – 9 TESTING
CHAPTER – 10 CODE
CHAPTER – 12 CONCLUSION 18 – 19
CHAPTER – 14 BIBLIOGRAPHY 32 – 36
Fig. No. Title of the Figure Page
7.1 Flow chart ……………………………………………………. `17
8.1 E R Diagram………………….…………………….................. 18
E-commerce is the activity of buying or selling products on online services or over the Internet.
Electronic commerce draws on technologies such as mobile commerce, electronic funds transfer,
supply chain management, Internet marketing, online transaction processing, electronic data
interchange (EDI), inventory management systems, and automated data collection systems. Most
small stores in India do not have an online presence; requiring customers to visit the store in person
to buy any product. This requirement to visit the store hurts it by driving down the profits. With near
free hosting services, it takes minimal resources to set up an ecommerce website which allows
customers to purchase at the convenience of their home. This project aims to implement an e-
commerce website which enables stores to migrate online. We are making use of PHP and MySQL
based dynamically generated webpages to allow purchasing of items. We are going to implement a
cart system to allow customers to store their items. We are also going to implement an authentication
system, to differentiate between regular and logged in customers, by making use of MySQL
database. The users are handled using PHP sessions to allow them to make changes to the cart. These
changes are stored as session variables so that the user can come back and restore his previous
session. E-commerce means any transaction over the internet. In online marketing, a shopping cart
is a piece of e-commerce software on a web server that allows visitors to an Internet site to select
items for eventual purchase, analogous to the American English term “shopping cart.” The software
allows online shopping customers to accumulate a list of items for purchase, described
metaphorically as “placing items in the shopping cart” or “add to cart.” Upon checkout, the software
typically calculates a total for the order, including shipping and handling (i.e., postage and packing)
charges and the associated taxes, as applicable.
Chapter2
INTRODUCTION
E-commerce is fast gaining ground as an accepted and used business paradigm. More and more
business houses are implementing web sites providing functionality for performing commercial
transactions over the web. It is reasonable to say that the process of shopping on the web is becoming
commonplace. The objective of this project is to develop a general-purpose e-commerce store where
products can be bought from the comfort of home through the Internet. However, for implementation
purposes, this project will deal with online shopping for gadgets. An e-commerce website is a virtual
store on the Internet where customers can browse the catalog and select products of interest. The
selected items may be collected in a shopping cart. At checkout time, the items in the shopping cart
will be presented as an order. On checking out, more information will be needed to complete the
transaction. The customer will be asked to fill or select a billing address or a shipping address. Then
an invoice will be generated for the order, which can be downloaded by the user as a .pdf file
Chapter3
PROBLEM STATEMENT
• The project aims to develop an online shopping for customers with the goal so that it is very easy
to shop your loved electronic items like laptop, desktop and other accessories by siting in comfort
at home
• You simple require a PC or laptop, just use our application to do the payment and get the product
within stipulated time period.
Chapter4
SYSTEM REQUIREMENTS SPECIFICATION
Functional Requirements:
• Registration:
If customer wants to buy the product then he/she must be registered, unregistered user can’t
go to the shopping cart.
• Login:
Customer logins to the system by entering valid user id and password for the shopping.
• Changes to Cart:
Changes to cart means the customer after login or registration can make order or cancel order
of the product from the shopping cart.
• Payment:
For customer there are many types of secure billing will be prepaid as debit or credit card,
post-paid as after shipping, check or bank draft. The security will provide by the third party
like Pay-Pal etc.
• Logout:
After the payment or surf the product the customer will logged out.
• Report Generation:
After all transaction the system can generate the portable document file (.pdf) and then sent
one copy to the customer’s Email-address and another one for the system data base to
calculate the monthly transaction.
• Review:
Storing feedback given by the customer.
• Orders:
This module keeps the record of products ordered and details about the product is delivered
or not.
Non-functional requirements:
• Secure access of confidential data (customer details)
• 24 x 7 availability
• Better component design to get better performance at peak time.
• Flexible service-based architecture will be highly desirable for future extension.
• Various other non-functional requirements include:
1. Reliability
2. Security
3. Maintainability
4. Portability
5. Reusability
6. Compatibility
7. Resource Utilization
Software requirements:
• HTML5
• CSS3
• JAVASCRIPT
• PHP
• MYSQL
• XAMPP 7.3.9
Hardware requirements:
• Windows 8 or more
• RAM-2GB or more
• I3Processor
Overview of PHP
WHAT IS PHP?
• PHP files can contain text, HTML, CSS, JavaScript, and PHP code
• PHP code are executed on the server, and the result is returned to the browser as plain HTML
• PHP files have extension ".php"
With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash
movies. You can also output any text, such as XHTML and XML.
WHY PHP?
HTML or Hypertext Markup Language is the standard markup language used to create web
pages.
HTML is written in the form of HTML elements consisting of tags enclosed in angle
brackets (like <html>). HTML tags most commonly come in pairs like <h1> and </h1>, although
some tags represent empty elements and so are unpaired, for example <img>. The first tag in a pair
is the start tag, and the second tag is the end tag (they are also called opening tags and closing tags).
Though not always necessary, it is best practice to append a slash to tags which are not paired with
a closing tag.
The purpose of a web browser is to read HTML documents and compose them into visible or audible
web pages. The browser does not display the HTML tags, but uses the tags to interpret the content
of the page. HTML describes the structure of a website semantically along with cues for
presentation, making it a markup language rather than a programming language.
HTML elements form the building blocks of all websites. HTML allows images and objects to be
embedded and can be used to create interactive forms. It provides a means to create structured
documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes
and other items. It can embed scripts written in languages such as JavaScript which affect the
behaviour of HTML web pages.
CASCADING STYLE SHEETS (CSS):
It is a style sheet language used for describing the look and formatting of a document written in a
markup language. While most often used to style web pages and interfaces written
in HTML and XHTML, the language can be applied to any kind of XML document, including plain
XML, SVG and XUL. CSS is a cornerstone specification of the web and almost all web pages use
CSS style sheets to describe their presentation.
CSS is designed primarily to enable the separation of document content from document presentation,
including elements such as the layout, colors, and fonts.[1] This separation can improve
content accessibility, provide more flexibility and control in the specification of presentation
characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in
the structural content .
CSS can also allow the same markup page to be presented in different styles for different rendering
methods, such as on-screen, in print, by voice (when read out by a speech-based browser or screen
reader) and on Braille-based, tactile devices. It can also be used to allow the web page to display
differently depending on the screen size or device on which it is being viewed. While the author of
a document typically links that document to a CSS file, readers can use a different style sheet,
perhaps one on their own computer, to override the one the author has specified. However if the
author or the reader did not link the document to a specific style sheet the default style of the browser
will be applied.
MySQL:
FEATURES OF MySQL:
Security:
• A privilege and password system that is very flexible and secure, and that enables host-based
verification.
• Password security by encryption of all password traffic when you connect to a server.
• Support for up to 64 indexes per table (32 before MySQL 4.1.2). Each index may consist of 1 to
16 columns or parts of columns. The maximum index width is 767 bytes for InnoDB tables, or
1000 for MyISAM; before MySQL 4.1.2, the limit is 500 bytes. An index may use a prefix of a
column for CHAR, VARCHAR, BLOB, or TEXT column types.
CONNECTIVITY:
Clients can connect to MySQL Server using several protocols:
• On Windows systems in the NT family (NT, 2000, XP, 2003, or Vista), clients can
connect using named pipes if the server is started with the --enable-named-pipe option. In
MySQL 4.1 and higher, Windows servers also support shared-memory connections if
started with the --shared-memory option. Clients can connect through shared memory by
using the --protocol=memory option.
• On UNIX systems, clients can connect using Unix domain socket files.
LOCALIZATION:
• The server can provide error messages to clients in many languages.
• All data is saved in the chosen character set.
CLIENTS AND TOOLS:
• MySQL includes several client and utility programs. These include both command-line
programs such as mysqldump and mysqladmin, and graphical programs such
as MySQL Workbench.
• MySQL Server has built-in support for SQL statements to check, optimize, and repair
tables. These statements are available from the command line through
the mysqlcheck client. MySQL also includes myisamchk, a very fast command-line
utility for performing these operations on MyISAM tables.
• MySQL programs can be invoked with the --help or -? option to obtain online
assistance.
JAVASCRIPT:
JavaScript is the scripting language of the Web. All modern HTML pages are using JavaScript. A
scripting language is a lightweight programming language. JavaScript code can be inserted into any
HTML page, and it can be executed by all types of web browsers. JavaScript is easy to learn.
Example
JAVASCRIPT STATEMENTS:
Semicolon;
• Semicolon separates JavaScript statements.
• Normally you add a semicolon at the end of each executable statement.
• Using semicolons also makes it possible to write many statements on one line.
JAVASCRIPT CODE:
JAVASCRIPT PROPERTIES:
Layered architecture:
The Layered architecture pattern, also known as the n-tier architecture pattern. This pattern is the de
facto standard for most applications and therefore is widely known by most architects, designers,
and developers. The layered architecture pattern closely matches the traditional IT communication
and organizational structures found in most companies, making it a natural choice for most business
application development efforts.
This pattern can be used to structure programs that can be decomposed into groups of subtasks, each
of which is at a particular level of abstraction. Each layer provides services to the next higher layer.
The architecture comprises of the following three layers:
TYPES OF TESTING
• White box testing
• Black box testing
• Unit testing
• Integration testing
• System testing
• Acceptance testing
• Maintenance testing
WHITE BOX TESTING
White box testing sometimes called “Glass Box” testing is a test case design uses the control
structure of the procedural design to drive test cases. Using white box testing method, the following
tests are made on the system.
• All independent paths within module have been exercised at least once.
• All the logical decisions were checked for the truth and false values.
• All the loops were executed to check their boundary values.
• An internal data structures was tested for their validity.
MAINTENANCE TESTING
Once a system is developed it is in service for years and decades. During this time the system
and its operational environment is often corrected, changed or extended. Testing that is provided
during this phase. I have tested my project using maintenance testing. The project has to work in any
situation without any error.
Chapter10
CODING
CATEGORY CODE
LOGIN/LOGOUT CODE
Chapter11
INPUT/OUTPUT SNAPSHOTS
Chapter12
CONCLUSION
The HMT Technology web application was developed using PHP, MYSQL, HTML5, CSS3
technology. Any customer can browse products, add, replace or delete a product from the cart. The
customer can log in with his information such as his email and password. If the login is not validated
then the user needs to register first before they login again. Then they can add products to the cart
and do the payment, Admin will verify the order, payment.
Chapter13
LIMITATION & FUTURE SCOPE
• Email, OTP verification needs to be sent to customers for login verification to customer new
arrival or discounts.
• Language verities needs to be implemented along with the application.
• In future this project will be deployed into AWS cloud so that it will be globally accessible.
Chapter14
BIBLIOGRAPHY
• www.w3school.com
• Php features
• https://itsourcecode.com/uml/e-commerce-website-er-diagram-erd-entity-relationship-
diagram/
• https://sourcecodehero.com/er-diagram-for-e-commerce-website-with-database-structure/
• https://moqups.com/templates/diagrams-flowcharts/erd/ecommerce-database-diagram/