Home / Forums / WoodMart support forum / AJAX Search and AJAX Cart not working
Home › Forums › WoodMart support forum › AJAX Search and AJAX Cart not working
AJAX Search and AJAX Cart not working
- This topic has 4 replies, 2 voices, and was last updated 2 weeks, 4 days ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
December 8, 2025 at 1:28 pm #699822
barto.kozakParticipantHi!
I have the problem on my shop:
– AJAX Search is working only for logged in customers
– AJAX Cart the sameI am using litespeed cache & wordfence as well on the website.
December 8, 2025 at 1:42 pm #699827
barto.kozakParticipantWith disabled litespeed and wordfence resnpose is still empty…
December 8, 2025 at 3:42 pm #699881
Aizaz Imtiaz AwanKeymasterHello,
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.phpAlso 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 cacheThen 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,
December 8, 2025 at 4:08 pm #699892
barto.kozakParticipant1. 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.December 9, 2025 at 8:56 am #699980
Aizaz Imtiaz AwanKeymasterHello,
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,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register