• Resolved slaymakermkting

    (@slaymakermkting)


    In the WooCommerce settings I have “Enable AJAX add to cart buttons on archives” checked, but when add an item to the cart from an archive page, it does not use ajax.
    It reloads the current page with “?add-to-cart=#####” added to the url.

    What can I do to fix this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi @slaymakermkting,

    At the moment this looks like it could be an AJAX error with the way you’ve integrated Google Tags into the site, either through a plugin or custom code.

    I would then try some conflict troubleshooting to help rule out that integration, or other plugins and your theme. The best way to determine this is to:
    ?

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Thread Starter slaymakermkting

    (@slaymakermkting)

    I did some tests like you suggested. I deactivated the plugins and switched themes. The problem persisted with the plugins deactivated, but it worked correctly when I switched to a basic theme.
    How would I go about find what is causing the issue with my current theme?

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    Your theme probably loads some Javascript that causes this. I would selectively dequeue assets (plugin: https://www.ads-software.com/plugins/asset-queue-manager/) by commenting out the lines in the header to see which one it is.

    Kind regards,

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AJAX add to cart doesn’t work.’ is closed to new replies.