fix: missing email on order creation

This commit is contained in:
Pablo Moreno
2025-01-13 00:39:15 +01:00
parent 8a1243023f
commit 475b53a7e3
3 changed files with 18 additions and 35 deletions
+3
View File
@@ -110,6 +110,8 @@ class CartDetail(TemplateView, CreateView):
shipping_address_zip = form.cleaned_data.get("shipping_address_zip")
shipping_address_phone = form.cleaned_data.get("shipping_address_phone")
email = form.cleaned_data.get("email")
shipping_method = get_object_or_404(ShippingMethod, pk=shipping_method_id)
order = create_order_from_cart(
@@ -128,6 +130,7 @@ class CartDetail(TemplateView, CreateView):
shipping_address_country=shipping_address_country,
shipping_address_zip=shipping_address_zip,
shipping_address_phone=shipping_address_phone,
email=email,
)
return redirect(reverse("web:order", kwargs={"uuid": order.uuid}))