E-Commerce System Using PHP/MySQLi with Source Code

Language

E-Commerce System is an Online-Based System that allows buyers to easily search for products using their smartphones or laptop with an internet connection. This is a user-friendly system and it has a responsive design that fits in your gadget. It contains products such as Clothing (Men, Women, and Kids), Shoes, Bags, Interiors, and many more. You have many products to choose from and it’s very convenient for you to order a certain product that you like. The mode of Payment is Cash on Delivery and the fee depends on the location that you set-up on the admin side.

Features

Admin Side

  • Manage Products
  • Manage Orders
  • Manage Categories
  • Manage Discount
  • Manage Delivery Fee
  • Manage Users
  • Generates Report

Customer Side

  • Home
  • Shop
  • Products
  • Contacts
  • Cart
  • Searching for Products
  • Billing Details
  • Submit Orders
  • Customer Profile
    • Update Accounts
    • WishList
    • List of Orders

How to Run

Requirements

  • Download and Install any local web server such as XAMPP and WAMP.
  • Download and Extract the source code zip code.

Installation

  • Open your XAMPP/WAMP's Control Panel and start "Apache" and "MySQL".
  • Extract the source code zip file
  • If you are using XAMPP, copy and paste the source code folder into XAMPP's "htdocs" directory. And if you are using WAMP, paste it into the "www" directory of WAMP.
  • Open a web browser and browse the PHPMyAdmin. (http://localhost/phpmyadmin)
  • Create a new database naming "db_ecommerce".
  • Import the SQL file to your newly created database. The SQL file is located inside the extracted source code folder and known as "db_ecommerce.sql".
  • Open a web browser and browse the web application. (http://localhost/ecommerce) for the website and for the admin side (http://localhost/ecommerce/admin)

Admin Access

Username: janobe
Password: admin

Sample Customer Access

Username: janobe
Password: janobe1234

Demo

View Demo

For more information about the system. You can contact me @
Email – [email protected]
Mobile No. – 09305235027 – TNT
Or feel free to comment below.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byjohnthar (not verified)on Tue, 09/17/2019 - 20:30

Hello I am john I have uploaded your code, and it works well offline but when I upload it the admin section is not visible it think it has a problem with web_root, please help
Submitted bySrijin (not verified)on Tue, 10/24/2023 - 00:42

In reply to by johnthar (not verified)

it is not working for me: Warning: require_once(include/initialize.php): Failed to open stream: No such file or directory in D:\xammp\htdocs\ecom\index.php on line 2 Fatal error: Uncaught Error: Failed opening required 'include/initialize.php' (include_path='D:\xammp\php\PEAR') in D:\xammp\htdocs\ecom\index.php:2 Stack trace: #0 {main} thrown in D:\xammp\htdocs\ecom\index.php on line 2
Submitted byRishu (not verified)on Tue, 07/07/2020 - 00:46

Hey, I am unable to correct the error related to web_root and Server_root while hosting it on 000webhost
Submitted byGaurav_Sharma (not verified)on Tue, 07/14/2020 - 19:01

the username and password for customer is not working We are getting below error. [Tue Jul 14 10:58:48 2020] PHP Notice: Undefined variable: res in /home/ubuntu/ECommerce/LogSignModal.php on line 94 [Tue Jul 14 10:58:48 2020] PHP Notice: Trying to get property '_AUTO' of non-object in /home/ubuntu/ECommerce/LogSignModal.php on line 94 [Tue Jul 14 10:58:48 2020] 45.251.49.70:31687 [200]: /ECommerce/index.php
Submitted byAnonymous (not verified)on Tue, 09/01/2020 - 06:13

thank
Submitted byKhant (not verified)on Sun, 10/25/2020 - 04:05

Hey, I am unable to correct the error related to web_root and Server_root while hosting it on 000webhost
Submitted byAnonymous (not verified)on Fri, 11/20/2020 - 12:38

I got these error Warning: require_once(C:/xampp/htdocs\ECommerce\include\config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\learnPHP\New dbms project\include\initialize.php on line 14 Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs\ECommerce\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\learnPHP\New dbms project\include\initialize.php on line 14
Submitted byTomás hhh (not verified)on Sat, 01/30/2021 - 11:19

Erro fatal : __autoload () não é mais compatível, use spl_autoload_register () em vez de C: \ Users \ Edmil \ OneDrive \ Documentos \ Unnamed Site 2 \ htdocs \ ecommerce \ include \ function.php na linha 37
Submitted byAbba Muhammad … (not verified)on Mon, 04/26/2021 - 23:58

Can I modify the source code and host my website?
Submitted byAdmin-Ligon (not verified)on Wed, 06/09/2021 - 15:40

I tryed to login into the admin-tool and then i become thos error Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in D:\XAMPP\htdocs\ecommerce\include\function.php on line 37
Submitted byHares Khan (not verified)on Sun, 06/27/2021 - 15:47

thank you bro for the free code, but i have a problem, i cant even see the website beacaus of 1 error, this is what i see: Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs\ECommerce\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\yt ecommerce\include\initialize.php on line 14 help me please
Submitted byMarco Perini (not verified)on Fri, 07/16/2021 - 23:42

Warning: require_once(C:/xampp/htdocs\ECommerce\include\config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\ecommercemarco\include\initialize.php on line 14 Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs\ECommerce\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\ecommercemarco\include\initialize.php on line 14
Submitted byMukalazi (not verified)on Mon, 11/08/2021 - 09:40

hi can't view it on 000webhost I get this HTTP ERROR 500
Submitted bykjrhfk (not verified)on Thu, 11/25/2021 - 14:06

Email sent
Submitted byjibonbd.info@g… (not verified)on Sat, 01/01/2022 - 13:48

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in C:\xampp\htdocs\ecommerce\include\function.php on line 37
Submitted bysanjay joshi (not verified)on Tue, 01/04/2022 - 15:54

nice
Submitted byKEVAL VALA (not verified)on Fri, 02/18/2022 - 00:30

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead in D:\XAMPP\htdocs\ecommerce\include\function.php on line 37 Help to solve our this problem
Submitted bytolasa (not verified)on Sat, 01/06/2024 - 01:49

In reply to by KEVAL VALA (not verified)

please send for me correct code
Submitted byMuhseen (not verified)on Sun, 02/27/2022 - 11:37

Please can I get the full source code am working on the same project mine final school project [email protected] Thank you for tutorial and everything
Submitted byThemecks (not verified)on Sun, 10/23/2022 - 18:58

Fata error: __autoload() is no longer supported, use spl_auto_register() instead in C:\xampp\htdocs\ecommerce\include\function.php on line 37. I was abled to solve the above problem by replacing it as above, but I get the following problem again. Fata error: Cannot redeclare spl_autoload_register() in C:\xampp\htdocs\ecommerce\include\function.phpfata error on line 37.
Submitted bySan kimlong (not verified)on Tue, 06/13/2023 - 11:08

In reply to by Themecks (not verified)

error: __autoload() is no longer supported, use spl_auto_register() instead in C:\xampp\htdocs\ecommerce\include\function.php on line 37. I was abled to solve the above problem by replacing it as above, but I get the following problem again. Fata error: Cannot redeclare spl_autoload_register() in C:\xampp\htdocs\ecommerce\include\function.phpfata error on line 37.
Submitted byelorm (not verified)on Sat, 01/14/2023 - 15:41

Parse error: syntax error, unexpected end of file, expecting "elseif" or "else" or "endif" in C:\xampp\htdocs\ecommerce\include\function.php on line 83. Please help
Submitted byAnonymous (not verified)on Wed, 06/21/2023 - 09:02

hii, i try to open the localhost/ecommerce, but the error below occur, can you help me Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\xampp\htdocs\ecommerce\include\database.php:14 Stack trace: #0 C:\xampp\htdocs\ecommerce\include\database.php(130): Database->__construct() #1 C:\xampp\htdocs\ecommerce\include\accounts.php(2): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\ecommerce\include\initialize.php(17): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\ecommerce\index.php(2): require_once('C:\\xampp\\htdocs...') #4 {main} thrown in C:\xampp\htdocs\ecommerce\include\database.php on line 14
Submitted byAnonymous (not verified)on Mon, 08/21/2023 - 09:27

i am trying to open it but this is what im getting Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\xampp\htdocs\ecommerce\include\database.php:14 Stack trace: #0 C:\xampp\htdocs\ecommerce\include\database.php(130): Database->__construct() #1 C:\xampp\htdocs\ecommerce\include\accounts.php(2): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\ecommerce\include\initialize.php(17): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\ecommerce\admin\index.php(2): require_once('C:\\xampp\\htdocs...') #4 {main} thrown in C:\xampp\htdocs\ecommerce\include\database.php on line 14
Submitted byAnonymous (not verified)on Mon, 09/18/2023 - 22:14

Fatal error: __autoload() is no longer supported, use spl_autoload_register() instead
Submitted byanthonz (not verified)on Thu, 02/22/2024 - 12:21

Warning: require_once(C:/xampp/htdocs\ECommerce\include\config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\ecomnice\include\initialize.php on line 14 Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs\ECommerce\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\ecomnice\include\initialize.php on line 14

Add new comment