0% found this document useful (0 votes)
147 views17 pages

A Micro Project Report On:-: Ecommerce Website in WPH

The document describes developing an ecommerce website using PHP. It discusses understanding PHP, setting up the development environment, designing the database and user interface. It then outlines the aim of the project to create an effective online platform for businesses. An action plan is provided with timelines and responsibilities assigned.

Uploaded by

Ritesh Tayade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views17 pages

A Micro Project Report On:-: Ecommerce Website in WPH

The document describes developing an ecommerce website using PHP. It discusses understanding PHP, setting up the development environment, designing the database and user interface. It then outlines the aim of the project to create an effective online platform for businesses. An action plan is provided with timelines and responsibilities assigned.

Uploaded by

Ritesh Tayade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

SHRI KRISHNA EDUCATIONAL AND CULTURAL MANDAL’S

SHRI GULABRAO DEOKAR POLYTECHNIC,


Gat no.26, mohadi shivar, shirsoli road, Jalgaon-425001

A micro project report on:-


“ECOMMERCE WEBSITE IN WPH”

Is submitted as per V scheme curriculum and the requirement for the


Program:- Diploma in computer Engg.

COURSE :-ADV JAVA


GROUP MEMBERS Roll No.
1. Patil Mahesh Sunil 21
2. Jagtap Nayan Satish 22
3. Tayde Ritesh Sudhaker 23
4. Mishra Khushi Ramu 24

Guided by
Prof. Mr. S. R. Shaikh
ACADAEMIC YEAR 2023-2024
SHRI KRISHNA EDUCATIONAL AND CULTURAL MANDAL’S
SHRI GULABRAO DEOKAR POLYTECHNIC, JALGAON

DEPARTMENT OF COMPUTER ENGINEERING

CERTIFICATE

THIS IS TO CERTIFY THE STUDENTS:-

1. Patil Mahesh Sunil


2. Jagtap Nayan Satish
3. Tayde Ritesh Sudhakar
4. Mishra Khushi Ramu

Have successfully presented the micro project on “ECOMMERCE WEBSITE IN


WPH ” And submitted in satisfactory manner. The micro-project is submitted
in partial full fillment for the Third year. Diploma in computer engineering
affiliated to Maharashtra state board of technical education,Mumbai for
academic year 2023-2024

(Guide) (H.O.D) (Principal)


CONTENT
Sr.no. Title Page.no.
Part:- A

1. Introduction
& 4
Aim of Project

2. Action plan
&
6
Resources Required

Part:- B

3. Source Code
7

4. Output 29

5 Conclusion 30

“Ecommerce website in WPH”


Introduction
In today's digital age, having an online presence is crucial for businesses to reach a
wider audience and increase sales. A commerce website serves as a platform where
businesses can showcase their products or services, allowing customers to browse,
purchase, and make transactions conveniently over the internet. In this
introduction, we'll discuss the basics of creating a commerce website using PHP, a
popular server-side scripting language for web development.

Understanding PHP: PHP (Hypertext Preprocessor) is a widely-used open-source


scripting language suited for web development and can be embedded into HTML.
It is powerful, flexible, and well-supported, making it an excellent choice for
building dynamic web applications, including commerce websites.

Setting Up Environment: Before diving into development, ensure you have a


development environment set up on your local machine or a web server. This
typically involves installing a web server software like Apache or Nginx, along with
PHP and a database management system like MySQL or PostgreSQL.

Database Design: Commerce websites typically require a database to store product


information, customer details, orders, and other relevant data. Designing a well-
structured database schema is crucial for efficient data management and retrieval.
Use tools like MySQL Workbench or phpMyAdmin to design and manage your
database.

User Interface Design: Design an intuitive and user-friendly interface for your
commerce website. Consider factors like ease of navigation, responsive layout for
mobile devices, clear product categorization, and prominent call-to-action buttons
for purchasing..
Aim of micro project

The aim of developing a commerce website as a web-based application using PHP is to create an
effective online platform for businesses to showcase and sell their products or services. This
involves several objectives:

Enhanced Market Reach: By establishing an online presence, businesses can reach a wider
audience beyond their local or regional boundaries, potentially increasing sales and brand
visibility.

24/7 Accessibility: A web-based commerce website allows customers to browse products and
make purchases at any time, providing convenience and flexibility.

User-Friendly Interface: The aim is to design a user-friendly interface that is easy to navigate,
facilitating a smooth and enjoyable shopping experience for customers.

Secure Transactions: Implementing robust security measures to protect sensitive customer


information and ensure secure transactions is crucial to building trust and credibility with
customers.

Customization and Scalability: PHP's flexibility allows for customization according to the specific
needs and preferences of the business. The aim is to build a scalable website that can
accommodate future growth and evolving business requirements.

Effective Management Tools: Developing administrative tools for managing products, orders,
inventory, and customer data efficiently helps streamline business operations and improve
productivity.

Integration with Payment Gateways: Integrating with various payment gateways enables seamless
and secure online transactions, offering customers multiple payment options.

Mobile Responsiveness: Ensuring that the website is mobile-responsive, allowing customers to


access and navigate the site easily from their smartphones or tablets, is essential in today's
mobile-centric world.
Action Plan

Sr. no Detail of activity Plan Plan Name of


finished finished group
date date members
1) Analysis of micro Khushi Mishra
project
2) Deciding role and Mahesh Patil
responsibility of every
group member

3) Preparation and Ritesh Tayade


collection of
information required
for project
4) Designing of project Nayan Jagtap

5) Making final report Ritesh Tayde

Resources requires
Sr. no Name of Specification Quantity
Resource
1) Computer Intel core 1
system i5,11th
generation,
8gb ram
2) Operating Windows 11 1
system
3) Development MS word -
software
Part: B
Code for registration page:-
<!DOCTYPE html>
<html>

<head>
<title>Registration Page</title>
<link rel="stylesheet"
type="text/css"
href="style.css">
</head>

<body>
<div class="container">
<h1>Registration Page</h1>
<form method="post" action="register.php">
<label for="name">
Name:
</label>
<input type="text"
id="name"
name="name" required>

<label for="username">
Username:
</label>
<input type="text"
id="username"
name="username" required>

<label for="email">Email:</label>
<input type="email"
id="email"
name="email" required>

<label for="password">Password:</label>
<input type="password"
id="password"
name="password" required>

<input type="submit"
value="Register">
</form>
<p> Already have an account?</p>
<a href="login.html">Click Here</a>
</div>
<br>
</body>

</html>
<!DOCTYPE html>
<html>
Code for login page:-

<head>
<title>Login Page</title>
<link rel="stylesheet"
type="text/css"
href="style.css">
</head>

<body>
<div class="container">
<h1>Login Page</h1>
<form method="post"
action="login.php">
<label for="username">Username:</label>
<input type="text"
id="username"
name="username" required>

<label for="password">Password:</label>
<input type="password"
id="password"
name="password" required>

<input type="submit"
value="Login">
</form>
<br><br>
<p> Does not have an account?
<a href="register.html">Click Here</a>
</p>
</div>
</body>

</html>

Code for login page:-

<?php
session_start();

// Start the session


// Check if the add to cart button is clicked
if (isset($_POST["add_to_cart"])) {

// Get the product ID from the form


$product_id = $_POST["product_id"];

// Get the product quantity from the form


$product_quantity = $_POST["product_quantity"];

// Initialize the cart session variable


// if it does not exist
if (!isset($_SESSION["cart"])) {
$_SESSION["cart"] = [];
header("location:cart.php");
}

// Add the product and quantity to the cart


$_SESSION["cart"][$product_id] = $product_quantity;
header("location:cart.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>GFG Shopping Web Application</title>
<link rel="stylesheet"
href="shop.css">
</head>
<body>
<header>
<h1>Welcome <?php
$user = $_SESSION["user"];
echo $user["name"];
?> to GFG Shopping Web Application</h1>
</header>
<nav>
<ul>
<li><a href="shop.html">Home</a></li>
<li><a href="shop.html">Shop</a></li>
<li><a href="cart.php">Cart</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</nav>
<main>
<section>
<h2>Products</h2>
<ul>
<li>
<h3>GFG Bag</h3>
<img src=
"https://media.geeksforgeeks.org/wp-content/uploads/20230407154213/gfg-bag.jpg"
alt="Product 1">
<p>Bag with 2 Extra pockets</p>
<p><span>$12</span></p>

<form method="post" action="shop.php">


<input type="hidden"
name="product_id"
value="1">
<label for="product1_quantity">
Quantity:
</label>
<input type="number"
id="product1_quantity"
name="product_quantity"
value=""
min="0"
max="10">
<button type="submit"
name="add_to_cart">
Add to Cart</button>
</form>
</li>
<li>
<h3>GFG T-Shirt</h3>
<img src=
"https://media.geeksforgeeks.org/wp-content/uploads/20230407153931/gfg-tshirts.jpg"
alt="Product 2">
<p>100% cotton t-shirts</p>
<p>
<span>$20</span>
</p>

<form method="post" action="shop.php">


<input type="hidden"
name="product_id"
value="2">
<label for="product2_quantity">
Quantity:
</label>
<input type="number"
id="product2_quantity"
name="product_quantity"
value=""
min="0"
max="10">
<button type="submit"
name="add_to_cart">
Add to Cart
</button>
</form>
</li>
<li>
<h3>GFG Hoodie</h3>
<img src=
"https://media.geeksforgeeks.org/wp-content/uploads/20230407153938/gfg-hoodie.jpg"
alt="Product 3">
<p>Black Color Stylish Hoodie</p>
<p>
<span>$50</span>
</p>

<form method="post" action="shop.php">


<input type="hidden"
name="product_id"
value="3">
<label for="product3_quantity">
Quantity:
</label>
<input type="number"
id="product3_quantity"
name="product_quantity"
value=""
min="0"
max="10">
<button type="submit"
name="add_to_cart">
Add to Cart
</button>
</form>
</li>

<!-- Add forms for the other products here -->


</ul>
</section>
</main>
<footer>
<p>&copy; 2023 GFG Shopping Web Application</p>
</footer>
<script src="shop.php"></script>
</body>
</html>

OUTPUT:-
Conclusion : -
In conclusion, developing an e-commerce website as a web-based application using PHP offers a
myriad of benefits for businesses aiming to establish a strong online presence and drive sales. By
leveraging PHP's versatility and robust ecosystem of tools, developers can create dynamic and
scalable platforms tailored to meet the specific needs of both businesses and customers.

Key points to highlight in the conclusion include:

Flexibility and Customization: PHP provides developers with the flexibility to customize every
aspect of the e-commerce website, from the user interface to backend functionality, ensuring that
it aligns with the business requirements and branding.

Scalability: With PHP, businesses can build scalable e-commerce solutions that can
accommodate growth and handle increased traffic and transactions as the business expands.

Security: Implementing robust security measures in PHP ensures that sensitive customer data is
protected, fostering trust and confidence among users and mitigating the risk of cyber threats and
data breaches.

User Experience: A user-friendly interface and seamless navigation enhance the overall shopping
experience, encouraging customers to browse products, make purchases, and return for future
transactions.

You might also like