From 4e70b654d26ae9ec540a83a2ece403966fd7edbb Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Fri, 2 Aug 2024 15:42:07 +0530 Subject: [PATCH] Fixed: The ajax-cart pop up closes after first click on mobile devices --- .../js/modules/blockcart/ajax-cart.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/hotel-reservation-theme/js/modules/blockcart/ajax-cart.js b/themes/hotel-reservation-theme/js/modules/blockcart/ajax-cart.js index 86296099f..c0cf2c9df 100644 --- a/themes/hotel-reservation-theme/js/modules/blockcart/ajax-cart.js +++ b/themes/hotel-reservation-theme/js/modules/blockcart/ajax-cart.js @@ -64,8 +64,10 @@ $(document).ready(function() { $("#header .shopping_cart a:first").hover( function() { - if (ajaxCart.nb_total_products > 0 || parseInt($('.ajax_cart_quantity').html()) > 0) - $("#header .cart_block").stop(true, true).slideDown(450); + if (!is_touch_enabled) { + if (ajaxCart.nb_total_products > 0 || parseInt($('.ajax_cart_quantity').html()) > 0) + $("#header .cart_block").stop(true, true).slideDown(450); + } }, function() { setTimeout(function() {