Home › Forums › WoodMart support forum › Free Gifts AJAX error – gift added but loading spinner never stops

Free Gifts AJAX error – gift added but loading spinner never stops

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #730509

    deniss.ignatjev.79
    Participant

    Hello,
    I have encountered an issue with the WoodMart Free Gifts feature on the cart page.
    When a customer clicks “Add to cart” for one of the available free gifts, the gift is successfully added to the WooCommerce cart, but the AJAX loading spinner continues indefinitely and the cart interface is not updated.
    After manually refreshing the page, the free gift appears correctly in the cart.
    The issue is reproducible both for logged-in users and guests (tested in Incognito mode).
    I checked the AJAX request in Chrome DevTools. The request completes successfully:
    action: woodmart_add_gift_product
    The server response is:
    {“success”:true}
    Immediately afterwards, the following JavaScript error occurs:
    Uncaught TypeError: Cannot read properties of null (reading ‘invalidateResolutionForStore’)
    at Object.success (freeGiftsTable.min.js)
    So it appears that the gift is successfully added on the server side, but the JavaScript responsible for updating the cart interface fails after the successful AJAX response.
    WoodMart and its bundled plugins are updated to the current versions.
    Could you please check whether this is a bug or compatibility issue in the current Free Gifts implementation?
    Thank you.

    #730521

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hello,

    This could be a conflict with another plugin. To check, please deactivate everything except:

    – WoodMart Core
    – WooCommerce
    – WPBakery Page Builder or Elementor

    If the problem goes away, turn the others back on one at a time. The one that brings it back is your culprit.

    If it’s still there with everything else off, we’ll take a look ourselves. Please share your admin details in the Private content field and confirm we can temporarily deactivate plugins and switch themes for testing. It takes about 15 to 20 minutes. Please back up your site before giving us access.

    Best regards,
    XTemos Studio

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