E-Commerce Website In PHP With Source Code

Project: E-commerce website in PHP with source code

– To download E-commerce website project for free (scroll down)

About Project

E-Commerce Website project is developed using PHP, CSS, Bootstrap, and JavaScript. Talking about the project, it has all the essential features required for an e-commerce website. This project contains the user and admin side. Admin can manage products, suppliers, view logs and many more. From user account, he/she can view products and purchase it easily. The Admin plays the main role in the management of the website. In this project, admin performs all the main functions like managing products, suppliers, users and much more.

About Website

After logging in as a user, he/she can view all the available products and gets access to add the product in their carts to purchase. Each and every product contains its own photo, descriptions with reasonable price. In order to purchase an item, the user has to enter product quantity and complete shipping address. There are different product categories too. This e-commerce website lists all products in user’s feed with its respective price. Without logging in as a user, he/she won’t get any access to purchase any items; only the user can check items and its details.

Admin Panel

The Admin has full control of the system, admin performs all the main functions like managing products, suppliers, users and much more. Here, the user can check user and admin log information as well as product and suppliers. The admin can manage all products. In order to add products, the user has to provide name, description, price, quantity, supplier, photos, and a serial key. Likewise, to add supplier he/she has to provide supplier name, address, contact details, and email id. In short, admin can perform CRUD function on the management of suppliers and products. And if a product’s quantity decreases after maximum order then admin can increase it easily. The last feature of this project is about user management. Admin can add users to the management of the site.

E-Commerce Website in PHP helps in easy management of an e-commerce site. Design of this project is simple so that user won’t find it difficult to understand and use. To run this project you must have installed virtual server i.e XAMPP on your PC (for Windows). E-Commerce Website in PHP with source code is free to download, Use for educational purposes only! For the project demo, have a look at the video below.

Features:

  1. User login & sign up
  2. Administrator Dashboard
  3. Carts
  4. User and admin logs information
  5. CRUD products
  6. CRUD suppliers
  7. Add users
How To Run??

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 “electricks” and then click on the import tab
7th Step: Click on browse file and select “electricks.sql” file which is inside “DATABASE” folder
8th Step: Click on go.

After Creating Database,

9th Step: Open a browser and go to URL “http://localhost/Electricks/Electricks-shop/index.php”
Insert the username and password which is provided inside the “Readme.txt” file.

For Admin Panel

Final Step: Go to URL “http://localhost/Electricks/Electricks-shop/pages/admin_panel.php”
Or simply log in as a user, you’ll see “Admin Panel” option in the Navigation bar. It will redirect you to Admin Panel.

LOGIN DETAILS ARE PROVIDED IN “Readme.txt” FILE INSIDE THE PROJECT FOLDER

DOWNLOAD E-COMMERCE WEBSITE IN PHP WITH SOURCE CODE: CLICK THE BUTTON BELOW

[quads id=1]


5 1 vote
Article Rating
Subscribe
Notify of
guest
68 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
karan
karan
5 years ago

hey, didn’t find electricks.sql in database, also localhosts other than phpmyadmin are not working

Naseeb Bajracharya
5 years ago
Reply to  karan

electricks.sql file is inside the folder named as “DATABASE”

sss
sss
5 years ago

After doing all the steps , when we are entering (http://localhost/Electricks/Electricks-shop/index.php) this statement , it is showing an error. Why so ?

odin
odin
5 years ago
Reply to  sss

what does it show??

Frankice
5 years ago

I can’t find READ.txt please help

Alex Frank
5 years ago

This project is very fantastic, but my problem is that the ORDER returns empty result, please can someone help me that’s the only hidrance and is very important

joshua
joshua
5 years ago

orders don’t register in admins order review ( http://localhost/Electricks/Electricks-shop/pages/orders.php )
there is also an “admin panel” when I log in in the nav bar, when I hit it it redirects to the admin, why?

Jaya Simha
5 years ago

After doing all the steps , when we are entering (http://localhost/Electricks/Electricks-shop/index.php) this statement , it is showing an error. Why so ?

Jaya Simha
5 years ago

statement,

sapna
5 years ago

thanks this is awesome code

Mike Smith
Mike Smith
5 years ago

Just could not find any folder named, DATABASE that has an electricks.sql file.

Traoré
Traoré
4 years ago

Hi, every body! Hi ! The owner of this source code. Thank you very much for this amazing source code. It works great!!! Thanks again. May Allah bless you. Amin.

Jundy
Jundy
4 years ago

how to login admin sir, only can login user.. thanks

hemal
hemal
4 years ago

What are the admin login credentials?

hathim
hathim
4 years ago

your password is not working sir

Juhi
Juhi
4 years ago

” Object not found! ” error on opening “http://localhost/Electricks/Electricks-shop/index.php”. I copied the entire folder to xampp/htdocs and all folder names are correct. Please help.

archy
archy
4 years ago

Hello There!!

Quantity dropdown selection doesn’t show,,

Notice: Undefined index: prod_qty in C:xampphtdocsElectricksElectricks-shoppagesuser_product_details.php on line 30

Notice: Undefined index: prod_qty in C:xampphtdocsElectricksElectricks-shoppagesuser_product_details.php on line 31

Can you please help me with this? Thank you for the codes..

Z4premo
4 years ago

username and password error

jos
jos
4 years ago

can you please give me admin username and password as in database, password is in encrypt form

jos
jos
4 years ago
Reply to  jos

ah i solve it bro

vishwajeet kakade
4 years ago

Hey sir i want to use live webhosting for this file how can i extract file in hosting and how to configure database connection please help

Diksha
Diksha
4 years ago

hii,
I am getting the below error, can anyone help me, I did create the database and then imported the sql file from DATABASE :

Error
SQL query:


— Database: electricks

— ——————————————————–


— Table structure for table admin

CREATE TABLE IF NOT EXISTS admin (
user_id int(11) NOT NULL,
firstname varchar(50) NOT NULL,
lastname varchar(50) NOT NULL,
email varchar(50) NOT NULL,
username varchar(50) NOT NULL,
password varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
MySQL said: Documentation

#1046 – No database selected

Bansharai Khardewsaw
Bansharai Khardewsaw
4 years ago

I copied the folder in xampp/htdocs >electricks.sql when i try to import it,it was showing no database selected

Gaven John
Gaven John
4 years ago

Hey Admin ! Might’ve found a small bug . Here , I’ve noticed every new user created gets admin rights as the admin dashboard redirects to the CRUD product page , where a mere user can change the vital product details. There are other queries besides this. It’d be really convenient if i got hold of your mail , so we could further this conversation there. Thank You so much!

hyni mohamed
hyni mohamed
4 years ago

what are the main project folders?

hyni mohamed
hyni mohamed
4 years ago

it look’s like any one who sign up can log as admin

Aman
4 years ago

Why the css file named as now-ui-kit.css?v=1.1.0 on linking with PHP file
But on folder it’s just now-ui-kit.css

VINU VARGHESE
VINU VARGHESE
4 years ago

Hi,

How can I restrict the admin menu reflected in user login? I don’t want to see the admin menu in normal user ie, customer login. pls guide me

Jayson
4 years ago

can you make it another navbar bar or program taht CUSTOMER LOGIN CAN ONLY ALLOW TO BUY AND CANNOT go to admin panel WHILE ADMIN CAN LOG IN ONLY TO BE AN ADMIN AND CANNOT BUY A PRODUCT BUY ONLY CAN EDIT VIEW OR DELETE AND UPDATE? TAHNK YOU and please explain also

codeprojects
Editor
4 years ago
Reply to  Jayson

this is all we have for now.
we may post new project based on your changes in near future

webby
webby
4 years ago
Reply to  codeprojects

can the database be connected using WAMP server. I trie connecting it using wamp. It successfully imported the electricks.sql file but still it is giving error : unknown database electricks in C:/wamp/www/…/dbconn.php on line 2.

codeprojects
Editor
4 years ago
Reply to  webby

yes it can be connected using wamp,
please your database name with the name from dbconn.php file

mark
4 years ago

How to fix the order tab in admin page ? The orders are not showing. Please help me ASAP.

christoper
4 years ago

Admin user name password ??? that is not working.

Amit
Amit
3 years ago

Hi Fabian,

Can I use source code from this website for anything that I want, like – sell/modify and sell/distribute, etc.

Please let me know.

Regards,
Amit

Misbah
Misbah
3 years ago

its amazing source code .It is helpful for making my project. Thanks a lot of the owner of this project.

amos coded
3 years ago

plc can you include paystack payment gateway and paypal

Abubakr Khan
Abubakr Khan
2 years ago

while importing database it shows error below :
Error
SQL query: Copy


— Dumping data for table `admin`

INSERT INTO `admin` (`user_id`, `firstname`, `lastname`, `email`, `username`, `password`) VALUES
(1, ‘Billy’, ‘Revellame’, ‘[email protected]’, ‘bluedcoffee’, ‘admin’),
(2, ‘Clark’, ‘Banaag’, ‘banaaghub.com’, ‘clarkpogi’, ‘a1Bz20ydqelm8m1wql7c6f5bdc16b3748b481fb5ea98bd4ace’),
(3, ‘admin’, ‘admin’, ‘admin.com’, ‘admin’, ‘admin’)
MySQL said: Documentation

#1062 – Duplicate entry ‘1’ for key ‘PRIMARY’

rasneel
rasneel
2 years ago

everything works fine its just I’m having some error after adding to cart could someone help me
this is the error:
Fatal error: Uncaught Error: Call to undefined function mysql_error() in /Applications/XAMPP/xamppfiles/htdocs/Electricks-shop/pages/user_product_details.php:46 Stack trace: #0 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/Electricks-shop/pages/user_product_details.php on line 46
***please help***

dyana
dyana
2 years ago

Hello, it was an amazing system. I have followed every steps and I can get into the system. The problem I encounter is when I tried to login to admin side. I have tried using all usernames and passwords from admin DB. I still could not login

Ann
Ann
2 years ago

The orders and sales donot appear in database

walter
walter
2 years ago

napapagana ba ito sa free hosting website?

altaf ziya
altaf ziya
2 years ago

E-Commerce Website In PHP With Source Code
i want this project file in pdf for college submit.

Syed Farhan Safi
2 years ago

you can login as user and jump into admin Panel tooo

Vibby
Vibby
1 year ago

I imported the sql file. But then when I try to open this url, http://localhost/Electricks/Electricks-shop/index.php
it says,
404 Not Found.
The requested URL was not found on this server.

Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.6 Server at localhost Port 80

Prabhu
Prabhu
1 year ago

How to logout from admin
Prabhu

bruce
bruce
9 months ago
Reply to  Prabhu

how to login in admin , username and password

syed ali shah
syed ali shah
8 months ago

i need username and its password

68
0
Would love your thoughts, please comment.x
()
x