diff --git a/make_post_sell/views/cart.py b/make_post_sell/views/cart.py index 5946390..42a67de 100644 --- a/make_post_sell/views/cart.py +++ b/make_post_sell/views/cart.py @@ -470,6 +470,10 @@ def cart_complete_checkout(request): invoice.handling_option = cart.handling_option invoice.handling_cost_in_cents = cart.handling_cost_in_cents + # Copy the user's active address to the invoice + if cart.physical_products: + invoice.delivery_address = request.user.active_address.data + for product, quantity in product_quantity_tuple: product.unlock_for_user(request.user) request.dbsession.add(product)