AJAX add to cart not updating
-
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 also updated Elementor, but rolled it back and same outcome.
Lastly, I uninstalled the theme and reinstalled it again. I noticed the same issue in the demo page (Ajax add to cart for WooCommerce plug in works well, but the cart in the header still shows 0-$0)I would consider adding a plugin, but my preference is not to do so.
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘AJAX add to cart not updating’ is closed to new replies.