(For College Purposes) REPORT
(For College Purposes) REPORT
This is a small scale project for Online shopping system. The basic
idea is that customers can buy products online. The user can enter the
name and password and can create an account and then place order for a
particular product.
ii
CONTENTS
ACKNOWLEDGEMENT i
ABSTRACT ii
CHAPTERS iii
LIST OF FIGURES iv
iii
LIST OF FIGURES
Figure
Title of Figures Page No.
No.
5.1 SIGNUP 16
5.2 LOGIN 16
5.3 HOMEPAGE 17
5.4 ALL CATEGORIES 17
5.5 PRODUCTS 18
5.6 PRODUCT DESCRIPTION 18
5.7 CHECKOUT 19
5.8 SUCCESSFUL TRANSACTION 19
5.9 FAILED TRANSACTION 20
iv
Introduction E-commerce website
Chapter 1
INTRODUCTION
Frames allow an author to divide a browser window into multiple (rectangular) regions.
Multiple documents can be displayed in a single window, each within its own frame.
Graphical browsers allow these frames to be scrolled independently of each other, and links
can update the document displayed in one frame without affecting the others. You can’t just
“add frames” to an existing document. Rather, you must create a frameset document that
defines a particular combination of frames, and then display your content documents inside
those frames. The frameset document should also include alternative non-framed content in a
NOFRAMES element. An HTML comment begins with “<!—“, ends with “–> “, and does
not contain “–“ or “>” anywhere in the comment. A hypertext link is a special tag that links
one page to another page or resource. If you click the link, the browser jumps to the link’s
destination.
According to HTML standards, each HTML document begins with a DOCTYPE
declaration that specifies which version of HTML the document uses. Many browsers use the
document’s DOCTYPE declaration to determine whether to use a stricter, more
standardsoriented layout mode, or to use a “quirks” layout mode that attempts to emulate
older, buggy browsers.
A table can be embedded inside a cell in another table. The main caveat about nested
tables is that older versions of Netscape Navigator have problems with them if you don’t
explicitly close you TR, TD, and TH elements. To avoid problems, include closing tags for
you TR, TD, an TH even though the HTML specifications don’t require them.
You use the <table align=”right”> property to float a table to the right. Put left in place of
right to float right.
HTML5
A group of developers at opera and Mozilla formed the WHATWG (web hypertext
application technology working group with in the w3c WHATLOG, HTML5 adopted Instead
of XHTML 2.0 by 2009 which has three aims
i. Specify unambiouously how browsers should deal with invalid markup.
ii. Provide an open non proprietary programming framework.
iii. Be backward compilable with the existing web.
Cascading Style Sheets called (CSS) is a list of statements (or rules) that can assign
various rendering properties to HTML elements. Style rules can be specified for a single
element occurrence, multiple elements, and entire document, or even multiple documents at
once. Class is a group of instances of the same element to which a unique style can be
attached. Grouping means gathering into a comma separated list two or more selectors that
share the same style or into a semicolon separated list two or more declarations that are
attached to the same selector.
ID selector is an individually identified (named) selector to which a specific style is
declared. Using the ID attribute, the declared style can then be associated with one and only
one HTML element per document as to differentiate it from all the other elements. They use
the # character followed by a name. A contextual selector addresses a specific occurrence of
Mark Otto announced Bootstrap 4 on October 29, 2014.[9] The first alpha version of
Bootstrap 4 was released on August 19, 2015.[10] The first beta version was released on 10
August 2017. Mark suspended work on Bootstrap 3 on September 6, 2016, to free up time to
work on Bootstrap 4. Bootstrap 4 was finalized on January 18, 2018.
Significant changes include:
Major rewrite of the code
Replacing Less with Sass
Addition of Reboot, a collection of element-specific CSS changes in a single file,
based on Normalize
Dropping support for IE8, IE9, and iOS 6
CSS Flexible Box support
Adding navigation customization options
Adding responsive spacing and sizing utilities
Switching from the pixels unit in CSS to root ems
Increasing global font size from 14px to 16px
Dropping the panel, thumbnail, pager, and well components
Dropping the Glyphicons icon font
enables developers to implement further customization and size optimizations. This raw form
is modular, meaning that the developer can remove unneeded components, apply a theme and
modify the uncompiled Sass files.
JavaScript uses prototypes where many other object-oriented languages use classes for
inheritance. It is possible to simulate many class-based features with prototypes in JavaScript.
Like many scripting languages, arrays and objects (associative arrays in other languages)
can each be created with a succinct shortcut syntax. In fact, these literals form the basis of the
JSON data format. JavaScript also supports regular expressions in a manner similar to Perl,
which provide a concise and powerful syntax for text manipulation that is more sophisticated
than the built-in string functions.
As of May 2017 94.5% of 10 million most popular web pages used JavaScript.[10] The
most common use of JavaScript is to add client-side behavior to HTML pages, also known as
Dynamic HTML (DHTML). Scripts are embedded in or included from HTML pages and
interact with the Document Object Model (DOM) of the page. JavaScript code can run
locally in a user's browser (rather than on a remote server), increasing the application's
overall responsiveness to user actions. JavaScript code can also detect user actions that
HTML alone cannot, such as individual keystrokes.
The term PHP is an acronym for PHP: Hypertext Preprocessor. PHP is a server-side
scripting language designed specifically for web development.
PHP can actually do anything related to server-side scripting or more popularly known
as the backend of a website. For example, PHP can receive data from forms, generate
dynamic page content, can work with databases, create sessions, send and receive cookies,
send emails etc. There are also many hash functions available in PHP to encrypt user’s data
that makes PHP secure and reliable to be used as a server-side scripting language. So these
are some of the abilities of PHP that makes it suitable to be used as server-side scripting
language. You will get to know more of these abilities in further tutorials.
Even if you are not convinced by the above abilities of PHP, there are some more
features of PHP. PHP can run on all major operating systems like Windows, Linux, Unix,
Mac OS X etc. Almost all of the major servers available today like Apache supports PHP.
PHP allows using wide range of databases. And the most important factor is that it is free to
use and download and anyone can download PHP from its official source.
Chapter 2
OBJECTIVES
The aim of this project is on the online shopping application it is developed using
HTML5, JavaScript, CSS, PHP, Bootstrap 4. The application is very useful where the buyer
can directly buy the products from home via internet on mobile or system. The application
reduces lot of work load for customer as well as owner. The transaction of money is
completed in real time system.
Some of the online shops are EBAY Amazon. By this online shopping the product is
directly delivered to customer home. Online shopping is the process consumers go through to
purchase products or Services over the Internet. An online shop, e-shopping, e-store, internet
shop, webshop , 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 mall. The metaphor of an
online catalog is also used, by analogy with mail order catalogs.
All types of stores have retail web sites, including those that do and do not also have
physical storefronts and paper catalogs. Online shopping is a type of electronic commerce
used for business-to-business(B2B) and business-to-consumer (B2C) transactions.The term
Web shop also refers to a place of business where web development, web hosting and other
types of web related activities take place (Web refers to the World Wide Web and "shop" has
a colloquial meaning used to describe the place where one's occupation is carried out).
Chapter 3
3.1 OVERVIEW
The E-commerce website is based on:
To signup and login as a new user.
To browse and buy a chosen listed products.
3.2 GOALS
The goal of this work is to provide user with a interface that can make user easy to use
and place a product of the merchant by using online payment gateway for reliable and secure
online transactions.
3.3 SPECIFICATIONS
Using this website a user can signup and login with personal email address and
respective password, on successful login user can browse and lookup products listed on the
website, and also they can place order by providing the details of fund transfer on successful
transaction.
Software Requirements:
Processor : x86 compatible processor with 1.7GHz or more
Memory : 2GB or more
Hard Disk Space : 20GB or more
Chapter 4
SOURCE CODE
.active {
animation-name: activetab;
animation-duration: 0.5s;
animation-iteration-count: 1;
background-color: black;
color: white;
}
@keyframes activetab {
from {
transform: rotateY(180deg);
}
to {
transform: rotateY(0deg);
}
}
.tabcontent {
width: 100%;
margin: 0 auto 0 auto;
display: none;
padding: 2em 0 2em 0;
overflow: hidden;
}
@media only screen and (min-width: 1224px) {
div.container {
overflow: hidden;
width: 400px;
}
}
@media only screen and (min-width: 1824px) {
div.container {
width: 400px;
}
}
@media only screen and (min-device-width: 320px) and
(max-device-width: 480px) {
div.container {
width: 80%;
}
}
function validationSignup()
{
var sun=document.div1.signup.formsignup.username.value;
var sid=document.div1.signup.formsignup.signupemail.value;
var
sps=document.div1.aignup.formsignup.signuppassword.value;
if(sid.length=="" && sps.length=="") {
alert("User Name and Password fields are empty");
return false;
}
else
{
if(sid.length=="") {
alert("User Name is empty");
return false;
}
if (sps.length=="") {
alert("Password field is empty");
return false;
}
if (sun.length=="") {
alert("username field is empty");
return false;
}
}
}
function validation()
{
var id=document.div1.login.formlogin.loginemail.value;
var ps=document.div1.login.formlogin.loginpassword.value;
connection.php
<?php
$host = "localhost";
$user = "root";
$password = 'shashank';
$db_name = "webproject";
$con = mysqli_connect($host, $user, $password, $db_name);
if(mysqli_connect_errno()) {
die("Failed to connect with MySQL: ".mysqli_connect_error());
}
?>
signup.php
<?php
include('connection.php');
$susername = $_POST['username'];
$semail = $_POST['signupemail'];
$spassword = $_POST['signuppassword'];
$susername = stripcslashes($susername);
$semail = stripcslashes($semail);
$spassword = stripcslashes($spassword);
$semail = mysqli_real_escape_string($con, $semail);
$spassword = mysqli_real_escape_string($con, $spassword);
$sql = "INSERT INTO signup (sname,semail, spassword) VALUES
('$susername','$semail', '$spassword')";
if ($con->query($sql) === TRUE) {
header('Location: index.html');
exit;
}
else {
?>
<<script type='text/javascript'>
alert('Email address already exists.')
window.location.href = "index.html";
</script>
<?php
}
?>
login.php
<?php
include('connection.php');
$username = $_POST['loginemail'];
$password = $_POST['loginpassword'];
Chapter 5
SNAPSHOTS
Chapter 6
CONCLUSION AND FUTURE SCOPE
Technology has made significant progress over the years to provide consumers a better
online shopping experience and will continue to do so for years to come. With the rapid
growth of products and brands, people have speculated that online shopping will overtake
in-store shopping. While this has been the case in some areas, there is still demand for brick
and mortar stores in market areas where the consumer feels more comfortable seeing and
touching the product being bought. However, the availability of online shopping has
produced a more educated consumer that can shop around with relative ease without having
to spend a large amount of time. In exchange, online shopping has opened up doors to many
small retailers that would never be in business if they had to incur the high cost of owning a
brick and mortar store. At the end, it has been a win-win situation for both consumer and
sellers.
People are now using the E-Commerce for fulfilling there shopping desires. Most of
them are completely aware of all the pros and cons of online shopping. Graduates are the
majority users of E-retail. Cash on delivery remains the best choice for payment followed by
Debit and credit cards. Users are marginally more interested in shopping through the internet
due too its convenience. Most users are shopping once or twice a week though the web with
spending ranging from rupees 100 to 2500 monthly. With most of the E- retailers selling
branded goods and having flexible return policies they are being well trusted by the users.
Apparel, footwear and Accessories lead as the most demanded goods online .
Though there are a number of challenges, still the e-commerce industry is expected to
reach heights. Let us find out what experts are expecting. The e-commerce industry is
growing at an unexpected rate. So, the scope is limitless. This is why experts say that a lot of
new eCommerce trends will be soon seen emerging in the industry.
Here are some future scope of this work
Social Media Influence
Mobile Apps
Google Buttons
Drone
Artificial Intelligence
App-only Approach