Home Forums WoodMart support forum Critical Bug in WoodMart Theme: WooCommerce Cart AJAX Fails

Critical Bug in WoodMart Theme: WooCommerce Cart AJAX Fails

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

    lucian.nuta
    Participant

    Hello WoodMart Support Team,

    [bug on my client website]

    Problem:
    All AJAX actions on the WooCommerce cart page (updating quantity, removing items) are broken. The cart does not update visually after a user action.

    Environment:
    WordPress: Latest Version (i even updated everything today)
    WooCommerce: Latest Version
    WoodMart Theme: Latest Version
    Woodmart Core: Latest Version

    Troubleshooting:

    Control Test: Switched to the default Twenty Twenty-Four theme. Result: The cart functions perfectly.

    Plugin Conflict Test: Deactivated all plugins except WooCommerce, Elementor, and Woodmart Core. Result: The bug persists.

    Error Log Analysis: Checked the server debug.log and the browser developer console. Result: There are no fatal PHP errors and no critical JavaScript errors.

    Please help.
    Best regards

    #670069

    lucian.nuta
    Participant

    Using the browser’s Network Inspector, I have confirmed that when I try to remove an item, the server responds correctly with a Status Code 302 Found and a correct redirect location header to /?removed_item=1.

    This proves the WordPress backend and WooCommerce are working perfectly.

    Perhaps theme’s JavaScript is failing to handle this successful server response. It is not triggering the follow-up events needed to refresh the cart display on the page.

    Please see the attached request/response headers for proof. The fault is in the theme’s client-side scripting. I need this escalated and fixed.

    #670072

    lucian.nuta
    Participant

    Update: After reading on another thread. I switched to parent theme instead of child theme. Now the error is gone. Please let me know what this means and how can i still use child theme

    #670076

    lucian.nuta
    Participant

    I found the cause from functions.php of child theme, deleted it and it works.

    #670311

    Hung Pham
    Keymaster

    Hi lucian.nuta,

    Thanks for reaching to us and appreciate your patience.

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    Regards,
    Hung PD

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

The topic ‘Critical Bug in WoodMart Theme: WooCommerce Cart AJAX Fails’ is closed to new replies.