Build even more comprehensive, modern applications such as an AI-Powered Movie App and an NFT Marketplace application. Become a professional developer today - www.jsmastery.pro 🔥
@yoonseok12232 жыл бұрын
Hey can you please do an updated version of this tutorial?
@wisdomelue2 жыл бұрын
please where did useStyles() come from???
@ririyan59602 жыл бұрын
Hiii, how can i make the shipping cost also added to the total shopping?
@chukwuchinedu98442 жыл бұрын
Bro, you have been always awesome, throughout your endeavor from the videos with which you give out here, more grace to your elbow bro. wishing you more success.
@hiucd_20122 жыл бұрын
i have some bug when using add to cart feature, it log undefined instead of listing item of cart. I strictly follow the video but i do not understand why it does not work
@braulioandre29183 жыл бұрын
This guy is literally the only person I've seen on KZbin do this fully developed apps for free, others just do basic stuff and put the most complex ones for sale. I really appreciate what you do for the community, you're one in a million.
@juansesalmar2 жыл бұрын
I think the same way, this guy is helping a lot of people to engage with the Web development. Thank you!
@bombardmusic2 жыл бұрын
I also highly recommend Sonny Sangha on KZbin! I learned a lot from both of them!
@Sree_ShortsYT2 жыл бұрын
@@bombardmusic ,,,
@AliBayram-b1x3 ай бұрын
shut up
@mihai-alexandrubujor98264 жыл бұрын
The fact that you show how to build all these amazing projects for free is just amazing. As a high school student, I don't afford to buy courses on the topic. Keep doing what you do, you are great!
@javascriptmastery4 жыл бұрын
Enjoy! 😊
@LongBoy.03 жыл бұрын
Never buy courses on this stuff unless it's like $10 on Udemy. Most of this type of content is out there, just gotta look.
@krauser_bowser58732 жыл бұрын
@@LongBoy.0 Yeah i did a boot camp on udemy for $25. its all there man
@jedidiahehimah26742 жыл бұрын
@@Felix-dh9tl he'll need more context to solve this
@Felix-dh9tl2 жыл бұрын
@@jedidiahehimah2674 no he doesnt, it was because material ui was updated and i had to copy his json dependencies
@pratikkumar9393 жыл бұрын
Cant believe this is free content. God bless you
@javascriptmastery3 жыл бұрын
Thank you!
@pratikkumar9393 жыл бұрын
@Supreme Fate yeah clearly you dont
@kartikayjoshi31233 жыл бұрын
@@javascriptmastery hi as i am viewing your video your video is great for beginner like me so i have a query how to add other currency sign other than dollar please tell
@ecommerce39733 жыл бұрын
Paying for any advice is a scam... Everything is well known to the pros and watching enough videos gives you pieces of each part. Only Scam Artists are trying to "Mentor" you.
@kartikayjoshi31233 жыл бұрын
@@pratikkumar939 hi i tried it still not happening
@R221-e7t2 жыл бұрын
For anyone stuck on getting your actual products to display, Commercejs updated their image link. In Feb 22, Product.jsx should have image={product.image.url} instead of what's in the tutorial. Hope that helps anyone! Awesome tutorial btw, thank you!
@R221-e7t2 жыл бұрын
This happens again during the Cart Layout. CartItem.jsx should have image={item.image.url}, not image={item.media.source}.
@sb80912 жыл бұрын
@@R221-e7t I LOVE YOU!!!! YOU SAVED MY LIFE. SPENT LIKE 3 HRS TRYING TO DEBUG UNTIL I SAW THIS COMMENT. Hope you get some good Karma for the rest of the day!!!! Thank you!!!!
@R221-e7t2 жыл бұрын
@@sb8091 Haha you're welcome! I was in the same boat, it was rough
@KazMaz182 жыл бұрын
thank you
@Enthe0genic2 жыл бұрын
Thanks for your helps❤
@adam-user Жыл бұрын
This was THE best tutorial for React I have seen so far, and it's 2023 already. Not too fast, not too slow, straight to the point, with very clear explanations for every step. Thanks man!
@beenyshsaeed45593 жыл бұрын
I am really in awe at the amount of time you have spent explaining it so thoroughly, coming to a beginner's level. Appreciate your effort. Grateful that a teacher like you exists.
@beenyshsaeed45592 жыл бұрын
@@M.A.Kabir.K What do you need help with? Email me
@alishmadhukar21772 жыл бұрын
1:21:27 switch is not supported anymore. Do the following instead: 1) Replace Switch with Routes: import { BrowserRouter as Router, Routes , Route } from 'react-router-dom'; 2)
@yotsukime2 жыл бұрын
you are a God sir! thank you 🙌🏾
@sumanthdevadiga94062 жыл бұрын
or you can instead " npm uninstall react-router-dom " and then " npm i react-router-dom@5.2.0 " in your terminal ,
@Diaba_dos_compiuter2 жыл бұрын
@@sumanthdevadiga9406 Thank you very much, this was the only solution that worked
@padmalayajena35932 жыл бұрын
@@Diaba_dos_compiuter hi there, any idea why am i facing this err "Error: Expired API Key provided: sk_test_*********************************************************************************************DRjSiY " instead of showing the confirmation msg?
@rogelioperezmena34602 жыл бұрын
@@sumanthdevadiga9406 thanks u are god
@satsu02 жыл бұрын
For those having problem with "undefined" when creating Add to Cart here's a solution: const hanleAddToCart = async (productId, quantity) => { setCart(await commece.cart.add(productId, quantity)); }
@LarsWu2 жыл бұрын
It worked, thanks!
@codersclub45262 жыл бұрын
Thanx man
@yeshwanthkannegundla266 Жыл бұрын
@Lucas Satsu hey iam adding items commerce js but it was reflecting in console do u have any idea i jst want to connect you.
@akifshah1576 Жыл бұрын
Thanks so much!!!!!!You have no idea how much I was struggling with this. I was almost planning on quitting. Really Appreciate it.
@kipchumbarodgers7464 Жыл бұрын
today... you are my hero
@jmg52193 жыл бұрын
Thank you for the tutorial, this was excellent! Just wanted to help out those of you that may be facing the HTTP 422, invalid data error after you enter the test credit card number. Reference 3:09:00 in the video and follow the steps to add Stripe as your payment gateway. Remember to use the sandbox/test keys. Once you add Stripe in addition to your test gateway under Settings>Payment Gateways, retry the checkout process. You will now see orders going through, and the Thank you for your purchase... being rendered. I did search through all the comments and found several had come across this error. One approach even took the entire code from the repo and changed keys and still faced the error. This led me to the conclusion that this error is not code based but dashboard based (Chec/Stripe). Therefore, if you are facing HTTP 422 errors, verify your Chec/Stripe dashboard setup! Hope this helps!
@debajyotipila9823 жыл бұрын
I rechecked the keys but still getting data invalid error😢.. Do you think anything else is the problem? Thank you 😊
@YogeshKumar-cu7li3 жыл бұрын
@@debajyotipila982 hey i am also facing the same problem... do u got any solution for that?
@Old_SDC2 жыл бұрын
I did this, it worked but I’m getting memory leak issues on the “setShippingOptions” section of code
@patrik34032 жыл бұрын
For anyone still struggling - The problem is in creating the product in commerce js itself. When you create a new product, you of course name it, price it, maybe upload an image, but below that are some options (Require shipping address, require billing address, require full name). If you uncheck "require billing address" the code is gonna work just fine. Hope it helps :)
@thinkfast91102 жыл бұрын
@@patrik3403 tried to do that but when adding shipping details to the products it automatically checks the "Require shipping address", and it cant be unchecked. Any ideea on how to make it work?
@lemun_ad3 жыл бұрын
I just got a freelance job about making an e-commerce website and holy cow you are a life saver ! Thank you so damn much for putting this here for free !!
@relaxationandpositivevibes83623 жыл бұрын
hi , where can i get such jobs
@javascriptmastery2 жыл бұрын
Hi there, I love your comment so much. I want to use your comment as a testimonial for my upcoming course platform, is that all right with you? :)
@zendr03 жыл бұрын
"They give us this nice setup guide but we are not gonna use that, cause I m gonna teach you everything"....😊Respect+++
@krzysztofabram48833 жыл бұрын
I was at Web development bootcamp for more or less 4 000 $ some time ago. The whole course knowledge is used in this tutorial
@javascriptmastery3 жыл бұрын
Woah.. That's interesting to hear.
@lo9arithm3 жыл бұрын
Seriously, where have you been ?!!! The number one KZbin video in 2020/2021 no kidding. Thank you!
@hamzahmd_3 жыл бұрын
First of all, that's the best e-commerce tutorial, totally free and highly updated with advanced tech skills. Secondly, this guy has taught so fantastically that even a novice can build his own store easily.
@javascriptmastery3 жыл бұрын
Wow, thanks!
@thatoneguy72183 жыл бұрын
This is the best stripe/react tutorial I have come across. He could easily break this up into a course and charge for it.
@javascriptmastery3 жыл бұрын
Appreciate it Jacob!
@gauravshinde87672 жыл бұрын
You are a legend man. This was my first experience of creating a web application and you made it so comfortable. Extra thanks for explaining things while coding, you are clearly an awesome teacher.
@reyalvarez16174 жыл бұрын
We would really appreciate it if you made part 3 of the MERN app. You do have a lot of your followers liking your videos. Thanks, I'm learning so much.
@javascriptmastery4 жыл бұрын
I'm planning on doing so!
@reyalvarez16174 жыл бұрын
@@javascriptmastery Thanks!
@jerryl.72864 жыл бұрын
Ha, I do like your spirit to say it loud! Alternatively, you can have this kzbin.info/www/bejne/pGLQlXSGe9ZlhdU as another option! Hope it would help.
@ericcapiz65163 жыл бұрын
for those that have issues with payment options when going from on country and then US, i deleted the domestic shipping info that was done by default and recreated it myself. I also added a domestic shipping fee as well and once i saved and refreshed the app, it works.
@TheEsokoletsky3 жыл бұрын
I was just stuck on that and it works, thanks! How did you figure that out? lol
@ericcapiz65163 жыл бұрын
@@TheEsokoletsky I digged down waaaaaaayyyy deep in the comments and saw someone else mention it.. so I tried it myself and it worked and then posted the same instructions so new users who go thru the tutorial can see it without searching deep into comments lol
@kashnigahbaruda3 жыл бұрын
The best React e-commerce tutorial on KZbin. Good tempo. No bullshit.
@javascriptmastery3 жыл бұрын
Thank you man!
@LongBoy.04 жыл бұрын
This is superior to some of the other e-commerce tutorials I’ve seen as this one has many of the same features including strip integration but at a more compact time-allotment and better design/aesthetics. Can’t wait to fully dive into this!
@javascriptmastery4 жыл бұрын
Thank you! This comment means a lot to me as this was exactly what I was trying to achieve. Do more in less time while still keeping all the functionality and good design.
@LongBoy.02 жыл бұрын
@@M.A.Kabir.K what is your issue
@tripl91113 жыл бұрын
Bruh, you deserve so much more sub. You're the best! I stop watching Traversy after I've discovered your channel.
@javascriptmastery3 жыл бұрын
Welcome aboard!
@duccdefgab3 жыл бұрын
your channel deserves a million subscribes, I've learned so much in just 1 video
@javascriptmastery3 жыл бұрын
Thank you!
@katesaychaleun63223 жыл бұрын
1:59:11 There have been a few updates with react-hook-form, so in case anyone else was having trouble making the form or seeing the labels, here's my code to fix it: } control={control} name={name} /> BEST WISHES
@PereJumbo3 жыл бұрын
I noticed it also, I fix it.
@katesaychaleun63223 жыл бұрын
@@PereJumbo by the way, have you gotten to the Payment Integration part yet? 😔 I've been stuck for a while now... so it would be appreciated if you could provide some tips
@PereJumbo3 жыл бұрын
@@katesaychaleun6322 Hey, I didn't use stripe for payment, I use a difference method, but I could help with it
@katesaychaleun63223 жыл бұрын
@@PereJumbo that would be great! Thank you so much :) How can I share my code with you? And may I ask what other method you were using?
@PereJumbo3 жыл бұрын
@@katesaychaleun6322 share the code with me on github www.github.com/jumbopere or chat me on Twitter twitter.com/jumbo_pere
@richardmarin25383 жыл бұрын
Boy, this is dense for sure. I didn't notice at first cos you talk in a very relaxed, soothing way, but there's actually a lot going on. Had to pause almost constantly to follow along, I'm guessing this would be about twice in length if it went like, "step, explain, step, explain" like other tutorials. I really like it, it's real demanding for sure. Thanks!
@WanderingNasi3 жыл бұрын
Update as of 4/26/2021: Controller now requires a render prop for react-hook-form. update your controller in the CustomTextField.jsx to: import React from "react"; import { TextField, Grid } from "@material-ui/core"; import { useFormContext, Controller } from "react-hook-form"; const FormInput = ({ name, label, required }) => { const { control } = useFormContext(); return ( ( )} /> ); }; export default FormInput;
@SUNYBOI3 жыл бұрын
Hey I have added my real account details to stripe and when I am putting my real card details and clicking pay.....it throws an error saying....your payment method requires further verification......how to fix this
@alishmadhukar21772 жыл бұрын
thanx.....that helped.....🙌🙏👍
@maatte70932 жыл бұрын
@@SUNYBOI did you find a fix ? pls
@rayahmed22023 жыл бұрын
Hey. Just in the midst of completing this project. I wanted to mention how nice it is you walked your audience through .env process. Even though I know how to do it now, I would have appreciated some of the other tutorials taking the extra few minutes like you did to have explained it. Would have saved me some headache. Great job so far I'm enjoying this. Thanks.
@EnamoradademiDios3 жыл бұрын
So in-depth, detailed and helpful! Thank you you've created an amazing resource
@Alex-hi2vy3 жыл бұрын
Man , you are a GOD. I'm really surprised about, how much knowledge you are sharing in this tutorial .Thank you very much !
@javascriptmastery3 жыл бұрын
Wow, thanks!
@tonywest91463 жыл бұрын
@@javascriptmastery PLEASE help me , I am getting error while connecting react to commerce.js "Invalid public key given to commerce.js ciient
@yogeshyewale4783 жыл бұрын
Even a single minute i didn't find it bore . such an amazing tutorial
@severinvitalie10494 жыл бұрын
Even if I do not plain to watch this tutorial very soon, came here to only drop a like and a comment for KZbin algorithms. Respect your work tho !
@javascriptmastery4 жыл бұрын
Thank you, appreciate it!
@raviraj-zm4zb3 жыл бұрын
Please continue this series. Add sign up and sign in features and different carts for different users. Thank you very much for the amazing contents u are creating. Respect++;
@lexicon8506 Жыл бұрын
@@M.A.Kabir.K Same here. i'm also having error installing dependencies
@emilysfam7297 Жыл бұрын
@@lexicon8506 try to write same command with --force at the end
@kanig52564 жыл бұрын
Appreciate this video. I was looking for the next project to add to my portfolio and this will help me diversify it and also apply advanced concepts and showcase those. Thanks man
@javascriptmastery4 жыл бұрын
Thanks!
@Dipstick673 жыл бұрын
First of all thank you so much for the video. I have a soloution to the 422 error, this is where some debugging works well. First thing is bring up the console, next see what the response is from the server. This will tell you whats its missing or needed. In my case i had to expand the orderData object, I needed to add a billing object in, this is easy just copy the shipping object and paste that in. Of course in a live application you can set a diffrent shipping page as another step if need be. The other issue i had was a spelling mistake on the subdivision, once again if you check what is being returned by the object by console.log(orderData) once you have added your data this will populate and give you the information you need!
@javascriptmastery3 жыл бұрын
Feel free to ask the Commerce.js team on Slack - chec-commercejs-community.herokuapp.com/
@VS2573 жыл бұрын
I did all this. i Checked with console.log(orderData). I added billing object in. Still doesnt work. It still gives me 422 Error.
@Dipstick673 жыл бұрын
@@VS257 you need to see what the 422 error is giving you
@VS2573 жыл бұрын
@@Dipstick67 I did. It says "Error: Requested quantity is not available." .... I checked my request object and the line_items object is obviously there. I dont know maybe Commerce.js is just not working
@Dipstick673 жыл бұрын
@@VS257 you have not set the quantity required in commerce js.
@asjadahmedkhan96613 жыл бұрын
Ohhh Man!!! This channel is revolutionary. Why didn't I find it earlier????
@salvadorcabello28913 жыл бұрын
For anyone having the new Controller version problem and still getting an error, you should change the controller as stated by other users before me: return ( } /> ); ...AND change the control state as a useForm (instead of useFormContext): const { control } = useForm(); That's how I solved it and I hope to have helped anyone else having the same issue.
@djeudy3 жыл бұрын
YOU SAVE MY LIFE BROOOOOOO!!!! THANK YOUUUU!!!!!!!!!!!!!!!
@gabrielcampos99483 жыл бұрын
Thanks!!
@pjguitar153 жыл бұрын
Thank you for using functional component and no the class one
@thembamodikwane58633 жыл бұрын
May God bless you and keep you. This is gold. Thank you so much for taking the time to do this. I can't tell you how much ive learnt from this video.
@TradersAnimosity2 жыл бұрын
Can't believe that this is a 3 hour course for free this is insane. Best in deph guide I have ever seen, because of people like you others don't need to struggle thanks man
@snippets10123 жыл бұрын
This is the best, I repeat best ever tutorial I have ever encountered, things are simple and easy to understand and , the way you approach complexity with subtleness is soothing to my mind 💖💖
@Shakeel7144 жыл бұрын
Thank you Adrian. In every minute of the video, there is something to learn new for newbie like me. Really appreciate your efforts and cool way of teaching.
@javascriptmastery4 жыл бұрын
Thank you!
@harshmalviya48313 жыл бұрын
But being a newbie even after completing the project, still I'm blank. It feels like a typing course for a newbie like me.
@talhabinkhalilmuhmmad41593 жыл бұрын
JS mastery ! You are a king of ReactJs
@javascriptmastery3 жыл бұрын
Thank you!
@sohailsaha74272 жыл бұрын
One of the simplest, to the point tutorials out there, that gets the job done! Thanks for this, and introducing me to Commerce.js.
@atulpatil22892 жыл бұрын
Hey Sohail bro, I have completed the project, Im starting it today, But bit skeptical as the video is year old, so it will cause many problems for beginner like me to install same packages, What you think I should do this project or not? please reply
@_maizon3 жыл бұрын
This tutorial is so enlighten, typically this tutorials are also bored for me but this one I could't stop seeing it man thanks for this
@jorgeduran18864 жыл бұрын
Hey man, I just see the demo and It looks so good - thanks for sharing this
@javascriptmastery4 жыл бұрын
Glad you like it Jorge!
@journey_to_1004 жыл бұрын
JSMastery Rocks, People Shocks!😎
@javascriptmastery4 жыл бұрын
Haha thanks! 😉
@mandihaase27443 жыл бұрын
What an amazing tutorial! I absolutely LOVED doing this project. Thank you so much for the amazing content and please keep making videos - you are a wonderful instructor!!
@noname896363 жыл бұрын
God bless you for this. You taught me concepts about coding and files that you don't even know.
@umarikanav13523 жыл бұрын
Simply you are amazing. I were struggling to create an online shop. It is best. Thank you for everything..
@AnthonyCandaele4 жыл бұрын
you can fix the issue with undefined cart at 1:13 like this: const isEmpty = !cart.line_items?.length; No need to remove that code.
@javascriptmastery4 жыл бұрын
You're right, I've thought of that, but there was no real need to even have a variable in this case.
@ithelp58933 жыл бұрын
Thank you very much for this comment.
@albertmunteanu90983 жыл бұрын
i still get the same error here on this line even if i type: const isEmpty = !cart.line_items?.length i get: Error: EmptyCart(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null. Can somebody offer me a solution for this error please ?
@EdwardElric-uf3rr3 жыл бұрын
@@erniejohnson7636 @AlbertMunteanu line 32 at 1:13:10 on line 32 you need to have if(!cart) return 'loading' and !cart.list_items.length needs to be in the ternary and when you pass it just make sure on app.jsx it is
@felixchen61093 жыл бұрын
@@EdwardElric-uf3rr I am having the same error, I check my if(!cart) and condition for rendering filledCart, yet it still giving me an error of nothing was returned from render
@nafiurannand79424 жыл бұрын
I will just say thanks for the youtube algorithm. You are doing a really great job.
@javascriptmastery4 жыл бұрын
I'm glad you've found me 🙌
@abdullahanis57614 жыл бұрын
Plss take this project to another level by integrating it to backend like Node js and Express js, this will be my first Ecommerce website..
@javascriptmastery4 жыл бұрын
There is another MERN Project on my KZbin
@PremKumar-uy4jd2 жыл бұрын
Thanks for explaining it so fully, without any major skips especially i liked the debugging part on how you did
@AbdulRehman-zi1vq2 жыл бұрын
OMG! Why I have wasted my so much time .........Dude! What a Tutorial! Wao 😊 My First Ever Tutorial I just have to watch it completely!!!!!!!!! Nice Explanation with Practical Work............ Keep it UP............DUDE
@javascriptmastery2 жыл бұрын
Thank you!!
@maatte70932 жыл бұрын
dude you just watched the tutorial and dont even tried, the tutorial doesn't work just check the common github error
@cuestafrancisco4 жыл бұрын
Hey Adrian I looked into what you suggested and was able to figure it out, the error at line 54 of the addressForm "props spreading is forbidden react/jsx-props-no-spreading" I replaced the spread with Awesome sauce!!!! thanks again!!!
@javascriptmastery3 жыл бұрын
Awesome!
@codingwithbasir4 жыл бұрын
great tutorial. I like your way of teaching. keep going, bro.
@javascriptmastery4 жыл бұрын
Thank you so much, appreciate it!
@CoolScratcher4 жыл бұрын
You're great at everything! Editing, Recording, Narration, Teaching, Design, EVERYTHING! Keep being awesome!! - A 12-year-old kid who is AMAZING at coding for his age but okay overall
@javascriptmastery4 жыл бұрын
Thank you! Keep learning and you're going to be great! 👌
@Drenwickification2 жыл бұрын
Thank you so much for your videos man. I was in a career I hated and so I decided to switch at 29 to become a coder. I just did a full-stack coding BootCamp and now I'm improving my skills on my own, and going through videos like this really helps me to understand react a lot more and helps with my portfolio a lot. You're amazing!
@Drenwickification2 жыл бұрын
@@M.A.Kabir.K it might help if you say what error you are getting
@AkaSmathy2 жыл бұрын
@@Drenwickification I have an error on the cart.total_item at 1:00:12 it say that it's undefined, can you help ?
@kvya10003 жыл бұрын
One of the best content maker of js ... By the way at 1:14:11 time we can use optional chaining and fix like const isEmpty = !cart.line_items?.length;
@javascriptmastery3 жыл бұрын
Yes, we can :)
@theonewheeler3 жыл бұрын
@@javascriptmastery wahoo this fixed it for me!!!! thank you @rahul Arora, can you explain why we put the ? in and what it does? thank you for any advice in advance
@raymondmasupha97573 жыл бұрын
I can start a software company buy just watching this guys videos😂😂
@djobverse21404 жыл бұрын
I want this channel to be my little secret.. But I also wish for him to grow so bad
@javascriptmastery3 жыл бұрын
Haha thank you!
@willfredphetole70523 жыл бұрын
😂 😂 6 months later I found the little secret and loving this
@ayushmukhopadhyay74703 жыл бұрын
I really like your work I have learned so much from your projects. A small request can you add Login and registration to your existing project and a bit of re-design to it ❤
@javascriptmastery3 жыл бұрын
Great idea! 👌🔥
@87wxdiaz2 жыл бұрын
its things like this that show humanity is not hopeless
@parthsharma51873 жыл бұрын
cant believe this content is totally free.. u r great man..
@caki_kate3 жыл бұрын
1:59:11 There have been a few updates to react-hook-form, so in case anyone else was having trouble making the form or seeing the labels, here's my code to fix it: } control={control} name={name} /> references to my solution: (I was going to paste the links to give more info, but KZbin isn't allowing me to :/) BEST WISHES
@vadapow3 жыл бұрын
Saved the day mate ❤
@joangavelan3 жыл бұрын
The props fullWidth and required must go in the TextField component in order to work, not in the controller anymore
@1bbarritt3 жыл бұрын
Alternatively, can uninstall react-hook-form and install V6
@caki_kate3 жыл бұрын
@@joangavelan Thank you for that, I will update the code above right away :)
@caki_kate3 жыл бұрын
@@1bbarritt V6 seems new to me, would you recommend using it over react-hook-form?
@shyattoun69632 жыл бұрын
anybody encountering errors around 02:48:00 with "line_items" on REVIEW component just make sure you delete "live" before line_items and subtotal,that worked for me.
@lostsoul69872 жыл бұрын
Still getting error here though
@shyattoun69632 жыл бұрын
@@lostsoul6987 make sure you use sandbox api. In what stage the app crashes?
@Felix-dh9tl2 жыл бұрын
Hi it seems that the old code works without errors: const handleRemoveFromCart = async (productId) => { const item = await commerce.cart.remove(productId); setCart(item); }; but when he changed code to this, the app crashes when you add product to cart or remove them etc... weird... same goes with handleAddToCart, handleUpdateCartQty etc. const handleRemoveFromCart = async (productId) => { const { cart } = await commerce.cart.remove(productId); setCart(cart); };
@cosmicechoes422 жыл бұрын
FUCK I DID IT!!!!!! THANK YOU SO MUCH!! THANK YOU SO MUHCC
@cosmicechoes422 жыл бұрын
@@Felix-dh9tl I found the solution here :)
@jahangirakbar45244 жыл бұрын
Exactly the video I needed. Thank you for Uploading. Love from Pakistan 😍🇵🇰 Subscribed
@javascriptmastery4 жыл бұрын
Glad you like it! 😊
@rahadulhaq63873 жыл бұрын
I love ur very first two words ............" Hello Everyone " May ALLAH bless you and keep you safe
@NERO-ez1mn3 жыл бұрын
this 1 is the BEST of all the content from dream to WEB. make more please like a social media
@javascriptmastery3 жыл бұрын
Thank you!
@jengkhaw154 жыл бұрын
This is amazing! Love your quality content!
@javascriptmastery4 жыл бұрын
Thank you!
@eduard77463 жыл бұрын
Amazing ... I'm speechless with this great content.
@javascriptmastery3 жыл бұрын
Thank you so much! 👌
@dannyman22003 жыл бұрын
if this dude took a little more time with explaining things, then this channel would be EPIC!, still good though
@javascriptmastery3 жыл бұрын
Thanks for the feedback Danny!
@ingyukoh2 жыл бұрын
Great lecture showing how to debug (2hr 14mins) through chrome debug tools. I learn a lot. Thanks.
@lathryx2 жыл бұрын
Not sure if this really matters, but I'm just gonna say that the phrase "how does it look like" is a little off. It would be more colloquial to say "what it looks like" or even "how it looks". Again, not that big of a deal, just thought I'd point it out! :) Great video, by the way! This was very helpful for me learning how to use Stripe and Commerce.js! Thank you so much!!
@riyazm95183 жыл бұрын
Hey man. Fantastic tutorials. Awesome work to be honest. A true blessing for so many confused react devs out there. I'd just like to know two things: 1. Is there a way to include actual account information so past purchases are saved along with the payment transactions? 2. How secure is the app when it comes to saving personal data? What would you need to add to make it more secure if needed? For example, saving critical credit card info for subsequent purchases.
@karlguzman97753 жыл бұрын
Hi Adrian, Awesome content again. Thanks for all these project code-along! One thing I noticed, if the cart.line_items.length is not available yet when Cart.jsx gets rendered, the site will throw an error of 'cart.line_items.length' undefined. One fix I found is to change the const isEmpty logic to const isEmpty = !cart?.line_items.length
@karlguzman97753 жыл бұрын
Okay nevermind. Just saw the fix for that in the video :D spoke too soon lol
@theonewheeler3 жыл бұрын
this doesn't work for me, did you find any other fixes?
@kevin55234 жыл бұрын
why does no1 ever adds testing in these type of videos. Would be so useful.
@mohammadyunus21563 жыл бұрын
do you QA testing?
@kevin55233 жыл бұрын
@@mohammadyunus2156 No I just want to learn how to test react components using integration tests
@orlandog19793 жыл бұрын
@@kevin5523 search it bro.
@kevin55233 жыл бұрын
@@orlandog1979 I searched, but I want to see real world examples in real projects, and those are really hard to find.
@orlandog19793 жыл бұрын
@@kevin5523 Yes but I think that the tools that you have. You can build it...I'm a jr dev and I'm learning. I made my portfolio using React js with Firebase and CSS. And I'm making my projects with these tools that I can get in these tutorials...
@sammbende23 жыл бұрын
I usually get off with long videos. Yours got me hooked from the start till the end. Awesome.
@collinstanki82313 жыл бұрын
One of my best tutorials thanks so much. Love from Kenya 👍
@javascriptmastery3 жыл бұрын
You're so welcome!
@rosemwangi56352 жыл бұрын
For anyone struggling to display the shipping address form use this code in FormInput import { TextField, Grid } from "@material-ui/core"; import { useFormContext, Controller } from "react-hook-form"; const FormInput = ({ name, label, required }) => { const { control } = useFormContext(); return ( } /> ); }; export default FormInput;
@MaxProgramming4 жыл бұрын
Ecommerce! Wow. So excited! A question, why were you importing React from 'react'? we now have JSX transform by which we don't need to import it in React 17
@javascriptmastery4 жыл бұрын
It's just a matter of habit, thanks for mentioning! 😊
@eternalcalm80804 жыл бұрын
You bring so much value content like this, I am learning so much from you!
@javascriptmastery4 жыл бұрын
I'm glad you're learnin! 😊
@muhammadshoaib57553 жыл бұрын
Very appealing and highly recommended tutorial .thankyou for such content , i have a question how can we add search module into this so that incase of multiple products we can search and sort them ??
@johndoe-cq3de4 жыл бұрын
Awesome content.. But one drawback for those who don't provide credit card details for stripe is that though they mock the payment by showing spinner the items in the cart would still remain the same without being removed.. The solution is to just use the same commerce function for emptying the cart after clicking the payment button.
@javascriptmastery4 жыл бұрын
Thanks for the solution!
@johndoe-cq3de3 жыл бұрын
@@javascriptmastery ❤️ I have used redux instead of prop drilling.. I know its a bit more code but I thought it would be a good practice
@javascriptmastery3 жыл бұрын
That's great, feel free to share the repo :)
@johndoe-cq3de3 жыл бұрын
@@javascriptmasterygithub.com/suseendharlal96/react-commerce Also after filling the address form and proceeding to payment and if u go back step, all the form data would not be lost, I have handled that scenario as well :)
@dennyage47913 жыл бұрын
Wow! This is amazing I would like to recommend to everyone who has started learning react !!
@SUNYBOI3 жыл бұрын
I have used live APIs and not the sandbox but while making payment it shows that the payment method requires further verification, how to fix this
@SUNYBOI3 жыл бұрын
I am using my real card details
@andrewcarrigan22053 жыл бұрын
when implementing stripe card elements with commerce onSubmit i keep getting back 422 error the given data was invalid, using a stripe test card number wondering if anyone may have any insight
@joshuaicenogle12833 жыл бұрын
I got the same thing and it was because it expected a billing address so what fixed it for me was going into my product settings and unchecking the "Require billing address".
@Praveenkumar-sj8pe3 жыл бұрын
@@joshuaicenogle1283 could explain a bit detail
@aogunnaike4 жыл бұрын
How if I want to add an admin panel? How do I go about it with this structure
@TheCodingOdyssey4 жыл бұрын
Who else loveees this channel! Hands up!
@javascriptmastery4 жыл бұрын
Hehe 🙌
@leandroteixeira28683 жыл бұрын
Thank you for this man!! i was building an ecommerce website with full stack development but i missed i few keys to properly do that, so this video helped me alottttttttttt, once again, Thank You!
@Ahmaddev_web34 жыл бұрын
I really Like this Project is my dream work. just to give you a hint i click the star button in github. But please can you add a search button. with some other additional improvements? Thanks
@javascriptmastery4 жыл бұрын
Great idea!
@Ahmaddev_web33 жыл бұрын
@JavaScript Mastery I notice that when you reach payment method, the shipping price has not been added together with total amount of money to be paid kin the button click. Pls can you check that? thanks
@TikTokProductionsaurav3 жыл бұрын
Can i use this project to edit and sell to the client
@javascriptmastery3 жыл бұрын
Sure :)
@somsubhra974 жыл бұрын
Bro, you are the next Brad Traversy on KZbin. Love from India !!! Absolutely loved this video, thanx a ton !!! Please create a video on Vue 3 with its major feautures.
@javascriptmastery4 жыл бұрын
Thank you, means a lot! 😊
@natures-e9m3 жыл бұрын
Thank you for such a detailed video. I am starting this project today and I am excited to finish it
@danlitofficial46323 жыл бұрын
Please help! i am getting an error at checkout/pay saying "The given data was invalid" even though i've properly entered required billing information. I really need help, considering this will help with my business.
@javascriptmastery3 жыл бұрын
Commerce.js team has an amazin Slack channel where they help with bugs: chec-commercejs-community.herokuapp.com/
@seanknowles53094 жыл бұрын
Why react? most would use Nextjs for the SEO benefits. Nextjs would have been a much better fit for E-commerce.
@diogoluis61794 жыл бұрын
Next is the perfect framework for ecommerce
@javascriptmastery4 жыл бұрын
I agree! Commerce.js have full working NextJS store example on their website, for that reason I chose to do just React. I might do a NextJS Web Shop in the future! 😊
@aymofficial4 жыл бұрын
I believe this is not different with nextJs... I'm also planning to use this inside next - did you try and have errors?
@diogoluis61794 жыл бұрын
@@javascriptmastery That would be so cool, I'm currently building a ecommerce with next and graphql and id like to see other people approach. Even if built with rest architecture.
@diogoluis61794 жыл бұрын
@@aymofficial next works as a multi page framework, so it doesn't use react router but a built in next router. Also the way you fetch data is different, you can choose between getting an fetch api call on page loading (server side rendering) or getting an api call on build time (static site generation). The cool stuff on nextjs is that you can mix the best of both worlds. Ecommerce should be as static as possible, and have server side rendering for user custom area. Also it has built in image optimization, automatic code splitting and a very intuitive way of organizing the web app pages.
@Aborichinal3 жыл бұрын
Everything is working fine for me until i switch the country. I get an error with the fetchShippingOptions(options) polrtion of the address form...need help
@iLoveToLearn247 Жыл бұрын
Thank you Adrian. This is a great tutorial. Very comprehensive
@codeclover31673 жыл бұрын
Finally youtube recommended a gem
@md.sayeedrahman25533 жыл бұрын
is commerce js pagination possible. like how many product will be displayed per screen. i see this feature is not available currently. any alternative. can i do it with axios
@TrendSpree13 жыл бұрын
i'm getting "TypeError: Cannot read property 'map' of undefined" when compiling after removing mockup products and testing, can you help ??
@casiimir3 жыл бұрын
Check that the product list is filled, this error tell us that it's empty. Place a debugger or a console log (actually I'm trying to find this error...)
@mattoattacko3 жыл бұрын
I have the exact same problem, but with 'name'.
@vojtechkrupa84493 жыл бұрын
@@mattoattacko same, Did you figure out how to fix it?
@contenidoeningles643 жыл бұрын
look at 'index.js' if you imported correctly the Cart component *from "./Cart/Cart"*