Home Forums WoodMart support forum Ajax don't work

Ajax don't work

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

    developeris
    Participant

    Hello,
    when I select filter, its refreshes website and then apply filter, it shouldn’t refresh the page. How can I fix it?

    #281952

    Artem Temos
    Keymaster

    Hello,

    Our AJAX requests have a timeout of 5 seconds and if they don’t get a response from the server at this time the page will be loaded in a natural way. 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.

    Kind Regards
    Xtemos

    #285890

    developeris
    Participant

    How could I increase time to 10-15sec?

    #285903

    Artem Temos
    Keymaster

    You can increase the waiting time for a response from AJAX so that the page does not reload.
    Add this code to functions.php in your child theme

    add_filter( 'woodmart_pjax_timeout', function(){
    	return 30000;
    } );
    #285905

    developeris
    Participant

    How can I adjust seconds?

    #285909

    Artem Temos
    Keymaster

    You can adjust the value in MS here return 30000;

    #285912

    developeris
    Participant

    Thank you

    #285914

    Artem Temos
    Keymaster

    You are welcome

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

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