Clear Shopping Cart Model - Django Wednesdays ECommerce 42

Опубликовано: 13 Октябрь 2024
на канале: Codemy.com
1,674
75

In this video we'll clear our shopping cart model on checkout.

A few videos ago we cleared the shopping cart cookies when a user checks out, but we didn't clear the model for logged in users when they check out.

We'll knock that out in this video...

#django #codemy #JohnElder

Timecodes

0:00​​ - Introduction
2:00 - View Overview
2:55 - Get Current User
3:47 - Import Profile Model
4:15 - Delete Old Cart in DB
5:02 - Test It Out
5:43 - Conclusion