diff --git a/admin-dev/themes/default/template/controllers/orders/form.tpl b/admin-dev/themes/default/template/controllers/orders/form.tpl index d67910fe5..3babcd2e0 100755 --- a/admin-dev/themes/default/template/controllers/orders/form.tpl +++ b/admin-dev/themes/default/template/controllers/orders/form.tpl @@ -429,8 +429,18 @@ addresses_options += ''; }); - $('#id_address_delivery').html(addresses_options); - $('#id_address_invoice').html(addresses_options); + if (addresses_options == '') + { + $('#address_delivery').hide(); + $('#address_invoice').hide(); + } + else + { + $('#id_address_delivery').html(addresses_options); + $('#id_address_invoice').html(addresses_options); + $('#address_delivery').show(); + $('#address_invoice').show(); + } $('#address_delivery_detail,#address_invoice_detail').html(address_detail); } if (res.id_cart)