From 5d00e8450e63e462ed483a4ada5ecc0c22391c0a Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Mon, 2 Jun 2025 15:41:26 +0200 Subject: [PATCH] =?UTF-8?q?Wyszukiwarka=20usuwanie=20ceny=20konkretnych=20?= =?UTF-8?q?produkt=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/leoproductsearch/views/js/leosearch.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/modules/leoproductsearch/views/js/leosearch.js b/modules/leoproductsearch/views/js/leosearch.js index ccb064b1..d1a3880e 100644 --- a/modules/leoproductsearch/views/js/leosearch.js +++ b/modules/leoproductsearch/views/js/leosearch.js @@ -41,12 +41,17 @@ $(document).ready(function() lps_html_result += '
' + result[i].name + '
'; + const excludedIds = [31069, 31067, 34327, 31070]; + if (typeof lps_show_product_price != 'undefined' && lps_show_product_price) - { - if (result[i].manufacturer_name != 'Gomarco') { - lps_html_result += '
' + result[i].price + '
'; - console.log(result[i]) - } + { + if ( + result[i].manufacturer_name != 'Gomarco' && + !excludedIds.includes(Number(result[i].id_product)) + ) { + lps_html_result += '
' + result[i].price + '
'; + console.log(result[i]) + } } lps_html_result += '
';