From ada8d869486621060d9e017dd97bb7a9d384c474 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Mon, 28 Apr 2025 15:17:22 +0530 Subject: [PATCH] Optimized the design for guest selection process on checkout page in the front office --- .../hotel-reservation-theme/css/order-opc.css | 13 +++-- .../hotel-reservation-theme/js/order-opc.js | 58 ++++++++++--------- 2 files changed, 39 insertions(+), 32 deletions(-) diff --git a/themes/hotel-reservation-theme/css/order-opc.css b/themes/hotel-reservation-theme/css/order-opc.css index d32358148..9baa5a9a4 100644 --- a/themes/hotel-reservation-theme/css/order-opc.css +++ b/themes/hotel-reservation-theme/css/order-opc.css @@ -689,17 +689,18 @@ overflow-y: auto; max-height: 200px; background: #fff; - margin: 0; - margin-top: 2px; - font-size: 14px; z-index: 10; box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); position: absolute; width: 90%;} - +.customer_guest_detail_email_list{ + width: 92%;} .customer_guest_detail_li { - white-space: nowrap; - padding: 15px;} + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + padding: 10px;} .customer_guest_detail_li.active { color: #fff; background-color: #379bf0;} diff --git a/themes/hotel-reservation-theme/js/order-opc.js b/themes/hotel-reservation-theme/js/order-opc.js index df1ea54ac..df3f26a0e 100644 --- a/themes/hotel-reservation-theme/js/order-opc.js +++ b/themes/hotel-reservation-theme/js/order-opc.js @@ -193,41 +193,47 @@ $(document).ready(function() let firstName = ''; let lastName = ''; let email = ''; + let target = false if ($(e.target).prop('id') == 'customer_guest_detail_firstname') { firstName = $('#customer_guest_detail_firstname').val() } else if ($(e.target).prop('id') == 'customer_guest_detail_lastname') { lastName = $('#customer_guest_detail_lastname').val() } else if ($(e.target).prop('id') == 'customer_guest_detail_email') { - email = $('#customer_guest_detail_email').val() + email = $('#customer_guest_detail_email').val(); } let targetElem = $(this); - customerGuestDetailAjax = $.ajax({ - type: 'POST', - url: orderOpcUrl, - async: false, - cache: false, - dataType : "json", - data: { - token : static_token, - ajax : true, - method : 'getCustomerGuestDetail', - firstname : firstName, - lastname : lastName, - email : email, - }, - success: function(data) { - if (data.status) { - let listElem = $('