online shopping system

Online Shopping System In PHP With Source Code

Project: Online Shopping System in PHP with source code

– To download the Online Shopping System project with source code(Scroll down)

Online Shopping System is developed using PHP, CSS, and JavaScript. The project is a useful project. This project contains the admin side and user side where a user can view shopping items details, sign up, and buy products online. While the admin can add items and users, products, manage them, and soon.

About System

Talking about the features of this system, the admin can manage the users, products, and check subscribers. While the user can shop for all the available shopping items by signing in. And, in order to buy products online, he/she has to sign up/in through the system.

The user can shop for multiple items and pay online through cards. This simple project is similar to the online shop portal. The design of this project is very simple so that the user won’t find any difficulties while working on it.

How To Run??

To run this project you must have installed a virtual server i.e XAMPP on your PC. The Online Shopping System in PHP with source code is free to download, Use for educational purposes only!

After Starting Apache and MySQL in XAMPP, follow the following steps

1st Step: Extract file
2nd Step: Copy the main project folder
3rd Step: Paste in xampp/htdocs/

Now Connecting Database

4th Step: Open a browser and go to URL “http://localhost/phpmyadmin/”
5th Step: Then, click on the databases tab
6th Step: Create a database naming “ecommerce” and then click on the import tab
7th Step: Click on browse file and select “onlineshop.sql” file which is inside the “database” folder
8th Step: Click on go.

After Creating Database,

9th Step: Open a browser and go to URL “http://localhost/online-shopping-system/”

For the admin panel, go to URL “http://localhost/online-shopping-system/admin/”

For the project demo, you can have a look at the video below:

project demo

DOWNLOAD ONLINE SHOPPING SYSTEM IN PHP WITH SOURCE CODE: CLICK THE BUTTON BELOW



Got stuck or need help customizing this System as per your need, go to our PHP tutorial or just comment down below and we will do our best to answer your question ASAP.

Author: codeprojects
4 2 votes
Article Rating
Subscribe
Notify of
guest
41 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Online Shopping System in PHP with source code | Source Code & Projects – PHP coding

[…] Online Shopping System In PHP With Source Code […]

Mujtaba
5 years ago

Though this is amazing website with the latest trends and working fine actually I need to know about the password and email security I mean encryption decryption. secondly why admin panel is open for everyone? there must be an admin login and password form before accessing admin panel. also, price range slider is not working checkin process should provide options to users not every one has bank accounts please do notice my queries it would be great for everyone , by the way, thanks for each and every project guys you are doing wonderful job for those who cannot afford… Read more »

Guest69
Guest69
5 years ago

Looking forward for this system, hope you can make it better.

Everyone can access admin, no admin account. Please fix
Cart* not really working. Please fix
Search* not really working. Please fix
and more..

Guest69
Guest69
5 years ago
Reply to  Guest69

*User cannot view My Profile

Guest69
Guest69
5 years ago
Reply to  codeprojects

are you guys making this project better?

Angel Rodriguez
Angel Rodriguez
4 years ago
Reply to  codeprojects

thank you very much for the sharing friend, i will try to make the changes hope everyone can share the fixes!

Angel Rodriguez
Angel Rodriguez
4 years ago

just the search bar please

Angel TheKind
Angel TheKind
4 years ago
Reply to  codeprojects

or were can i buy the hole project friend?

Takeru
4 years ago
Reply to  codeprojects

Hi Admin, wanna ask did you re missing clotheslist.php ? Because I cant delete the product after added it. Can you fix these? Tq.

Mark
Mark
2 years ago
Reply to  Takeru

There is an error on line 68 productlist.php on the delete button should read

 <a class=' btn btn-success' href='productlist.php?product_id=$product_id&action=delete'>Delete</a>
thucdaik
thucdaik
4 years ago

Thank very much

Angel TheKind
Angel TheKind
4 years ago

were do i can buy the hole project?

Divyanka
Divyanka
4 years ago

how to edit categories into this?

wangning
4 years ago
Reply to  Divyanka

the categories of this system connect with database,you just need change the cat_id values,BTW,you still need fix more problem about nav,good luck

Nikita
Nikita
4 years ago

I have an error that on screen “INR”
Please tell me what to do

Alif
4 years ago
Reply to  Nikita

open. online-shopping-system–>db.php

delete all.

and copy paste

<?php

$servername = “localhost”;
$username = “root”;
$password = “”;
$db = “ecommerece”;

// Create connection
$con = mysqli_connect($servername, $username, $password,$db);

// Check connection
if (!$con) {
  die(“Connection failed: ” . mysqli_connect_error());
}

?>

lk
lk
3 years ago
Reply to  Alif

Had the same issue and copy-pasted as you advised, getting new error:

INR
Parse error: syntax error, unexpected ‘failed’ (T_STRING), expecting ‘)’ in C:\xampp\XAMPP 2\htdocs\Online1\db.php on line 13

Priyanka
Priyanka
4 years ago
Reply to  Nikita

In Admin panel in mange product the product is not deleting can p/z tell me what to do?

Lk
Lk
3 years ago
Reply to  Nikita

Hi, were you able to solve this, kindly assist, having the same error

Anish
Anish
2 years ago
Reply to  Nikita

Hey do you have a report on this project

Suresh Gavali
Suresh Gavali
4 years ago

Can i get ER diagram of this project So I can Learn more.
This is very nice project for learning purpose

Last edited 4 years ago by Suresh Gavali
amir sohail
4 years ago

<a href=”https://worldtoplist.net/famous-athletes-quotes/”>famous athletes quotes
</a>

Mujahid
4 years ago

Many many thanks. Code is working fine. great.

AHMED
AHMED
4 years ago
Reply to  Mujahid

hello can you please send it to my mail my codes are not working

student
student
1 year ago
Reply to  Mujahid

Please can I get the code

Unknow
Unknow
4 years ago

Im sorry that I have change some stuff of your project, I just want to test a few thing. Im done now, thank you so much for sharing this.

lk
lk
3 years ago

Hi, were you able to solve this, kindly assist, having the same error …

Ahmeed
Ahmeed
3 years ago

When I click delete it goes to the “Page not found”, may I know how to fix this?

sajib
sajib
3 years ago

Sir, the Order page is not working for me, I have tried for multiple order, and its showing in MySQL but not showing on the webpage
How can I resolve them? Please give a solution

Pratik soni
3 years ago

Why not show admin panel in order to any product
What is problem pls solve and me notice

Ananya B S
Ananya B S
3 years ago

Sir how to the slick theme of the web page

Zan Starasinic
Zan Starasinic
3 years ago

Search bar still not working, I mean it’s loaded for a second but goes back to all products.

Sweety
Sweety
3 years ago

what is password for admin login?
please let me know asap

zeeshan
3 years ago

sir i am shucked in admin page where i cannot get any order so kindly give me solution asap thank you

Tommy
Tommy
3 years ago

With this online shop project, is it code with PDO or Procedural in PHP?

Wendy
Wendy
3 years ago

Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: NO) in C:\xampp\xampp\htdocs\online-shopping-system\db.php on line 9
Connection failed: Access denied for user ‘root’@’localhost’ (using password: NO)

Appear this when trying to open in chrome. Already try to search all the method online but still fail to solve it. Please help, thanks.

Mujahid
Mujahid
2 years ago
Reply to  Wendy

Please use your phpmyadmin user and password in db.php

architha
architha
2 years ago

first where do we get htdocs folder to copy the file

devendar
devendar
1 year ago

Dear friend,
how we change dollar currency into irn
pls help me

Kabir
Kabir
1 year ago

clothes_list.php file is missing due to which cannot delete the product from productlist.php