Can you tell me the product which is being added to the cart is being stored in redux toolkit but the problem is that it is getting removed on refreshing the page and if kept in local storage then the user can temper the price. What should I do?
can store the product and quantity on local storage, but during payment can double check the price of the product by using the price of product from db, could fetch the product again by id during price processing.
TypeError: (0 , _features_CartSlice__WEBPACK_IMPORTED_MODULE_6__.addToCart) is not a function Hello, I am getting this error when clicking on add to cart button
Very informative. Just wondering why I get a "TypeError: undefined is not an object (evaluating 'state.cartItems.findIndex')" yet i have properly cartItems on the initialState. Specific to react native.
Thank you for the vid! where did you define cartQuantity? I thought it would generate an undefined error when you call the state.cartItems[itemIndex].cartQuantity
Hello Charles please can you make a video on that your Ecommerce project where users can view each particular item.... for instance let's say I click on iPhone 12, I would want to navigate to a new page where all the details about the iPhone 12 would be displayed... Thanks
Thank you for this tutorial, I was not able to make the add to cart by myself, This video solved my all problems
Thank you so much. This is what I am looking for. You save my time brother. I have been strugling for hours today.
Thanks man, you showed me how to solve the problem that has been bugging my mind.
Excellent explanation brother. Keep it up🙂💚
Thank you this series keep getting better and better.👍👍👍
You're welcome 😊
how can i add axios post method in addToCart reducer. I tried but getting error 400 bad req.
Thanks bro for this video.. i love it.. it seems u didn't do the next video u talk abt at the ending i can't find it.. num12 .. where is it ?
what font is used in your vscode ?
Thank you! This has been very helpful
This isn’t working for me idk why
push do mutation in existing array so use of 'concat' would be good instead of push. Am i correct?
Thank you so much for this tutorials. i was searching for this type of tutorials on redux toolkit
You are welcome 💯
@@ChaooCharles sir looking for a tutorial on the react authentication with firebase. thank you
thanks man is a lots help to me. love from bangladesh
Hello Chaoo,
first thanks for your great content,
I have some question...how can I connect u directly
Thank You for this amazing content
Can you tell me the product which is being added to the cart is being stored in redux toolkit but the problem is that it is getting removed on refreshing the page and if kept in local storage then the user can temper the price. What should I do?
can store the product and quantity on local storage, but during payment can double check the price of the product by using the price of product from db, could fetch the product again by id during price processing.
Hey!! How do i store the cart details in the database?
Thanks a lot, you saved my cart!))
You're welcome
TypeError: (0 , _features_CartSlice__WEBPACK_IMPORTED_MODULE_6__.addToCart) is not a function Hello, I am getting this error when clicking on add to cart button
First time nimepatanana mtu wetu🤭😁 piga subscription mara that that🤭 niwega chalo😂
Asanti 😂😂
Very helpfull bro, thanks a lot, keep recording this high level material 👏👏👏
You're welcome 😊
Nice tutorial get my cart issue resolved thanks a lot🙃
That's good 👍
god bless you mate!
Very informative. Just wondering why I get a "TypeError: undefined is not an object (evaluating 'state.cartItems.findIndex')" yet i have properly cartItems on the initialState. Specific to react native.
Thank you for the vid! where did you define cartQuantity? I thought it would generate an undefined error when you call the state.cartItems[itemIndex].cartQuantity
so where did he define it ?
Thank u so much !
Hello Charles please can you make a video on that your Ecommerce project where users can view each particular item.... for instance let's say I click on iPhone 12, I would want to navigate to a new page where all the details about the iPhone 12 would be displayed... Thanks
imports ---
import { Link, useNavigate } from 'react-router-dom';
and then user tag around button like this
Anytext
ps: hope im not late :-)
If we refresh the page then will the data in cart still there in store?
You can use local storage for consistency. Check the rest of the videos I covered it.
The next video actually, episode 12
Hope I am not late, you can also use redux persist also know as the redux storage. Or you can use something like database or the json server
thank you very clear
Thank you
very nice and informative tutorial appretiate
You're welcome
yes broooooooooooooo!
I would have never guessed to use findIndex method