adityaS011 / ecommerce-clone

Flipkart clone built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. The application replicates some of the core features of the popular e-commerce platform Flipkart.
https://mern-clone-flipkart-p2p.netlify.app
MIT License
15 stars 13 forks source link

fix: cart update #27

Closed Shubhamm33 closed 1 year ago

Shubhamm33 commented 1 year ago

Fix: cart updating changes: product was added in cart, but the price was not reflecting on price section, also when did a page reload, quantity was turning to 1 again https://github.com/adityaS011/ecommerce-clone/assets/38568811/a49362c8-9299-40d3-b217-82e7ffbc6063

Fix: console error in cart page changes: fixed the console error popping on cart page fk-cartissue

netlify[bot] commented 1 year ago

Deploy Preview for mern-clone-flipkart-p2p ready!

Name Link
Latest commit 380fb50567d2924da147d02fa3708209b9505cc1
Latest deploy log https://app.netlify.com/sites/mern-clone-flipkart-p2p/deploys/652ec0ccae659800084fd646
Deploy Preview https://deploy-preview-27--mern-clone-flipkart-p2p.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Shubhamm33 commented 1 year ago

Once user is logged in, on refresh it didnt save the state, using localStorage to store the logged in user Future Work: storing user names in localStorage is not efficient way, you need to use authorization token and set it as cookies and use cookies to validate user, for time being while we connect stripe payment, keeping it this way https://github.com/adityaS011/ecommerce-clone/assets/38568811/2ef462d0-b9b9-4a5d-b412-7c0a5614cd66