Sei sulla pagina 1di 13

E-Commerce

Submitted By:
TE Comps, A division.
650 : Himanshu Khantwal
653 : Siddhesh Kudav
657 : Sachin Mane

Mini Project Guide:


Mr. Swapnil Gharat

Date: March 31st, 2015


1

ABSTRACT
Internet is growing very fast, originally the Internet used to serve to interconnect
laboratories engaged in government research but nowadays it is used in many
applications. E-commerce is one of such application. E-commerce provides virtual malls
where People can buy products anywhere anytime. Certainly everyone would have
purchased some products from E-commerce site. If user order a product from the site it
provides us an order id to track that order. The Ecommerce site we are developing intend
to integrate ecommerce website with mailing system. As the user orders some products it
will automatically send the email with all details about user purchase on a registered
email id. So if user forgets the order id user can find it on his mail. For this application a
Client-Server architecture is designed. Though the primary focus of our application is on
the feature of providing a virtual mail system.

INTRODUCTION
Electronic commerce, commonly known as E-Commerce or E-Commerce, is trading in
products or services using computer networks, such as 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. Modern electronic commerce typically uses the World Wide Web for
at least one part of the transaction's life cycle, although it may also use other technologies
such as e-mail.
Even today, some considerable time after the so called dot com/Internet revolution,
electronic commerce (e-commerce) remains a relatively new, emerging and constantly
changing area of business management and information technology. There has been and
continues to be much publicity and discussion about e-commerce
E-commerce businesses usually employ some or all of the following practices:

Provide Etail or "virtual storefronts" on websites with online catalogs, sometimes


gathered into a "virtual mall.

Buy or sell on websites or online marketplaces.

Gather and use demographic data through web contacts and social media.

Use electronic data interchange, the business-to-business exchange of data.

Reach prospective and established customers by e-mail or fax (for example, with
newsletters).

Use business-to-business buying and selling.

Provide secure business transactions.

Tools/Platform
This project is developed using the Internet Tools, which are most suited for development
of the site. These tools are as follows: HTML
JavaScript
Cascading Style Sheet (CSS)
PHP
MariaDB
Httpd SERVER

PROJECT FLOW
HOMEPAGE

NEW USER
REGISTER

LOGIN

ADMIN
LOGOUT

DESCRIPTION

CART

ADMIN
PRODUCTS

CHECKOUT
ADD PRODUCT

Home page
Home page of LetsBuy.Com ,it consist products with different categories and option to
new user to sign up and be member of LetsBuy.Com, sign in to the existing users , earch
box for searching products and logout to sign out from LetsBuy.Com
Cart
Viewed product by the user will get an option of adding in to the cart and user can also
delete products from the shopping cart.

Register
Registration page occur by clicking to the register icon and registration form is displayed
by filling form user get registered to the LetsBuy.Com

Login
Existing member get sign in by using username and password to the website.
Description
By selecting the products at each time by the user description of products is viewed
which include specification, warranty and price.
Logout
Logout option for user as well as for admin to get sign out from Letsbuy.com. After
getting logout home page is displayed.
Checkout
After adding products to the cart checkout option is available which checkouts the
products and acknowledge is done through mail which include Member_id, Products_id
and Order_id.
Admin
Signing in from admin and admin password, admin page is displayed where admin can
add products, remove products and the modify the contents for the existing products.
Products
Products page is only displayed to the admin where all information of products is
displayed, where it can modify database of products.
Add product
Admin add new products to the database of products after clicking icon of add products.

DATABASE DESIGN
To store the data of User and Products the system requires using the well-maintained
database table. We are using Maria DB for storage of data at server side. The following
are the structure of table that are used in our project Letsbuy.com.
Table 1: - Members Table

Table 2: - Products Table

COMPONENTS USED
WEB SERVER

A Powerful System Which stores, processes and delivers web content over a
network which could be either local network as intranet or internet

It uses the client-server architecture and Hypertext Transfer protocol (HTTP) for
communication.

MAIL SERVER

Electronic mail, commonly called e-mail, is a method of exchanging digital


messages from one recipient to other recipients.

Every email that is sent passes through a series of mail servers along its way to its
intended recipient.

Sending email: Simple Mail Transfer Protocol (SMTP)


Receiving email: Post Office Protocol (POP) / Internet Message Access
Protocol (IMAP)

POSTFIX AND DOVECOT

Postfix is free and open source mail transfer agent that routes and delivers
Electronic mail

Dovecot is an open-source IMAP and POP3 server for Linux/UNIX-like systems,


written primarily with security in mind. Dovecot primarily aims to be a
lightweight, fast and easy to set up open source mail server.

SSL (SECURE SOCKET LAYER)

Standard security technology for establishing encrypted connection between


server and client.
8

Intermediate layer between the Transport and application layer.

Uses secure connection to transfer Data from sender to receiver.

Ensures that the Data Transfer between client and server is secured.

IMPLEMENTATION CODE
/*Db_Connect.php*/
<?php
$host = "localhost";
$db_name = "ecommerce";
$username = "root";
$password = "himanshu";
try {
$con = new PDO("mysql:host={$host};dbname={$db_name}", $username,
$password);
}
//to handle connection error
catch(PDOException $exception){
echo "Connection error: " . $exception->getMessage();
}
?>

/*Homepage*/
<?php include 'header.php';?>
<?php
// to prevent undefined index notice
if(isset($_GET['suc']))
{
if($_GET['suc']==0)
echo "<script>alert('Invalid USERNAME or PASSWORD!');</script>";
if($_GET['suc']==1)
echo "<script>alert('You need to login First!');</script>";
}
if(isset($_GET['action']))
{
$action = $_GET['action'] ;
$product_id = isset($_GET['id']) ? $_GET['id'] : "1";
$query = "SELECT id, name, price,maxsellcount FROM products WHERE id IN
({$product_id})";
$stmt = $con->prepare( $query );
$stmt->execute();
$row = $stmt->fetch(PDO::FETCH_ASSOC);
extract($row);
$quantity = isset($_GET['quantity']) ? $_GET['quantity'] : "1";
if($action=='added'){
echo "<div class='alert alert-info'>";
echo "<strong>{$name}</strong> was added to your cart!";
echo "</div>";
}
if($action=='exists'){
echo "<div class='alert alert-info'>";
echo "<strong>{$name}</strong> already exists in your cart!";
echo "</div>";
}
}
$list=array("Phone","Tablet","Camera","Gaming","Accessory");
for($i=0;$i<count($list);$i++)
{

10

$query = "SELECT id, name,price FROM products where category ='{$list[$i]}'


ORDER BY name";
$stmt = $con->prepare( $query );
$stmt->execute();
$num = $stmt->rowCount();
echo "<div class='alert alert-danger'><a href='more.php?categ=".$list[$i]."' style='color:
#b94a48;; text-align:right;'/><strong>{$list[$i]} ({$num})</strong></a></div>
";
if($num>0){
echo '<table style="border:solid 1px">';
echo "<tr>";
$count=0;
while($row = $stmt->fetch(PDO::FETCH_ASSOC))
{
if ($count==6)
{
echo "</tr></table><hr>";
break;
$count=0;
}
echo "<td style='border:solid 1px'>";
echo "<a href='desc.php?id=".$row['id']."'style='text-decoration:none; '><img
src='photos/".$row['id'].".jpeg' style='height: 150px;width: 200px;'/><br>";
echo "<center>".$row['name']."</center>";
echo "<center>Price : &#8377;".$row['price']."</center></a>";
echo "</td><td></td>";
$count++;
}
echo "</tr>";
echo "</table>";
echo "<hr>";
}
// tell the user if there's no products in the database
else{
echo "No products found.<hr>";
}
}
?>
<?php include('footer1.php');?>

11

SNAPSHOTS OF OUTPUT

12

CONCLUSION
There is no one commonly agreed definition of e-commerce or e-business. Thus, there is
a need to clarify terms being used and explain the context in which they are being
applied. E-commerce has an impact on three major stakeholders, namely society,
organizations and customers (or consumers). There are a number of advantages, which
include cost savings, increased efficiency, customization and global marketplaces. There
are also limitations arising from e-commerce which apply to each of the stakeholders.
These include information overload, reliability and security issues, and cost of access,
social divisions and difficulties in policing the Internet. Successful e-commerce involves
understanding the limitations and minimizing the negative impact while at the same time
maximizing the benefits.
These frameworks help identify the elements of e-commerce and how businesses can
better understand e-commerce and its practical applicability
E-Commerce is an evolution
By using electronic technology through the internet, it achieved
More competitions, more marketplaces, faster transactions, and more advanced
technologies to make activities between customers and producers more active
We as customers and internet users are responsible to keep our e-commerce
healthy and safe so that e-business can be more reliable in the future

13

Potrebbero piacerti anche