Project: E-commerce Site in PHP with source code
– To download E-commerce Site project for free (scroll down)
About Project
E-commerce site project is developed using PHP, CSS, Bootstrap, and JavaScript. Talking about the project, it has all the required essential features. This project has a user side where he/she can view product category and add products to cart and proceed for checkout whereas from administration side he/she can view sales, number of product, users, daily sales report, add product and categories. The user can also leave comments on each product if he/she wants. In this project, all the main functions are performed from the Admin side.
About System
Admin has full control of the system, he/she can view daily/monthly sales report for each year, manage all existing users, add, view, edit, delete products and categories. Monthly sales report is represented in the form of Bar Graphs. While adding products, the admin has to provide Product’s name, select category, price, upload product’s photo and write a description. Adding a product category is simple, the admin just has to provide Category name. Just like the other popular e-commerce, here while looking a product’s image the images magnifies whenever mouse cursor is dragged onto it. The system redirects to Paypal for checkout. A responsive dashboard is provided in the admin panel for the easy management of the site.
In short, this E-commerce site in PHP project is a bit similar with a WordPress e-commerce site. Mostly, the adding description has the same feature of that of WordPress. All the important features that are required for an eCommerce site is set for this project. Design of this project is pretty simple and responsive so that user won’t find it difficult to understand, use and navigate.
To run this project you must have installed virtual server i.e XAMPP on your pc (for Windows). E-commerce Site in PHP is free to download with source code. For the project demo, have a look at the video below.
Features:
- Admin Panel
- Login/Sign Up
- Magnify product image
- Product Cart
- Google ReCaptcha
- Checkout using Paypal
- Add, Edit, Remove and View Products
- User Management
- View daily/monthly sales
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 databases tab
6th Step: Create database naming “ecomm” and then click on import tab
7th Step: Click on browse file and select “ecomm.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/ecommerce/”
For Admin Panel
Final Step: Login from the User’s login side. Just provide the Admin’s login detail, it will redirect you to Admin panel.
Note: Don’t go to URL “http://localhost/ecommerce/admin” for Admin Panel. Just provide Admin’s login detail in User’s login side.
Provide the username and password which is provided inside the “Readme.txt” file.
Is it multi-vendor?
Can you modify it into multi-vendor system? How long?
we might upload that feature too in upcoming days!! 🙂
please complete the sign up.
i tired to fix phpmailer.
lanat
Captcha is not working!!!
How do you change the currency?
I need the same answer please, how can i change the currency, i also wanted to add some other pages i would like to have a template for about and contact us page ,and how do i remove the facebook comments
I have been able to change the currency, its within the HTML pages check every pages with prices then change the ASCII
how you did that ,can you please explain.
where it is bro i can’t find it
look for the characters & # 36; and change it with your currency. It’s in the product.php, category.php, cart_view.php, admin/products.php & admin/home.php
The currency is set by default in USD using HTML character code set. In the products, transactions, cart, etc .php files, find the code where there is ($) which is the code for $(USD). Change this to your preferred currency e.g EUR. Ur effort is pointless though because the website is not fully functional 🙁 but worth the learning.
sir never downloading the file through google drive 🙁
help me sir
help me durdana
there is no database folder
There is no add to card option at all. I fixed the SMTP problem tho.
Hi Prasanth, could you help me on how you solved the SMTP problem to send authentication via email?? Thanks
can you help me out on how you fixed SMTP problem
Hello, why do you use ‘slug’ when displaying single product, why not use ‘id’ which will be unique (auto-increment in table). Isn’t it like the standard method, go by id? what if there are 2 or more similar ‘slug’ fields?
Sir ,I cant see any payment options in cart view.
How can the user or existing user pay and process the transaction?
The Java script for PayPal is there but where is it connected?
can I get the souce code for triigering (for User status) and stored procedure that you used here
Can you add quantity in this ecommerce and when the customer buy a product the quantity will deduct on how many he buys
How to properly installed ….
Please give me a YouTube video
I am student. I don’t know how is it possible. So…
contact me on email [email protected]
why is that register.php is blank? Can you fix this? thanks
admin panel when click on more info showing url return is not found
smtp authentication error
how to deploy on real time server ? where is ipconfig file ?
Nice Work can i host this project for testing purpose?.
session login not work how fix it
sir
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate
I am getting this error on forgot password page
can u please tell how to fix this error
where can i change Gmail and password parameters in phpmailer
E-commerce Site In PHP With Source Code
I Have One This Project How to solve
Error This :Warning: mktime(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in C:xampphtdocsecommerceadminhome.php on line 218
not working E-commerce Site
error not showing number of user,total sales,number of product,sales today. in admin panel dashboard please help me.what can i do
Sir where is book.php,student.php,return.php and borrow.php files can you please tell me sir
one of the best projects… can i modify and use for personal uses?
and how can i link my facebook comments to each product?
Hello, I am having a problem with SMTP, any help with that what should I do to get it fixed ?
hai can i ask you is it can register to another admin..if i want to be another admin what i want to do..?
i want the user who register the website to be admin how i want to do it? can you help me..
what will i put in database ?
id ?
name ?
Hello can you help me i want to change the pay pal payment to local payment when a customer pay the details goes direct to a database instead of paypal the java script codes confuse me please help
Hello, how can I change the background color of the main content and everything??
How can i add subcategory functionality in this code?
please “Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.” please fix this or tell solution in signup process.. Thanks in advance
MUY BUENO..!
My website is not running plzz tell me fast plzz
sir,
I can’t find the file Readme.txt in project folder. How I know existing admin user name and password?
we always provide 2 text files named as “READ ME FIRST.txt” and “01 READ ME FIRST.txt”. look through project files. if you can’t find it, redownload it and check!
which css file should i open to edit things such as background, buttons etc?
Sir in registration page google recapcha is not showing what is the problem. Can you please tell me
Sir what is the password for [email protected]
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in C:xampphtdocsecommerceincludessession.php on line 14 .. This error is showing pls tell me the solution. It’s urgent I want to add this full website in my project.
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in C:xampphtdocsecommerceincludessidebar.php on line 13 .. The sidebar is giving the same error0.
Sir, I’ve an issue with this project. New Categories not added through admin panel. It’s been showing error while adding new category in this. Also is there any option to change payment mode from pay-pal to cash. Kindly update me regarding this. I will be thankful to you.
hi sir,
i am getting recaptcha error. how to solve it.
i’m generate recaptcha key and paste it .but i’m also getting error.
how to resolve it, please help me.
cat slug wont insert in in database category
insert manually in db
how to add another user?
Error while registration. Email is not sending while registrating. Error is message could not be sent. Mailer error: SMTP Error: could not authenticate.
Sir how can i solve this error ple
ase inform me
Why do none of the dashboard links for “total sales”, “number of products”, “number of users” and “sales today” work?
Hello sir
i did all following step except stept 9 it said object not found
What can i do sir??
Thanks u
Not able to open admin panel
cant load only
Hi. This is a great work. Can you paginate the products in category.php to have a limit on how much products will we displayed. just a suggestion. Thanks.
Help! it says ::
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in C:xampphtdocsES_PHPecommerceincludessession.php on line 14
Hey admin can you make a step by step on how to fix this SMTP mailer error , badly needed thanks.
How to change background color!!??
i have some problem about code execution. after following the steps given in the instruction nothing is displayed when i try to open the page from the browser (google chrome)
Hello, I was getting an error which stated SQLState420000 1046 you have an error in your sql syntax, check the manual that corresponds with your Mariadb server version for the right syntax to use where=’27” at line 1, I’ve checked the admin/ product and admin/product edit and tried to altered things but none do so . I’ve tried to checked the answer but It seems that my little brain cannot function properly because I haven’t got a long ass sleep. Please consider helping with me with this, Thank you so much. 🙂
??
did you get the solution of ur problem?
Sir can you please explain this code. It is very helpful to us
Sir do you have multi vendor ecommerce project in php
SQL query:
—
— Database:
ecomm
—
— ——————————————————–
—
— Table structure for table
cart
—
CREATE TABLE IF NOT EXISTS
cart
(id
int(11) NOT NULL,user_id
int(11) NOT NULL,product_id
int(11) NOT NULL,quantity
int(11) NOT NULL) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1
MySQL said: Documentation
#1046 – No database selected
Can we recover our password?
How can I change the currency????
can i modify it and used it as my website or for school
the capcha will work after having a domain/web hosting?
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. after i create a new user this error showed up
In admin panel dashboard while clicking number of user,total number of sale,number of product,sales today. this will not open in admin panel and in url link it will show book.php,student.php,return.php and borrow.php object not found. please tell me solution see number of user,total number of sale,number of product,sales today.
i am getting this error when i run the project . i have installed wamp server in my system
Please sir where is the php file where you have create the connection variable ?
i want to put my own database name in the project because my webhost do not permit to change database name like i want
thank you.
i am using it with local host and when i am trying to login admin dashboard or user dashboard using the id password given by you i m getting this error “There is some problem in connection: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)”
Please help
how to change currency.
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. while forgot password
In sign up module Capcha is not working . Kindly fix this
forgot password not working
i am having issues with the code for this project
Hello
I downloaded your E-commerce Site In PHP With Source Code and when i typed in the URL http://localhost/ecommerce/ into the browser, i get a blank page and when I type into the broswer http://localhost/ecommerce/login.php , it takes me to the login page and again, I login with [email protected] and its password, I get this error message
“There is some problem in connection: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
Fatal error: Call to a member function prepare() on a non-object in C:UsersImoro Amin A. BasitDesktopecomercerootecommerceverify.php on line 12” .
Again, when I type into the broswer http://localhost/ecommerce/signup.php , it takes me to the signup page and after completing the form and cliking on the signup button, i get this error massage as well;
There is some problem in connection: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
Fatal error: Call to a member function prepare() on a non-object in C:UsersImoro Amin A. BasitDesktopecomercerootecommerceregister.php on line 41.
What should i do to the code fix the above errors please?
hi i did everything as you have mentioned . but i am getting this error while login in or registering .
There is some problem in connection: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO)
please help
note:- i have mac and i am using mamp and netbeans
i am a beginner . please tell me how to configure in db.php / conn.php / dbconn.php
open that file
you’ll understand
you have to configure server details according to your own
PDO::ERRMODE_EXCEPTION,PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,);
protected $conn;
public function open(){
try{
$this->conn = new PDO($this->server, $this->username, $this->password, $this->options);
return $this->conn;
}
catch (PDOException $e){
echo “There is some problem in connection: ” . $e->getMessage();
}
}
public function close(){
$this->conn = null;
}
}
$pdo = new Database();
?>
Hello there! Sorry, but I got a problems when signup. What should I do? Thank you.
I have a problem. I want help. Please help me. I want to change payment mode from paypal to cash and simple credit/debit card payment form for project testing. I want to ask how to integrate it. And how to submit cash and credit card information into database. I’m beginner and don’t know how to do it. Anyone please help me.
I download the E-commerce-site-in-php,after taking the due process in installing. i was getting this message when I try to login with the login details provided.
Fatal error: Call to undefined function password_verify() in C:xampphtdocsecommerceverify.php on line 17.
please help me out.
and reCAPTCHA IS NOT WORKING ALSO.
PLEASE HELP ME OUT MORE ESPECIALLY ON THE ERROR OF LOGIN IN.
How can I remove the captcha from the sign up page , if I try to sign up it keeps on. Saying please enter captcha which is not appearing on the sign up page …
can I have the parameters of the paypal account of the project? thank you in advance
how to remove facebook comment section in the bottom of each product
i have problem that is Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. this error was show when i sign up
error in session
hello can we make this e commerce as a multivander hope to hear from u soon
please it is not completely loading what can i do
i keep on having this problem
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in C:xampphtdocsecommerceincludessession.php on line 14
facing issue while sql file adding
this project is great
how to add cash on delivery system instead of paypal? and is there any way to bypass/use model paypal details to go to the sales page?
When i try to connect it shows an error on line 17 “verify.php”
Someone pls help me with Sign up page its showing SMTP error can i remove that feature. If yes then how??
I need urgent support on this
why i cant sign up, update user, add product? please help me.
thanks for open source code,i can modify to be my project 😀
please send me
user id and password
Email : [email protected]
it is given inside the “Readme.txt” file.
please how can i change currency to Nigerian Naira???
Salut, ce projet est très bon, vraiment complet !!!! Mais j’ai un problème au niveau de l’inscription, erreur SMTP, c’est vraiment un casse tête.
Besoin d’aide SVP ! Merci
Salut, finalement j’ai résolu le problème SMPT et merci pour ce projet !!!
sir subscriber input box cannot work please hlep me.
Thanks!
this is very nice project , but i have faced problem to sing up every times give a message that please check captcha properly.
maybe you didn’t complete the captcha properly
Please check gmail inbox, I sent a screenshot to [email protected] Thank you
Where I change Name of Database ? plz Tks
Sorry, I found. includes/conn.php 😀
Hello sir
First of all I want to thank you for making this amazing project.
However,when I’m trying to print the sales report.
This error is being shown:
Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:xampphtdocsecommercetcpdftcpdf.php on line 17778
TCPDF ERROR: Some data has already been output, can’t send PDF file
Could you please tell me how to solve this??
Thank you in advance
SQLSTATE[HY000]: General error: 1364 Field ‘cat_slug’ doesn’t have a default value
How to fix it please
sir whenever i go to sign up page and create new user it always show please fill the form and also i dont want captcha in sign up how can i delete captcha function?
although great work.I really loved it
hello, am having a problem with adding new products
SQLSTATE[HY000]: General error: 1364 Field ‘date_view’ doesn’t have a default value
hi i am using this template but showing Error!
Cannot activate account. Wrong code.
please help
Hello,
I like your projects and those are awesome!!!
I would like to learn these things. Can you do some tutorial videos for this project? Like, step by step actions to develop this project.
Thanks!
hello Sir Everything is working properly there is only one error
in the registration page, when i m changing google recaptcha, i dont know why
recaptcha is working properly but when i fill up the form then there is showing one message fill the form properly like this message
sir can you tell where is secret key i thing i did not place my secret key
sir error is fill the signup Form first
thanks allot you are very genuine
take alook … not malicious?
how I use Cash on delivery
Please how can I access the payment page
Please how can you checkout and do the payment to complete transaction
Hi, how i can resolve SMTP error? I configured it.. If you tell me: delete it and create new process in register.php how? Thanks, Bye.
Is this a multi vendor e-commerce?
Anyone know how to fix the SMTP error? Need help please 🙁
how to display product in index page ???
there something error and the pop up msg is “Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.” how to fixe it.?
In sign up function something wrong because after I fill up on the sign-up form, it can’t log in. why? but my new acct is inserted on the database.
Hi i installed as per the given instruction but while browsing http://localhost/ecommerce/ i am getting a blank page showing these EcommerceSite,
HOME,
ABOUT US,
CONTACT US,
CATEGORY menu bar only, please guide where i am making a mistake
How Do you set up the phpmailer
its not have database folder
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
Any comments on this on how to resolve?
hello, i want to change $ to RM. can u guide me? because i cannot fine the code.
Hi there this website doesn’t have order button how can I add that
m getting an error . after creating a database localhost/ecommerce i wrote then page not display properly
what is the page displaying? what is it saying?
How do you make a transaction? I cant seem to login in paypal. Thanks!
hi, why i cannot do the sign up?
very useful and handy…..codes are working properly tq!!
Hi
Where do you enter the captcha secret ?
thanks
I want to make a Account and if i do that he says Code what code can i change it?
And change the PayPal Link?
If i want to register it says Authentication Failure something like that can Someone help me and how can i change the PayPal link?
where is the user login ?
I’m not able to find it.
i want to add an option of cash on delivery.
help me to enter that option
I was trying to customize the PHP Ecommerce System locally, but it says verify.php not working like HTTP error 500. How can I use the system, is it for free or I have to purchase it?
When registering new user im getting this error “Please answer recaptcha correctly” even if check box is checked correctly
How can i change the currency, i also wanted to add some other pages i would like to have a template for about and contact us page
Janobe thanks for your site.
My Question was can I also use 000.Webhostapp.com to host it/hostigator.
help me out Asap
Hi mate, i love the work you’ve done with this project. 🙂
i do have a problem though.. monthly top seller part is not visible in my browser :/ is this something you can help?
Sir how can we change the db name
Recaptcha is not working
Can you pls explain how to work on recaptcha in localhost
There is problem with category when we adding new then that category showing the smart phone
I want to add Cash on delivery option
And Remove PayPal payment gateway how can I do this?
Hello, please help me, I’m using Ampps and this is what I see on my browser while trying to load the file “Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in D:\Program Files\Ampps\www\ecommercenew\includes\session.php on line 14″ please help thanks.
Hello, please help me, I’m using Ampps and this is what I see on my browser while trying to load the file “Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in D:\Program Files\Ampps\www\ecommercenew\includes\session.php on line 14” please help thanks.
how to change currency
Sign up page is not working properly
I did everything as in the video but it doesn’t look like the project is connecting to the database . No picture is showing all i see is the main bar from above and that’s it. Any help please?
The signup form always says ‘Please answer recaptcha correctly’.Please help. I’m stuck.
hii sir you have done the great ptoject sir i just want to know to integrate paytm gateway in the php website project
how to change admin login details and user login details .
I cant enter signup. It is asking recapchta
Please how can you display products on the home page and how can you change the currency.
Thanks
where is index page there is ne but empty
The signup form always says ‘Please answer recaptcha correctly’. Entered the correct capture system key.. but still nothing working… Any Help would be good Thanks in advance…
I have download this project and setup offline but one function password_verify() is missing and showing following error, can help me how can create this
function password_verify() in E:\xampp\htdocs\shoping\verify.php on line 17
hi sir, how to configure correct sign up ? i can’t enter the sign up because of captcha. anyone can teach me ?
captcha not showing ! where is captcha