You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
700 B
17 lines
700 B
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = 'shop'
|
|
|
|
urlpatterns = [
|
|
path('', views.product_list, name='product_list'),
|
|
|
|
# Cart URLs
|
|
path('cart/', views.view_cart, name='view_cart'),
|
|
path('cart/add/<int:product_id>/', views.add_to_cart_view, name='add_to_cart'),
|
|
path('cart/update/<int:product_id>/', views.update_cart_view, name='update_cart'),
|
|
path('cart/remove/<int:product_id>/', views.remove_from_cart_view, name='remove_from_cart'),
|
|
path('clear-cart/', views.clear_cart, name='clear_cart'),
|
|
path('checkout/', views.checkout, name='checkout'),
|
|
path('order/<int:order_id>/confirmation/', views.order_confirmation, name='order_confirmation'),
|
|
]
|
|
|