Simple Shopping Cart In PHP With Source Code

Project: Simple Shopping Cart in PHP with source code

About Project

Simple Shopping Cart is developed using PHP, CSS, Bootstrap, and JavaScript. Talking about the project, it contains an admin side and user side where a user can select the item and add it to shopping cart easily. The admin plays an important role in the management of this system. In this project, the user has to perform all the main functions from the admin side.

About System

Talking about the features of the Simple Shopping Cart, the user can simply select any of the available products and add them to cart. From the admin panel, the admin takes control of the system. In order to add products the user has to provide item name, price and image. He/she can manage all the products, orders and view all the cart details. The admin can also manage customers account.

Design of this project is pretty simple so that the user won’t find any difficulties while working on it. Simple Shopping Cart in PHP helps the user in managing all the shopping cart. To run this project you must have installed virtual server i.e XAMPP on your PC (for Windows). Simple Shopping Cart in PHP with source code is free to download, Use for educational purposes only! For the project demo, have a look at the image slider below.

Features:

  1. Login System
  2. Admin Panel
  3. Item Management
  4. Customer Management
  5. Order details
  6. Shopping cart list
  7. Customer account setting
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 “edgedata” and then click on the import tab
7th Step: Click on browse file and select “edgedata.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/edgesketch/”

Provide the username and password which is provided inside the “Readme.txt” file.

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

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

project demo

DOWNLOAD SIMPLE SHOPPING CART IN PHP WITH SOURCE CODE: CLICK THE BUTTON BELOW


4.5 2 votes
Article Rating
Subscribe
Notify of
guest
21 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Andy Chang
Andy Chang
5 years ago

Hi,

I face the following error when logging as customer. May i know what’s the fixes for this? I have changed to mysqli but it doesn’t work too.

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:xampphtdocsedgesketchCustomersshop.php:305 Stack trace: #0 {main} thrown in C:xampphtdocsedgesketchCustomersshop.php on line 305

Thank you.

Andy Chang
Andy Chang
5 years ago
Reply to  Andy Chang

Is ok.. Got it fix using mysqli method as i m using php7. Thanks. Nice tutorial.

Jane Lopez
Jane Lopez
4 years ago
Reply to  Andy Chang

how did u do it?

aryan
aryan
4 years ago
Reply to  Andy Chang

how did u do dude.

Satish
Satish
3 years ago
Reply to  Andy Chang

How did you do that? As im new so i couldn’t understand that

premanth
premanth
5 years ago

Hai sir,

Sign in not working.

after signup successfully.

I cannot sign in the account.

warning:mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:xampphtdocsedgesketchuserlogin.php on line 22

please how to solve it

Rahul
Rahul
5 years ago

Hi,

I cannot sign in the account.
warning:mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:xampphtdocsedgesketchuserlogin.php on line 22.

cube
cube
4 years ago

How to change the symbol P next to Price:

Jane Lopez
Jane Lopez
4 years ago

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\EdgeSketch\Customers\shop.php:305 Stack trace: #0 {main} thrown in C:\xampp\htdocs\EdgeSketch\Customers\shop.php on line 305

I have this error. how can i fix this?

San
San
4 years ago

I believe it’s better that you do specify versions for your SW, somehow it seems not working properly with the current version you post this at 2019!

Lucas
Lucas
4 years ago

I updated the simple shopping cart and now it has no error in the shop now area for client’s.
Can i send you the one I updated myself?
Respond to my personal email that i responded in this comment.
Thanks

Ruben Paiva
Ruben Paiva
3 years ago
Reply to  Lucas

boa tarde tenho um erro no shop.php acha que me podia ajudar por favor urgente

Ruben Paiva
Ruben Paiva
3 years ago
Reply to  Lucas

good afternoon i have an error in shop.php think you could help me please urgent

Dylan Wong
Dylan Wong
3 years ago

Hi sir, your works is pretty awesome. May i request for the code for the shop now page. It will help me a lot. Thank you.

amit
3 years ago

nice bro love your content 🙂

Iman Izzati
Iman Izzati
3 years ago

VERY HELPFUL!!! APPRECIATE YOU GUYS’ WORKS SO MUCH :’) MAY YOU GUYS BE SUCCESSFUL FOREVER <3

Wera
Wera
3 years ago

Hi, First of all, thank you very much for your great web site code here. I am very appreciated. I would like to ask about installing the .sql , I got the error while running sql. Error : Error SQL query: CREATE TABLE `orderdetails` ( `order_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL DEFAULT ‘0’, `order_name` varchar(1000) NOT NULL DEFAULT ”, `order_price` double NOT NULL DEFAULT ‘0’, `order_quantity` int(10) unsigned NOT NULL DEFAULT ‘0’, `order_total` double NOT NULL DEFAULT ‘0’, `order_status` varchar(45) NOT NULL DEFAULT ”, `order_date` date NOT NULL DEFAULT ‘0000-00-00’, PRIMARY KEY (`order_id`), KEY `FK_orderdetails_1` (`user_id`),… Read more »

nazerke
nazerke
2 years ago

hi, how did you solve it?

Anjana
2 years ago

I solve this foreign issue by creating the users table first

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