Hi,
I bought the JA K2 Filter package a few months ago and installed it on Wampserver (site in development) with the template : Astroid Template One. Everything was fine. Since, I had to reinstall Wampserver with a newer version of PHP (7.2.33 and 7.3.21), and since I have problems with the search system. For example, the Reset button no longer works if the search result is null. We also added a JS code to translate the search fields into French. Since then, this code is no longer recognized by the template, whereas it used to work.
I installed the system on another template, called Helium. The search system works well and the translation works well, except for the Depend Range field, which is not translated.
With the new versions of PHP the system sends an alert message " Notice Array to string conversion... " (see attached image). I understand that our difficulties are related to PHP. Do you have an available version of JA K2 Filter that works with recent versions of PHP ?
Otherwise, is it certain that your Template JA Directory Template works with recent versions of PHP, and would it accept our translation JS code ?
Thanks and best Regards,
Michel Arnaboldi
JS Code :
document.getElementsByName("btnSubmit")[0].value="Rechercher";
document.getElementsByName("btnReset")[0].value="Réinitialiser";
e=document.getElementById("K2ExtraField_1_1");
document.getElementById("K2ExtraField_1_1").options[e.selectedIndex].text='Sélectionner la région';
f=document.getElementById("K2ExtraField_1_2");
document.getElementById("K2ExtraField_1_2").options[f.selectedIndex].text='Sélectionner Ville / Quartier';
g=document.getElementById("xf_2");
document.getElementById("xf_2").options[g.selectedIndex].text='Tous les types de cuisine';
h=document.getElementById("xf_3");
document.getElementById("xf_3").options[h.selectedIndex].text='Aucune option';
// document.getElementsByClassName("alert-message")[0].innerHTML = "Aucun résulat pour l'instant"; //
var K2ExtraField_1_2 = document.getElementById("K2ExtraField_1_2");
function start(){
e.addEventListener("change", addActivityItem, false);
}
function addActivityItem(){
if(K2ExtraField_1_2.selectedIndex==0){
K2ExtraField_1_2.options[f.selectedIndex].text='Sélectionner Ville / Quartier'
}
}
window.addEventListener("load", start, false);