All extensions are free now. Because it was coded by Russians.

K2 FILTER : Problem with dynamic values

Please Log in or Create an account to join the conversation.

#
Hello,

The module is working properly so far except for one option that really was the reason i wanted to use this module in the first place : the dynamic values for the select boxes.

As soon as i activate this option i get the following error on the page that contains the module when im selecting something in the select box :

Uncaught TypeError: Cannot read properties of undefined (reading 'attr')
at Object.<anonymous> (reservez:865)
at Function.each (jquery.min.js?12446976276ab3f29cfaaf07649811ed:2)
at a.fn.init.each (jquery.min.js?12446976276ab3f29cfaaf07649811ed:2)
at Object.success (reservez:856)
at u (jquery.min.js?12446976276ab3f29cfaaf07649811ed:2)
at Object.fireWith [as resolveWith] (jquery.min.js?12446976276ab3f29cfaaf07649811ed:2)
at C (jquery.min.js?12446976276ab3f29cfaaf07649811ed:2)
at XMLHttpRequest.n (jquery.min.js?12446976276ab3f29cfaaf07649811ed:2)


And i have this second error on all pages containing the module, this is first time i ever encounter this (and im using quite a few others modules with customs templates already that doesnt show this error):

Not allowed to load local resource: file:///C:/xampp/htdocs/modules/mod_k2_filter/tmpl/Default/template.php

The way this file is loaded is wrong :
<link href="C:\xampp\htdocs\modules\mod_k2_filter\tmpl\Default\template.php" rel="stylesheet">

Am i missing a parameter somewhere ? Is the reason the dynamic search is not working is because your template won't load ?


Joomla 3.10.2 php 7.3.30 and latest version of your module

Please Log in or Create an account to join the conversation.

#
Hello, Thibaut.

Please, try to remove module template overrides under your site template.
Also, try to switch module's template to 'Standard' for check it.
Can you send also a link to your site for check it?

Please Log in or Create an account to join the conversation.

#
Thanks for your answer.

The site is currently on localhost during the early dev phase. If really needed i'll try to set it up online next week.

I switched template to "selectize" (i didnt find standard, and the default one was already having the error) and now the fields are dynamics.

So it is working, even thought i have the same error for this template :

Not allowed to load local resource: file:///C:/xampp/htdocs/modules/mod_k2_filter/tmpl/Selectize/template.php

I dont get what you mean by "remove module template override under my site template" :
checking in \templates\shaper_helixultimate\overrides ?
Or \templates\shaper_helixultimate\html\?

But the link shouldn't the link be like this ?
<link href="\modules\mod_k2_filter\tmpl\Default\template.php" rel="stylesheet">

and not this way :
<link href="C:\xampp\htdocs\modules\mod_k2_filter\tmpl\Default\template.php" rel="stylesheet">

Please Log in or Create an account to join the conversation.

#
Ok, great that you have some result.

I mean /html folder inside your template.

No, we are not including any template.php, it is strange why you have this. It should be only .css file.

Please Log in or Create an account to join the conversation.

#
Is there any way to make dynamic values to works without ajax results? Or ajax result to show in a new page ?
Only for this one module and this template, i have another module with another template for my full search page that works with ajax results (and it's fine like this)

I really need the fileds to be dynamics, there is no point in searching for a trip in let's say Germany in november if there is none.

It's for my homepage, so i need the results to show in another page.

Thanks !

Please Log in or Create an account to join the conversation.

#
Please, send me an email - This email address is being protected from spambots. You need JavaScript enabled to view it.
Please, attach an example screenshots or video what do you want to fix.