From d1e74ce3be79fd899d5a8265dd70a7372ae2f39b Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 21 May 2012 15:27:11 +0000 Subject: [PATCH] // Display warning if no address is available in backoffice order git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15529 b9a71923-0436-4b27-9f14-aed3839534dd --- .../default/template/controllers/orders/form.tpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 @@