diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-20 20:28:09 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-20 20:28:09 +0100 |
commit | e063a30a06caef9e4cda7afb5ef175b1c04b5e96 (patch) | |
tree | 2f37118c780144df0b089f82d33f003a7df191be /alphabetlearning/payments/urls.py | |
parent | a5942c7f240686146c243e22d849db97d0a904b9 (diff) |
Can now delete item from basket
- if is only one item left, it is deleted along with the basket
- if there are more than one, just that one is deleted
- TODO needs proper handling of the confirmation page - it's not
formatted. htmx?
Diffstat (limited to 'alphabetlearning/payments/urls.py')
-rw-r--r-- | alphabetlearning/payments/urls.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/alphabetlearning/payments/urls.py b/alphabetlearning/payments/urls.py index d5b0dd5..9bedaf7 100644 --- a/alphabetlearning/payments/urls.py +++ b/alphabetlearning/payments/urls.py @@ -18,5 +18,6 @@ urlpatterns = [ ), path("add-to-basket/<int:resource_id>", views.add_to_cart, name="add_to_basket"), path("landing/", views.ProductLandingPageView.as_view(), name="landing"), + path("delete-cart-item/<int:pk>", views. DeleteCartItem.as_view(), name="delete_cart_item"), path("webhooks/stripe/", views.stripe_webhook, name="stripe-webhook"), ] |