Home Forums WoodMart support forum AJAX Search and AJAX Cart not working

AJAX Search and AJAX Cart not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #699822

    barto.kozak
    Participant

    Hi!
    I have the problem on my shop:
    – AJAX Search is working only for logged in customers
    – AJAX Cart the same

    I am using litespeed cache & wordfence as well on the website.

    #699827

    barto.kozak
    Participant

    With disabled litespeed and wordfence resnpose is still empty…

    #699881

    Hello,

    If the AJAX search and AJAX cart only work for logged-in customers, the issue is usually related to caching or a security/firewall rule blocking AJAX requests for guest users.

    Please try the steps below:

    1. Exclude Woodmart AJAX endpoints from cache

    In LiteSpeed Cache → Cache → Excludes, add these URLs to the “Do Not Cache” list:

    /?wc-ajax=*
    /wp-admin/admin-ajax.php

    Also disable JS Combine and JS Defer temporarily to check if optimization is blocking the request.

    2. Check Wordfence

    Even when disabled once, some firewall rules remain active until manually cleared.

    Go to: Wordfence → Firewall → All Firewall Options

    * Set “Firewall Status” to Learning Mode
    * Clear Wordfence cache

    Then re-test the AJAX functions.

    3. Disable all plugins except theme-required ones

    Please temporarily deactivate all third-party plugins (except WooCommerce + Woodmart Core , Page Builder required) and test again.

    If AJAX works after this, reactivate plugins one by one to identify the conflict.

    Best Regards,

    #699892

    barto.kozak
    Participant

    1. Added, /?wc-ajax=* & /wp-admin/admin-ajax.php no improvement.
    1. disable JS Combine and JS Defer temporarily – no improvement
    2. Wordfence learning mode enabled, there is no caching in wordfence! nevertheless purged whole cache on whole website – no improvement
    3. – Cannot do it (switching all plugins one after one) since i do have live website with users constantly online.

    Info: Disabling Litepress is not improving situation. Disabling Wordfence is not improving situation.
    Info2: When logged as admin – ajax search is working.

    #699980

    Hello,

    3. – Cannot do it (switching all plugins one after one) since i do have live website with users constantly online.

    This is really the major debugging process; most of the time, such issues are because of the conflict.

    So please clone your site as a test site and try that step on the test site, let me know the result then.

    Best Regards,

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