What an amazing tutorial that not only show you how everything is done step by step but the way he describes it ensures that you comprehend what's happening..... Great job!!!!👍
i started this a wek ago..i thought it would be easy for me to do...but ...no!!! damn..sir u r great i got error evry now n then i got frudstated i sat in laptop fro 10 hours a day i kept doing 1 error solved it then 2nd error solved it yes i gort fade up but still i didnt quit i tried tried n tried many places coding didnt work due to latest php version but i didnt loose hope i searched web went throiugh other tutorials and finallyu !1 today i finaly finished it.. a big thank you to u!!!!! also, its not like that i copied n paste ur efforts of teaching students really made me learn so many things now i will modify the design and make it more functional by adding log in and sign up thank u sir love u
Bro you are like a role model to me and you literally taught me everything i know in php and mysql.. i wish to see you in person someday....thanks for this video and may God almighty bless you
AMAZING VIDEO! i really like that you explains some of the function's functions so that beginners like me understand the concept as a whole. Keep it up man!
hey man i just have one question : if i logout and log in using another account, how do i know if the cart session belong to the current logged in user and not displaying the same shopping cart for all users?
Using the id. Match the log user id with the card user id. Make sure when user add card data you add user id as well with the card. So you only fetch the card with belongs to the log in user
This is only for a single user no? what can I do to store multilple users carts information in the database? Also youre so good in explaining and teaching!!
I am from functional programming so that is why I am not using pdo. Any way I will make a PayPal transaction system for you. Thank you 😊 for your request
Good morning, dear Sir! Excuse me, I will be a little off topic, but I am currently building an online sales site, which includes a back office allowing the management of orders placed by customers. My problem is with the recording of the contents of a basket in the database. I have an "order" table that contains a product_id field and an order_id field, and I don't see how to save multiple product_id (if the cart contains multiple products with different id's) under one order_id. Currently, when there are several products, only the product_id of the last product (for example, if there are 4 products, only the product id4 is taken into account) is recorded in the order table. Thank you in advance for your help.
Thank God I came across this tutorial, very well explained 👏 not sure if you did it but how can the cart list be saved so every time the user logs in his cart will still have his products?
Guys Im working for a school project, can you tell me few explanations why is it better to code your own e-shop instead of using some systems like prestashop and similar..
Hi, nice tutorial! Works perfectly. DB question now : How can you update a field value in the database table, when clicking on an 'add to cart' button? So depending on which button you clicked (of which product id), update a value of that record. I suppose an onclick event on the buttons, calling a function with php again, and inside that php an UPDATE sql. But how can you use the current product (id) as parameter so only the value of that product record gets updated?
Great video! Change suggestion in cart.php: in the if statement after "$total=0;", add "&& !empty($_SESSION['cart'])" in condition so "Cart is empty" can be properly displayed when session is set while there is nothing in the cart.
i got the error: Warning : mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\Advance_Shopping_cart-master\Advance_Shopping_cart-master\index.php on line 71
@@DailyTuition Good day I have the same issue can you please make a video or explain a bit more in detail as to how / where to input his: "INSERT INTO Producttb (product_name, product_price, product_image) VALUES ('Apple MacBook Pro',1799,'./upload/product1.png'), ('Sony E7 Headphones',147,'./upload/product2.png'), ('Sony Xperia Z4',459,'./upload/product3.png'), ('Samsung Galaxy A50',278,'./upload/product4.png')";
Hey I don't know much of php script for creating database. But, is there a reason/s why my codes couldn't create the database even though i changed just the variables?
Buddy the title of video is shopping cart tutorial you took an hour just to set up the website it would be better if you just focused on the functionality of cart only
I disagree with you. Most of viewers here are just starting to understand everything that is required for a full cart system!! Bro just scroll to where you need is what i do sometimes!
Bro code is running ,it works properly. But the problem is i can't increse the quantity of product. Why what should i have to do for increasing the quantity. And one more problem is that after adding we removed product from the cart till that everything is working. But after removed when i tried to add again that product in cart instead of adding it takes place of the product that was already in the carty. So these two major problems I'm facing. Expect them every function is working fine. Thank u for this wonderful tutorial. Do answer asap :)
@@abdullahihussein9924 yep i know that... its a way to create database which connect to phpmyadmin... im just curious about the css and html codes since he used apple and Im using windows... is it make any changes? like the output going to be different results? because im using different OS
when I click the add to cart button when tyring to check the quantity, it's giving me an error"Fatal error: Call to undefined function array_column() in C:\wamp\www\E-cycle\shop.php on line 14".
Hi. I have this problem. When at 44:00 we start programming that "add to cart" button would print id of an item, everything is fine until after 46:25 when we have programmed, so that browser would display at which index the item is. When i click "add to cart" button, browser, for some reason, displays all items. Well, probably because i clicked, out of curiosity, every item to check how the code works. However, now it seems that those items have been added into array and are displayed like this (Array ( [0] => 4 [1] => 1 [2] => 3 [3] => 2 ) And i can't change anything about them. Even if the code up to that point is exactly like yours, it still displays what items are in the cart in a way like above, even thought yours is something like this: Array ( [0] => Array ([product_id] => 2) [1] => Array ([product_id] => 3) ) Also, if i refresh browser by retyping or just clicking enter on the link, the array of current items is no longer displayed, but if i click on "add to shopping cart" on any item, i get full array with all 4 items. Any way to reset this? Because i'd rather follow your tutorial and have exact results in every step of the tutorial, than ignore the problem, and have it cause even more bugs later. Thank you.
First when you create an array make sure you create a cart array with array value. You specify the only the cart id to the array. Instead of cart id specify a complete array with products_id key and value. Check the creation of the array again
@@DailyTuition Solved this problem, thank you. Now near the end at 1:14:50 when we setup counter, how many items are added in the cart, for some reason i get 0, even though 4 items are already added to the cart. Any ideas?
Since this cart method makes use of backend technology, and we are fetching all data submitted to the back end, won't customers be seeing what each other is buying in their own cart and checking out the same products
If 2 guys are buying same product same time and if first guy made successful payment and when 2nd guy making payment the product must be not available (consider only 1 in stock) How will you handle this scenario? Db transaction or lock that table?
hi bro, I dont understand the array_column, what does it do, cant you use normal array? Im doing little different technique and cant use the array_column probably
This video was helpful. I appreciate it. How can I get to send email to the user the item name and item total cost after checking the cart instead of payment method . If you can create a video it will be helpful
When you created the component.php file and transferred the div class for the product, yours had \ in front of all the ". Mine did not have that, and it's causing an error. I'm using Dreamweaver CS6. (Time frame is: 18:24 in the video)
I ran into a problem at the very end of the video. When I removed one item from the cart and went back to the main page to add it back in, it replaced another item. Is there a way to fix this? Otherwise, this was a great video!
What an amazing tutorial that not only show you how everything is done step by step but the way he describes it ensures that you comprehend what's happening..... Great job!!!!👍
Thank you keep supporting
Where the data will be saved@@DailyTuition
i started this a wek ago..i thought it would be easy for me to do...but ...no!!!
damn..sir u r great
i got error evry now n then
i got frudstated
i sat in laptop fro 10 hours a day
i kept doing
1 error
solved it
then 2nd error solved it
yes i gort fade up
but still i didnt quit
i tried tried n tried
many places coding didnt work due to latest php version
but i didnt loose hope
i searched web
went throiugh other tutorials and finallyu !1
today
i finaly finished it..
a big thank you to u!!!!!
also, its not like that i copied n paste
ur efforts of teaching students really made me learn so many things
now i will modify the design and make it more functional by adding log in and sign up
thank u sir
love u
most welcome, keep learning with effort 🙂👍
Bro you are like a role model to me and you literally taught me everything i know in php and mysql.. i wish to see you in person someday....thanks for this video and may God almighty bless you
Ohh. Thank you so much 🥰
please do you know how i can increase the cart quantity
@@DailyTuitionwhere will be data saved
AMAZING VIDEO! i really like that you explains some of the function's functions so that beginners like me understand the concept as a whole. Keep it up man!
Keep learning
which framework used?
سر بہترین سمجھایا ہے
یقین کریں بہت عمدہ 🤍
34:09 Thank you for giving information about that, now I can create a database and table using PHP script. God bless and stay safe!
Most welcome 😊 keep supporting
@@DailyTuition I already subbed you, keep up the good work, your effort is greatly appreciated.
this is awesome, now just insert a login system for username and password:)!
Thanks for the effort and time you spend on this great heartwarming tutorial, it was very educative.
That's great. Keep learning :D
Amazing tutorial, helped me grasp PHP and the basic usage of MySQL and MyPHPAdmin in half an hour
Keep supporting
hey man i just have one question : if i logout and log in using another account, how do i know if the cart session belong to the current logged in user and not displaying the same shopping cart for all users?
Using the id. Match the log user id with the card user id. Make sure when user add card data you add user id as well with the card. So you only fetch the card with belongs to the log in user
I was panicking because I don't know how to make add to cart work for my assignment. I came to the right place, thank you kind sir
Most welcome. Keep learning
@@DailyTuition Where can I learn to increase the quantity of items in the cart?
Check out my Ecommerce tutorial on this channel. ua-cam.com/video/KLWA2vCERSQ/v-deo.html
Wow this video help me clearing the logic of cart thank you it's a project which is also an assignment before job interview interview
I notice you only one channel that have great php tutorial, thanks a lot. Can u teach us how to integrate payment with php :)
Really appreciate
Thanks a lot. Very clear instructions. I can understand your teachings more than my lecturers :-)
Thank you
"So I'm gonna just say here..." X104...
Great tutorial Man!!
Thank you 😊❤️
This is only for a single user no? what can I do to store multilple users carts information in the database? Also youre so good in explaining and teaching!!
A very interesting tutorial. Questions: 1. Why not PDO for Database? 2. Will you implement a PayPal transaction system for completeness?
I am from functional programming so that is why I am not using pdo. Any way I will make a PayPal transaction system for you. Thank you 😊 for your request
@@DailyTuition Amazing! Thank you!
this was amazing man! Great job!
Good morning, dear Sir!
Excuse me, I will be a little off topic, but I am currently building an online sales site, which includes a back office allowing the management of orders placed by customers.
My problem is with the recording of the contents of a basket in the database.
I have an "order" table that contains a product_id field and an order_id field, and I don't see how to save multiple product_id (if the cart contains multiple products with different id's) under one order_id.
Currently, when there are several products, only the product_id of the last product (for example, if there are 4 products, only the product id4 is taken into account) is recorded in the order table.
Thank you in advance for your help.
i'm from 2021 just wanna say i'm really thanks for good explaination❤
Thank you keep supporting
thank you bro im waiting for next video for this project .
thank you so much for your tutorial. May god bless you and your fellow tutors that also helps me on doing my project!
Thank God I came across this tutorial, very well explained 👏 not sure if you did it but how can the cart list be saved so every time the user logs in his cart will still have his products?
We are using session so it will be stored
It need user id and session
Hi
Sorry miss I have question
You used in this Web page
Bootrap yeah
Because some attributes is new for me
Yes I used bootstrap
Thanks so much! This is an amazing tutorial.
the best bro, thank god I found u
any follow up tutorials on PayPal or Stripe integration? Thanks
Guys Im working for a school project, can you tell me few explanations why is it better to code your own e-shop instead of using some systems like prestashop and similar..
Hello bro,make video on payment gateway for this project.
mainly working with php...
would you suggest to use phpstorm (never used) over vscode with php extensions (current setup)
Actually vscode is free and phpstorm is paid. If you have money then phpstorm is best but if you don't want to spend many then vscode is better.
Great tutorial. Looking forward for your future tutorials
Thanks for your support 🙏
Very educative. I liked how youtook us step by step.
ur a true hero my sir, thank u
Hi, nice tutorial! Works perfectly.
DB question now : How can you update a field value in the database table, when clicking on an 'add to cart' button?
So depending on which button you clicked (of which product id), update a value of that record.
I suppose an onclick event on the buttons, calling a function with php again, and inside that php an UPDATE sql.
But how can you use the current product (id) as parameter so only the value of that product record gets updated?
Pass the product id to the html element so you can get the id for update
Great job brother! Thanks a ton! 🙏🏻
Most welcome 😊
Hi
About the part where you 'send the order'....did you make a video ?
No. this is just a cart tutorial
@@DailyTuition How about a video,when you select the amount of the product ?Can you seuggest me one ?
Time Span:18:24- at least to let your viewers know that you've replaced double quotation with back slash double quotation
Accurate
This tutorial is so amazing, thankyou very much... i hope there is next session to procceed confirm method payment :)
Great video!
Change suggestion in cart.php: in the if statement after "$total=0;", add "&& !empty($_SESSION['cart'])" in condition so "Cart is empty" can be properly displayed when session is set while there is nothing in the cart.
I recently uploaded a new video that will explain you everything.
@@DailyTuition Link please?
Hi I already have a shopping cart but can I know more about the part where it display the amount of item in the cart? I can't seem to get it working.
Use JavaScript for quality. Using it increase the quantity
much love from jamaica
Thank you
I want to use select field for the size. Each size have diff prices and i want to add it into cart. Please give me an example
I have a Ecommerce tutorial on this channel plz check that
@@DailyTuition ok thanks
After creating component.php I get a syntax error: unexpected end of file. My component.php file ends with } am I getting something wrong?
This is syntax error. Plz check you are missing the syntax
I get an error after putting products in the component function and the error is unexpected ‘:’ please tell how to solve?
hello, thanks for the video, but how can I make it so that when I click on (Plus or Minus, the product is added and decreased ?)
I have a dedicated video on it plz check the channel video section. Search for e-commerce website tutorial
Great tutorial on add cart got to learn alot thanks for it👍
Do you have another tutorial on how to insert session data to mysql database..?
It's simple. Use the insert data technique
thank you so much this helped me a lot :))
Can you make also qty add or remove from cart and checkout on this example? Great Tutorial.
I am working on that part 😊
Sir
How to use JavaScript for changing the quantity of product
Working on new project with quantity
@@DailyTuition we need further more help for this issue
Could please make video for it??
The Best Tutorial on Planet EARTH.. KEEP IT UP
Hello
At 18:30 how the slashes been added when u copied the code. Example (
You saved me!
Thank you sir.. God bless you...
i got the error:
Warning
: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in
C:\xampp\htdocs\Advance_Shopping_cart-master\Advance_Shopping_cart-master\index.php
on line
71
Add data in the table and make sure the query returning at least one record 👍
@@DailyTuition i dont understand what you mean there ..please show me how to do it
I mean add record in the table and try again
@@DailyTuition Good day I have the same issue can you please make a video or explain a bit more in detail as to how / where to input his: "INSERT INTO Producttb (product_name, product_price, product_image)
VALUES ('Apple MacBook Pro',1799,'./upload/product1.png'),
('Sony E7 Headphones',147,'./upload/product2.png'),
('Sony Xperia Z4',459,'./upload/product3.png'),
('Samsung Galaxy A50',278,'./upload/product4.png')";
This is the SQL command. You need to execute it in the SQL file. This will insert data in the table.
Hey I don't know much of php script for creating database. But, is there a reason/s why my codes couldn't create the database even though i changed just the variables?
18:29
i got this error
Notice: Undefined variable: element in /opt/lampp/htdocs/shoppingapp/shopping/php/component.php on line 37
what's the problem?
Variable is undefined. It means you need to create this variable before using it.
@@DailyTuition I have created the variable by following your tutorial but it's still not working
Got it now, I forgot to put a semi-colon after the $element
Thank you so much for creating this tutorial....... Love you bro.......
How to increase the quantity? Why is this called advanced if you can't even add the quantity
Use JavaScript
ThankYou Mr. Daily your videos help me to do my homework :)
Buddy the title of video is shopping cart tutorial you took an hour just to set up the website it would be better if you just focused on the functionality of cart only
We needed what he did
I disagree with you. Most of viewers here are just starting to understand everything that is required for a full cart system!! Bro just scroll to where you need is what i do sometimes!
Bro code is running ,it works properly. But the problem is i can't increse the quantity of product. Why what should i have to do for increasing the quantity.
And one more problem is that after adding we removed product from the cart till that everything is working. But after removed when i tried to add again that product in cart instead of adding it takes place of the product that was already in the carty.
So these two major problems I'm facing. Expect them every function is working fine.
Thank u for this wonderful tutorial.
Do answer asap :)
You have to check my ecommerce tutorial to learn how to increase quantity and cart cart process. It's my latest tutorial plz check that
excellent work, very educational, keep up the good work.
Thanks 😊
im just curious, are the codes work properly since you're using apple and im using windows?... your video really got me interest man..
Thank you so much keep supporting for more videos 🤗
xampp is a cross plateform my friend...so it will definately work...
@@abdullahihussein9924 yep i know that... its a way to create database which connect to phpmyadmin... im just curious about the css and html codes since he used apple and Im using windows... is it make any changes? like the output going to be different results? because im using different OS
It is an excellet vedio session.Many Thanks
Most welcome 😊
Great tutorial, I got no error while creating database but there is no databases created nor the table after I run the file
Create a database first and specify that to the database file. Then run
when I click the add to cart button when tyring to check the quantity, it's giving me an error"Fatal error: Call to undefined function array_column() in C:\wamp\www\E-cycle\shop.php on line 14".
I have learned a lot.....its great tutorial..
great video!
How would we go about a feature to take payment? and another feature to store successful purchase details?
Thanks in advance!
Check out this video ua-cam.com/video/UEJHSPM-Qiw/v-deo.html
Amazing Tutorial Software !
Can u link any tutorials on JavaScript that teaches how to add functionality to the add minus buttons?
Yes I have that. I think you can find it in the channel video section. Just search for navigation menu
Thanks for this great video , great job 👍 🇹🇳
lovely video i am looking this kind of video
Hi. I have this problem. When at 44:00 we start programming that "add to cart" button would print id of an item, everything is fine until after 46:25 when we have programmed, so that browser would display at which index the item is. When i click "add to cart" button, browser, for some reason, displays all items. Well, probably because i clicked, out of curiosity, every item to check how the code works. However, now it seems that those items have been added into array and are displayed like this (Array
(
[0] => 4
[1] => 1
[2] => 3
[3] => 2
)
And i can't change anything about them. Even if the code up to that point is exactly like yours, it still displays what items are in the cart in a way like above, even thought yours is something like this:
Array (
[0] => Array ([product_id] => 2)
[1] => Array ([product_id] => 3)
)
Also, if i refresh browser by retyping or just clicking enter on the link, the array of current items is no longer displayed, but if i click on "add to shopping cart" on any item, i get full array with all 4 items. Any way to reset this? Because i'd rather follow your tutorial and have exact results in every step of the tutorial, than ignore the problem, and have it cause even more bugs later. Thank you.
First when you create an array make sure you create a cart array with array value. You specify the only the cart id to the array. Instead of cart id specify a complete array with products_id key and value. Check the creation of the array again
@@DailyTuition Solved this problem, thank you. Now near the end at 1:14:50 when we setup counter, how many items are added in the cart, for some reason i get 0, even though 4 items are already added to the cart. Any ideas?
@@DailyTuition Sorry, never mind. I typed at one point $_SESSION variable in lower case... Fixed that and it solved my problem.
How did you upload the pictures in the pycharm?
Sir, i have a question. 32.47, the word dbname and tablename how did you do that? Copy paste or how ? Im stuck because of that. Will you help me out?
thankx for your efforts. Its really usefull.
Thanks for this helpfull video. Do you know how it's possible to set the number per product to 2,3,4,... when you click on "add to cart" more times?
You don't have to add one product multiple times. Just increase quantity that would be great. 😊
Since this cart method makes use of backend technology, and we are fetching all data submitted to the back end, won't customers be seeing what each other is buying in their own cart and checking out the same products
If 2 guys are buying same product same time and if first guy made successful payment and when 2nd guy making payment the product must be not available (consider only 1 in stock) How will you handle this scenario? Db transaction or lock that table?
hi bro, I dont understand the array_column, what does it do, cant you use normal array? Im doing little different technique and cant use the array_column probably
Thank u so much this was so useful I'm crying rn
Most welcome 😊
Thank you very much! It is a very good project.
This video was helpful. I appreciate it. How can I get to send email to the user the item name and item total cost after checking the cart instead of payment method . If you can create a video it will be helpful
Yes sure
@@DailyTuition please when will that be?
Don't know. But as soon as possible
Sir, in the cart section does the accordion works? for buying multiple goods at once in the session cart?
how to make it works?
I have a Ecommerce tutorial on the channel plz watch that. You will find all your question answers
Hi bro.
In this website How i add the payment integration to checkout the products.?
I have a dedicated video on payment integration check out this video
ua-cam.com/video/UEJHSPM-Qiw/v-deo.html
thank you, but I am struggling with creating the quantity increasing part. Do you have another tutorial for that or can you give me a lead ?
hello do you done creating a quantity?
give me tutorial for that plss
Yes I have. Check this out ua-cam.com/video/KLWA2vCERSQ/v-deo.html
hey thx for tutorial but on the boostrap site is no longer available the jss code any solution ?
Use the previous version. Or download the js from the previous version
Tysm 🤩 very well explained !!
i love you man you saved my life
Ohh. ☺️
thanks.. it's a very helpful tutorial for me..
Good job. Thanks. How would you do the checkout?
Use paypal integration 👍 or something else
Thanks a lot , it was really useful 👍 👌 you've helped me in my project
God bless you 🙏
Most welcome 😊
When you created the component.php file and transferred the div class for the product, yours had \ in front of all the ". Mine did not have that, and it's causing an error. I'm using Dreamweaver CS6. (Time frame is: 18:24 in the video)
Plz add.that back slash. Without it you can't do that.
@@DailyTuition can you type that syntax in comment how to wright
@@DailyTuition How it should be copied to add backslash automatically like you did
Great tutorial man! thank you so much!!
Could you please help me with the code to increment quantity and get the final price in the same project.
I will be very grateful to you if after watching your whole video tutorial, you display the code listing of the program.
I ran into a problem at the very end of the video. When I removed one item from the cart and went back to the main page to add it back in, it replaced another item. Is there a way to fix this? Otherwise, this was a great video!
Plz check the get data function again. And make sure when you add product in the cart you specify unique it to it
Thank you sir for the video. I have a problem. Once I delete the items, and add again, it doesn't add to the basket. Please Help me. Best Regard.
I think the problem is in the ID or in the insert method
Thx for the tutorial can u continue with the checkout we can see the payment method and how we can integrate them also
I will make another tutorial for that
@@DailyTuition
Can introduce mobile money payment with ussd ?
I will 😊
lovely very usefull tution