Ecommerce App With React Hooks & Firebase #9 Cart Price & Quantity

Published: 01 January 1970
on channel: JS Solutions
2,052
25

Hi all in this video we will calculate and display our cart overall quantity and price. We can do this by separating these properties values in a new array from our cartProducts which is an array of objects. After separating these values we can use reduce method to calculate the sum of these values.

Note: I made a change in my project, now we will display the no of documents in firestore at the top of cart icon as an indicator which is different from overall quantity of cart.

Course Files: https://github.com/HamzaAnwar1998/eco...
(Switch to lesson_9 for this video code)


Watch video Ecommerce App With React Hooks & Firebase #9 Cart Price & Quantity online, duration hours minute second in high quality that is uploaded to the channel JS Solutions 01 January 1970. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,052 times and liked it 25 visitors.