Skip Navigation

[Resolved] Ajax not working properly in custom search filed (inside View)

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 9 replies, has 3 voices.

Last updated by Shane 4 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1469121

I am trying to use the options:

- AJAX results update when visitors click on the search button
- AJAX results update when visitors change any filter values

Link to a page where the issue can be seen:

hidden link

( I will provide login details)

I expected to see:

Results update when visitors change any filter values

Instead, I got:

No AJAX update

#1469919

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Antoine,

The credentials you seem to have provided was just the FTP.

I will enable the private fields for your next response for the site credentials.

Thanks,
Shane

#1470397
#1471249

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Antonio,

I'm able to see the issue now.

Have you tried switching the theme to a default wordpress theme to see if it still works.

It could be that there is some plugin conflict here.

Could you check this and let me know and we can progress from there.

Thanks,
Shane

#1472295

Hi!

Yes, it seems to be theme related. I just switched to default WP theme and it works as it should.

You have helped me with this before on another website, with same theme (Enfold)...

#1473701

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Antonio,

Would you mind if I grabbed a copy of this site for further testing here locally ?

Please let me know.

Thanks,
Shane

#1479585

Hi, sorry for late reply

That's OK, go ahead!

#1481037

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Antonio,

Thank you for the patience, this one is definitely an issue with Enfold.

I was able to replicate the issue on a fresh install.

However there is a solution on this issue. Add the following to your functions.php file for your theme.

add_filter( 'avf_enqueue_wp_mediaelement', 'avia_always_load_mediaelement', 10, 2);
function avia_always_load_mediaelement($condition, $options)
{
    $condition = true;
    return $condition;
}

Please let me know if this helps.
Thanks,
Shane

#1484201

Hi!

Thanks, it seems to work with the Ajax now...

Just one other strange issue:

If you select the "Veganskt" option, the other option disappears. This is expected and this is how it should work.

But when you select "Veganalternativ" the other option "Veganskt" is still there and does not disappear.

Why do they behave differently?

#1485287

Hi, Shane is unavailable today and will return tomorrow to continue assisting you here. Thanks for your patience!

#1486909

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-01-30 at 9.27.58 AM.png
Screenshot 2020-01-30 at 9.28.16 AM.png

Hi Antonio,

I took another look at this for you. In my testing both filters are always shown regardless. Have a look at my screenshot

As you can see i've alternated my selections and both would still show.

Thanks,
Shane

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.