Ajax functionality Not wordking
-
Hi,
the AJAX shop functionality is not working on my website. When I click on a category it reloads all the page. How can I fix it? can you help me fix it please?
Thank you
Hello,
The problem seems to be caused by your server performance. Our AJAX requests have a timeout of 5 seconds and if they don’t get a response from the server in this time the page will be loaded in a natural way. You need to fix your server response time or disable AJAX shop option in Theme Settings -> Shop.
Kind Regards
Xtemos
Actually, it shouldn’t be my server because it was working before I reinstalled the WordPress, on the same server.
Sorry, but it is a server problem. You can see it by yourself that the AJAX loading time is 5 seconds and then the page is reloaded. If you need, we can give you an instruction how to increase this time to 10 or 15 seconds but it is not a solution and you can try to disable this function completely.
ok give me the instruction to increase the time a bit
Hello,
Try to add the following PHP code snippet to the child theme functions.php file to do this
add_filter( 'woodmart_pjax_timeout', function(){ return 15000; } );
Kind Regards
Xtemos