feat: improve customer address views
This commit is contained in:
+16
-3
@@ -6,10 +6,12 @@ from django.utils.text import gettext_lazy as _
|
||||
from web.views.components import (
|
||||
cart,
|
||||
cart_dropdown,
|
||||
list_customer_addresses_component,
|
||||
list_products,
|
||||
list_wishlisted_products,
|
||||
update_customer_address,
|
||||
user_info_component,
|
||||
wishlist_button,
|
||||
user_info_component, update_customer_address,
|
||||
)
|
||||
from web.views.users import (
|
||||
login,
|
||||
@@ -39,7 +41,9 @@ app_name = "web"
|
||||
|
||||
i18n_resolvers = i18n_patterns(
|
||||
path("", index, name="index"),
|
||||
path(_("wishlist"), login_required(wishlist, login_url=_("/login/")), name="wishlist"),
|
||||
path(
|
||||
_("wishlist"), login_required(wishlist, login_url=_("/login/")), name="wishlist"
|
||||
),
|
||||
path(_("categories/<str:slug>/"), category_view, name="category_view"),
|
||||
path(_("products/<int:pk>/<str:slug>/"), product_detail, name="product_detail"),
|
||||
path(_("cart/"), cart_detail, name="cart_detail"),
|
||||
@@ -96,7 +100,16 @@ urlpatterns = [
|
||||
delete_from_wishlist,
|
||||
name="delete_from_wishlist",
|
||||
),
|
||||
path("web/customer-address/<int:pk>/", update_customer_address, name="update_customer_address"),
|
||||
path(
|
||||
"web/customer-address/<int:pk>/",
|
||||
update_customer_address,
|
||||
name="update_customer_address",
|
||||
),
|
||||
path(
|
||||
"web/customer-addresses/",
|
||||
list_customer_addresses_component,
|
||||
name="list_customer_addresses_component",
|
||||
),
|
||||
# manifest
|
||||
path("manifest.json", manifest, name="manifest_json"),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user