fix: missing email on order creation
This commit is contained in:
@@ -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}))
|
||||
|
||||
Reference in New Issue
Block a user