Categories
Ecommerce

Login Cart Persistence – Django Wednesdays ECommerce 28 [Video]

Login Cart Persistence – Django Wednesdays ECommerce 28

In this video we’ll finish building out our shopping cart persistence for our Ecommerce app with Django and Python.

In the last video we saved our cart to the database when a user is logged in.

In this video we’ll retrieve the cart and re-add it to the cart session when the user logs back in.

#django #codemy #JohnElder

Timecodes

0:00​​ – Introduction
1:50 – On Login Get User Profile
3:08 – Retrieve Saved Cart
3:46 – String To Dictionary JSON
5:23 – Import Cart
7:05 – Loop Dict to Session
8:35 – Create Cart.db_add
12:10 – Update Delete Function
13:56 – Change Update Function
15:05 – Conclusion

Watch/Read More