diff --git a/admin-dev/themes/default/template/controllers/orders/form.tpl b/admin-dev/themes/default/template/controllers/orders/form.tpl
index 3146a9b6b..022fc0b32 100755
--- a/admin-dev/themes/default/template/controllers/orders/form.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/form.tpl
@@ -866,6 +866,17 @@
addresses_delivery_options += '';
addresses_invoice_options += '';
});
+ if (addresses.length == 0)
+ {
+ $('#addresses_err').show().html('{l s='You must add at least one address to process the order.'}');
+ $('#address_delivery, #address_invoice').hide();
+ }
+ else
+ {
+ $('#addresses_err').hide();
+ $('#address_delivery, #address_invoice').show();
+ }
+
$('#id_address_delivery').html(addresses_delivery_options);
$('#id_address_invoice').html(addresses_invoice_options);
$('#address_delivery_detail').html(address_delivery_detail);
@@ -1076,6 +1087,7 @@