Home Forums WoodMart support forum Loading issue – Woodmart WooCommerce Subcategories

Loading issue – Woodmart WooCommerce Subcategories

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

    dennispol90
    Participant

    Hello,

    First of all, I love the Woodmart theme! We use it on our testlocation.

    I have a loading question.

    When you visit our website and go for example to the product category Decals > KTM (this is a sub category) > SX(F) + SMR 2023 (this is a sub-sub category), the page is going to load the products and you see the loading icon. That is good. But then it stops loading and you see again the sub-sub category items (/c/decals/ktm/) for a couple of seconds (but the browser is still loading the products) and after that then only shows up the products.

    Is there a way to prevent the sub-sub category coming back into the screen? I’ve tried a lot of things, also a cache plugin (WP Rocket Pro), but nothing helped.

    I would love to hear from you.

    Kind regards,
    Dennis

    #425174

    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 or check your performance. Because it should be loaded in 0.5-1.5 seconds at most.

    Kind Regards

    #425180

    dennispol90
    Participant

    Thank you for your quick response!

    I would love to get instructions about how to increase the AJAX request time to 10 – 15 seconds, so it’s temporary fixed and then after that I have to look further try to get better performance.

    Hope to hear from you. Thanks in advance!

    #425182

    Artem Temos
    Keymaster

    Try to add the following code to the functions.php file in your child theme

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

    Kind Regards

    #425186

    dennispol90
    Participant

    Yes, that option is working for now. Thank you so much!
    In the meantime I’ll looking for a solution for better performance.

    #425293

    Artem Temos
    Keymaster

    We are always happy to help. Feel free to contact us if you have any further questions.

    Kind Regards

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

The topic ‘Loading issue – Woodmart WooCommerce Subcategories’ is closed to new replies.