Home Forums WoodMart support forum Ajax functionality Not wordking

Ajax functionality Not wordking

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40754

    Yamess
    Participant

    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

    #40791

    Artem Temos
    Keymaster

    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

    #40800

    Yamess
    Participant

    Actually, it shouldn’t be my server because it was working before I reinstalled the WordPress, on the same server.

    #40801

    Artem Temos
    Keymaster

    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.

    #40821

    Yamess
    Participant

    ok give me the instruction to increase the time a bit

    #40822

    Eric Watson
    Participant

    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

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