From 65cd903153c028c4e3d199dee85905fe3f1b15aa Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Mon, 9 Jun 2025 15:07:12 +0530 Subject: [PATCH] Fixed: Showing no customer found while adding new customers during booking. --- admin/themes/default/template/controllers/orders/form.tpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl index 006dc6d77..1f3bd2ad1 100644 --- a/admin/themes/default/template/controllers/orders/form.tpl +++ b/admin/themes/default/template/controllers/orders/form.tpl @@ -635,7 +635,10 @@ 'width': '90%', 'height': '90%', 'afterClose' : function () { - searchCustomers(); + let customer = $('#customer').val(); + if (customer != '' && customer.length > 3) { + searchCustomers(); + } } }); /*$("#new_address").fancybox({ @@ -888,7 +891,7 @@ let customerSearchAjax = ''; function searchCustomers() { - abortRunningAjax(customerSearchAjax);Add commentMore actions + abortRunningAjax(customerSearchAjax); customerSearchAjax = $.ajax({ type:"POST", url : "{$link->getAdminLink('AdminCustomers')}",