Home Forums WoodMart support forum Ajax filters don't work

Ajax filters don't work

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #211174

    prokreeger
    Participant

    I have an issue with ajax filters. They don’t work. When I pick some filter option it didn’t reload product list with ajax, instead of that it just reload the page.

    In theme settings I have turned on switcher for ajax filters (look attached image).

    Attachments:
    You must be logged in to view attached files.
    #211187

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #211253

    prokreeger
    Participant

    Hello,

    I have disabled all plugins that are not related to your theme.

    #211257

    Artem Temos
    Keymaster

    Please, switch to the parent theme and provide us your FTP as well.

    Thank you in advance.

    #211270

    prokreeger
    Participant

    Here you are.

    #211273

    Artem Temos
    Keymaster

    It works correctly without child theme. It means that the problems are caused by some customization made by you or your developer made in the child theme code. You need to fix it or remove the custom code.

    #211331

    prokreeger
    Participant

    This issue was caused by new version of jQuery added in function.php file.

    // Modern jQuery Library
    function modify_jquery() {
    	if (!is_admin()) {
    		// Serve localy
    		wp_deregister_script('jquery');
    		wp_register_script('jquery', '/wp-content/themes/woodmart-child/vendor/jquery-3.5.1.min.js', false, '3.5.1');
    		wp_enqueue_script('jquery');
    		wp_deregister_script('jquery-migrate');
    		wp_register_script('jquery-migrate', '/wp-content/themes/woodmart-child/vendor/jquery-migrate-3.3.0.min.js', false, '3.3.0');
    		wp_enqueue_script('jquery-migrate');
    	}
    }
    add_action('init', 'modify_jquery');

    Thanks!!!

    #211472

    Artem Temos
    Keymaster

    We are glad that you sorted it out.

    Kind Regards

Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Ajax filters don't work’ is closed to new replies.