AJAX add to cart buttons stopped working
-
I am not exactly sure when it started happening, but my site is not letting anybody know when adding products to the cart via ajax.
Some additional information:
– ONLY in the Home Page, the cart ALWAYS displays 0 items, $0 (it shows the correct amount and quantity on every other page)
– Items are added to cart by calling ?wc-ajax=add_to_cart (this part works well)
– The response is a cart_hash and fragments
– In the product page, if the main product is added, the page refreshes (and a message is shown)What I expect to happen:
– The cart at the top of the page updates to the right amount/quantity after adding a product to the cart
– A message pops up telling the user the product has been addedI already disabled all plugins with no luck.
I have been working on cache, images optimization (compression and lazy loading) and asyncronization plugins.
I also updated Elementor, but rolled it back and same outcome.I would consider adding code, but my preference is not to do so.
The page I need help with: [log in to see the link]
- The topic ‘AJAX add to cart buttons stopped working’ is closed to new replies.