Step by step create an eCommerce website using PHP - Part 2 (Front End Creation)
HTML-код
- Опубликовано: 10 сен 2024
- This video is a part of Step by step create an eCommerce website using PHP. This video is the second video of this series. In this video, We start the front end for the website. Below are the features that we will cover in this video.
Features:
1. Front Theme Integration
2. Top Navigation Setup
3. Categories Page Setup
4. Product Detail Page Setup
5. Contact Us Form Data Capture
For Best Hosting Plan Check:- 91weblessons.co...
Also, use the below Coupon Code for an attractive discount: PROGRAMMINGWITHVISHAL
Learn PHP Online with Me:- bit.ly/LearnPH...
To help and support me(Donate Me):- bit.ly/Programm...
Source Code Link:- bit.ly/phpeComP...
Admin Theme Template:- bit.ly/AdminHTM...
Front Theme Template:- bit.ly/ecomFron...
Step by step create an eCommerce website using PHP (Playlist)
• Step by step create an...
#PHP #PHPProject #PHPeComWebsite
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅Subscribe: / @programmingwithvishal
I am a Digital Marketer by passion and a Developer by profession. With experience and expertise spanning around 10 years, in the Digital space.
Good amount of experience in development of web applications using PHP, .Net, JavaScript Library’s, Frameworks, CMS, API’s, Reporting tools and Payment Gateways. Skilled in digital viral marketing, technology innovation's, brand building and all phases of the Web development lifecycle with an expert in translating business requirements into technical solutions and fanatical about quality, usability, security, and scalability. Dealing with and resolving problems and issues which arise.
vishal ji your amazing i really heart full thanks for your video tutorials for educated people from villages like me, it is very big help to learning, we are mostly depends on youtube, once again thankyou so much.
So nice of you Srinivas. Thanks a lot for your kind words.
Sir g shukriya. problem solve ho gya hae. khuda apko hamesha khush rakhe
Thanks a lot
sir you are awesome you are really helping us a lot with these useful videos
Thanku so much Vishal Bhaiya for your hard wok and so useful tutorials. I m following you since last 1 year and get many things with your tutorials.
I think this channel is best for detail explanation....
I can make ecommerce using cookies...
Which one better session or cookies...pls suggest
Thanks Abhishek.
Cookie or Session will depends upon like which feature u want to create. So tell me what you wanna do with cookie and session
There is an error for me getting the photo from the file path, and I really appreciate this kind of tutorial more blessing for you
same, dont know how can I solve this.
wow , awseome indeed. i love your works, well done, thank so much for sharing your knowledge , keep it up.
Thanks a lot Emmy.
@@ProgrammingwithVishal Sir, do you have video that you transfer this on live hosting???
Thank You Sir Very Very Nice Vido Great SIr
Realy Great tutorial Video . Thank you so much. love from Bangladesh.
see this complete tutorial: ruclips.net/p/PLevMqpUVAwFg7U8Bw3CWbvQwQrijTHzji
your all videos r helpul for us ... Thanku soo much for ur kindness
Always Welcome Prit
@@ProgrammingwithVishal sir I want to make a ecommerce website like amazon, flipkart.. But I don't know coding.. And I've no interest in coding.. Then plz help me sir how can I get fully prepared ecommerce website with paid promotions.. 🙏 🙏
Sir i have error product page not change according to id please help me
Thank you sir,
I am following you Step by step but i found some vulnerabilities, yeah and confirming admin to perform some tasks like deleting editing,
and added some basic features also like button where you used links...
see our tutorial. there is no problem.
ruclips.net/p/PLevMqpUVAwFg7U8Bw3CWbvQwQrijTHzji
i follow all these steps from ur video
I am facing these warnings in categories page as well as product page:
Warning: Undefined array key "id" in C:\xampp\htdocs\php\ecom\product.php on line 3
can anyone suggest a solution?
also, $product_id=mysqli_real_escape_string($con, $_GET['id']);
here what means by id? is it the id of categories table or product table mentioned in the video?
TIA
If you're talking about the part at around 44:20, then don't worry. That's only happening because you're at a part of your website that's not "defining" an id number. So, for example, if you have a product with an id of 5, and wanted to see it, you would go to C:\xampp\htdocs\php\ecom\product.php?id=5
That ?id=5 at the end is the important part, because it's what defines what you're looking at. If you don't have an id number defined, then the website doesn't have an id to look for, so it freaks out and brings up the error message.
The same goes for your categories. If you were to look for, for example, a category with an id of 2, you'd go to C:\xampp\htdocs\php\ecom\categories.php?id=2
Without that ?id=2, you're basically saying to the website,
"Hi, I want to look at a category."
"Yes."
Hope this helps!
You are a messenger of God a savior 🙏🙏🙏
Sir I have gate a problem in categories page it is working completely but product cud not arrange. I mean to say I have add 10 deferential product and arrange to see all 10 product each one Row 4 product First row is working perfectly but second row it give me 1 product 3rd row 4 product and 4th row again 1 product I cud not find my fault place help me.
aap ka project bahut accha lga hume collge me mujhe submit krana h please sir kuch hlp kr dijye
Thanks one again sir ji..
sir mene do categories bnai h ek vagitable and second is fruit. so i just want to print the vegetable category on the vegetable page and fruit is on the fruit page. but dono page par same hi category perint ho rhi h. tell what can i do.
Actually i have issue is add prodouct When i add the product the data not show on product page or not show in data base can you help me
hi sir, we have the same path folder which is the media / product, but still the image is not loading, i did the same thing as stated in your video, how to solve?
Did you solve it ?
How did you solve it ?
Hello Vishal Sir, please help me. The images aren’t displaying on both admin and customer side. I’ve tried changing the file path in connection file but still can’t. I have to submit assignment tomorrow 🙏🏻
hey!!! can you please help me to solve same problem?
function clean($string) {
$string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.
return preg_replace('/[^0-9\-]/', '', $string); // Removes special chars.
}
Sir my contact us button is not working, i think the connection to js is not working what is happening
Sir why images are not showing in my local host? define('PRODUCT_MULTIPLE_IMAGE_SERVER_PATH',SERVER_PATH.'media/product_images/'); while using this server? is there any other way to add images?
sir when i am doing dynamic of categories this error coming: Uncaught Error: Array callback must have exactly two elements in C:\xampp\htdocs\skyevostore\include\top.php:85
Stack trace:
#0 C:\xampp\htdocs\skyevostore\index.php(7): include()
#1 {main}
thrown in
Sir 4 products are displayed on index.php if we place button load more products how to display next 4 products .
Should I add/change ani parameter in ? get_product($con,4,' ', ' ' , ' ' , ' ' ,'yes' );
Or any other logic... Please help sir...
Increase the number of count
Hii Vishal Sir, please help me I try so hard for it. I follow you and make a function about get_product and i write same thing. but $sql.= "and categories_id=$cat_id";
In this because of $cat_id throw some error like mysqli_ruselt, bool give in.
awesome no doubt this channel must be up.....
Thanks a lot
codeigniter ecommerce with Ajax please
Sir product image display nai ho raha
Please help 🙏
I have set the path
sir ma 24:42 pr pic laga raha hu pr jasy apki state ayrhi ha prr mri nechy jarhi ha koi solution?
Ur Step by step explain is very nice for other i search various types tutorials but i really like u but security feature is missing in please explain this whole security feature in this and thanks for share ur knowledge for the others
Deepak this project is for beginners and because of that, I had not added any high-level security feature here. I will do that in a separate video soon.
Awesome... Mza aa gya 👌
Sir, I am getting an error in functions.inc.php, function get_product($con,$type='',$limit=''){
$sql="SELECT * FROM `product`";
if($type=='latest'){
$sql.="order by id desc";
}
if($limit!=''){
$sql.="limit $limit";
}
$res=mysqli_query($con,$sql);
$data=array();
while($row=mysqli_fetch_assoc($res)){
$data[]=$row;
}
return $data;
}
// please tell me where is the problem ??
Add space between $sql.=" limit
Also in $sql.=" order
@@ProgrammingwithVishal sir, you are great
@@ProgrammingwithVishal sir, i want to do a course php advance, but i can register by next month, so is it possible ???
Yes u can. Advance PHP starts from first week of next month
Regret is i saw this comment 2hr latter after getting this error
Hi sir i followed ur code from starting but when I click on categories on home page it doesn't redirect me to categorize.page
hi sir i am practicing with this videos sir it was very much helpful to me. sir after send_message() function at contact page data will displays like unknow. why sir.
nice tuitorial sir ... Many many tnxx sir ...
You are most welcome
Sir,thank you...sir plz make a video on drop-down dependancy category of product...
Sir I have question how to create drop-down of Category(parentid), subcategories, product, subproducts...
Below mentioned error appears whenever i click on send message button
""jquery is not defined at send_message (main.js:450) at HTMLButtonElement.onclick (contact.php:163)""
and at line 450 of main.js i have defined below mentioned code
""jquery.ajax({ url:'send_message.php', type:'post', data:'name='+name+'&email='+email+'&mobile='+mobile+'&message='+message, success:function(result){ alert(result); } });""
hello sir ,
please reply here.
sir your front end theme link no working .
please sent me new front end link .
please sir give me front end theme link
hello sir thank you so much for such a nice video tutorials , .... meine source code run kiya & product images uplode ki par images view nai ho rahi website me . plz help me what can I do?
sir I am getting error in the array when I use prx($get_product); in product.php then i get on the screen
Array
(
)
plz help me sir
Print your sql query, you will get the answer
@@ProgrammingwithVishal thank you so much sir ....sir aap kamal ke teacher ho aisa teacher pure youtube per ni hai jo itne jaldi problem solve kr de
Thanks a lot
Thank you so much sir
Most welcome
Hello vishal sir, I have found "object not found error" so please help me getting out of this error. So that I can see my product images
Sir Front end sa new arrivals ka product hide nahi ho reha hai jab ki mea admin panel sa manage product mea ja k product ko deactive kar de reha hu to wha mujeha wo product deactive dikeha reha hai aur database mea v status 0 show kar reha hai... please help
Sir mujhe shipping charge add karna h uska video bhi aap banaiye.
Thanks you Vishal !
Welcome
@@ProgrammingwithVishal sir , i have some problem about js, no response when i click the button....
Check your Console
This is really good,
Thanks
Can u make a course project in English please ?
sir ji hamara frontend pr image upload nhi ho rha h or product bhi upload kr rha hu wo bhi nhi ho rha h please sir support krdo thoda
Once again thank you for these great videos. I have a question. Let's say I have more than 30 categories but I want to show only 5 categories out of 30 at nav bar and in a different page all the categories. With your guide I can do the last part, but how to show only 5 categories, if you can guide me.
Use limit in sql query. Like select * from categories limit 5
@@ProgrammingwithVishal Thank you very much..
It's working.. thank you..
Can u change with flipkart theme
PRODUCT_IMAGE_SITE_PATH
Pls what did you use to replace this in line 81, I did not work as it worked in Part 1
sir if i upload multiple images with multiple input fields how can i update ony one images excluding all images images
Very nice super video 👌👌
Thanks
Sir Front end sa New Arrivals ka image hide nahi ho reha hai jab main manage product mea ja k product ko Deactivate kar reha hu please help
Hello sir I got stuck in front-end in cart .php page remove button is not working
Please help me .
Sir product images konse websites se download ki?? Plz reply?
Notice: Undefined Offset: 0 In F:\Xampp\Htdocs\PhpeComPart2\Product.Php On Line 33
Notice: Undefined Offset: 0 In F:\Xampp\Htdocs\PhpeComPart2\Product.Php On Line 35
sir please help me i got this error in part 2
Isme button click hone par contact_us main nahi aa raha hai 1:06:15 minute par aapne jo code likha hai vahi Maine likha hai lekin phir bhi nahi aa raha hai
Sir i can't download the source code and template ..plz help me😥
hello i have problem to receive the picture from admin panel to the website
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, bool given in C:\xampp\htdocs\php\ecom\functions.inc.php on line 23
please help me regarding my error
awesome sir
wow sir very nice tutorial but I want to know sir if I want to add RMA how can we do this??
hello vishal sir,
i went through the tutorail and while showing data in the frontend (showing categories) my get_product functions is not showing any array data in the frontend.
i m getting an error like this:
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\phpeCom\functions.inc.php on line 23
function:
function get_product($con,$type='',$limit=''){
$sql = "SELECT * FROM product";
if($type == 'latest'){
$sql.="Order by id desc";
}
if($limit!=''){
$sql.="limit $limit";
}
$res = mysqli_query($con,$sql);
$data = array();
while($row=mysqli_fetch_assoc($res)) {
$data[]=$row;
}
return $data;
}
help me in this sir.
Hi Gaurav dubey have you been able to solve this?
The Categories are not being shown in Front End and Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\ananya\functions.inc.php on line 46
Line 46:
//echo $sql;
$res=mysqli_query($con,$sql);
$data=array();
while($row=mysqli_fetch_assoc($res)){
$data[]=$row;
}
return $data;
Please Help
Print your $sql query and run the query in phpmyadmin and you will get the error answers
@@ProgrammingwithVishal How to do that sir..?? I am a beginner to PHP.
Thankyou sir
hello sir i m beginner in php.i saw ur vedio to learn php.in second part of this series , i donot under stand $get_product(0)(categories) is it two dimension array
Sir product me star kese add kr sakte h p BTao na
Images are not getting displayed on mobile screen 😢
sir, there is an error in my products loop .All the products in my page are repeated 4 times .I tried alot to solve this .
Awesome content
Sir jo apki zip file hai iss project ki usko kaise execute krna hak uspar vedio banaiye
Sir image show nahi ho raha hai
admin page & front page dono me
Thanks bro
51:46 ap ny pichli video ma b btaya rha k edit k waqt image choose na kro to pehly wali rehti ha but ap ko b error dikhaya os ny k choose file hala'k ap ny pehly sy choose ki hoii thi kindly ye error thk krwa dyn ..
Vishal sir, im having an issue, could you please help me out?
My alignment of the top and index page is not working properly, I've tried it many times
Please share your PC access to my id phpvishal@gmail.com
Sir plz make video on this theme
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'desclimit 4' at line 1 in C:\xampp\htdocs\corephp\functions.php:22 Stack trace: #0 C:\xampp\htdocs\corephp\functions.php(22): mysqli_query(Object(mysqli), 'select * from p...') #1 C:\xampp\htdocs\corephp\index.php(75): get_product(Object(mysqli), 'latest', 4) #2 {main} thrown in C:\xampp\htdocs\corephp\functions.php on line 22
sir this error show me please help
Sir query string ko change na kre us value k sath single quote ya double quote dal kr run kre
Your front end theme template link not working
Sir please make videos on php oops concept and also make a videos of website with oops
Sir you are awesome, i learned a lot with you thanks a lot, I wish you could speak english in all your tutorials, or a least traslate it, cause' I from a latin country. Anymays, my respect
Thanks and Most welcome
Awosem sir
Thanks Abhishek
Sir Frontend me categories ka page load nahi hora ,
kisi bhi categorei par click karne ke baad home page par redirect hora hai sir , please help me
Sir images show nahi kr rahe hai web page mai... Kya karu ab
Sir mujhe front page pe category vice data show karna jis category ka show karana chahta hoon.
Awosome videos bro. I am waiting wp_post and wp_term I means WordPress complite databases video. Kyo ki wp ke database ki complite video RUclips par hai hi nhi. Aap pahle hoge bro
Will do shortly.
Hello sir these videos are really helpful to learn ..sir how to display all crecategory with subcategory responsive drop-down at left side of new arrival...
Thanks
Please check ruclips.net/video/cjYhk4wOOOk/видео.html
Tq sir...I have seen tutorials .. truley easily u explained.
sir can you please explain you use this
Here ['0'] means the 0 index of array. In both the code we get different type of array.
Hi Vishal, Nice tutorial videos. You have really taken hard work to create such detailed tutorial videos. I am trying to download the theme template and source code, but its asking username and password. It will be very helpful for me if you help me in downloading the same.
Thanks Ajay and my bad.
Actually I was trying for something and forgot to remove that password popup. Please try now
@@ProgrammingwithVishal now its download. Thank you Vishal for instant reply. I will definetly share your channel to my college bsc it students.
Thanks a lot
@@ProgrammingwithVishal Vishal, i like to create single ticketing system for different departments with customized tickets. under your guidance. Please try to create video for the same as per your convenience.
Bro , please help me theme download nhi ho rhi
Index file is empty in source code. Why so? Also where is the theme?
2:43 i can't find this theme... please someone send me link
when i'm clicking on any product it showing this error
Notice: Undefined Offset: 0 In C:\Xampp\Htdocs\Php\Ecom\Product.Php On Line 17
Notice: Trying To Access Array Offset On Value Of Type Null In C:\Xampp\Htdocs\Php\Ecom\Product.Php On Line 17
sent me your product.php file at phpvishal@gmail.com
thank you so much sir for share these your knowledge...sir mujhe categories navigation ki jagah drop down me fetch krni ho to ??..
Welcome Krupali
Create bootstrap dropdown here
Programming with Vishal Thank you sir🙏🏻
Sir me admin LTE use karta hu Sahi hai kya
sir product image is not displaying in index page.....plse help
I appreciate your great work sir, but please help me. I have errors in Notice: Undefined index: id in C:\xampp\htdocs\frontend\categories.php on line 3.
Also I have
অসাধারন