Cart not updating for guests
-
Hi guys!
So I have a custom product configurator that uses $woocommerce->cart->add_to_cart to add the product to the cart.
It works fine if the user is logged in, but does not if used by a guest. Simply returns “your cart is empty” with no errors.
- The option for guest checkout is enabled
- The AJAX add to cart is disabled
- The code executes correctly each time – returning same values.
- The standard WC “add to cart” works fine for the guest though.
- If there’s already something in the cart, the code works correctly for guests.
So I’m suspecting a COOKIE/SESSION problem but have no idea where to start. Any thoughts would be great. Thanks!
- The topic ‘Cart not updating for guests’ is closed to new replies.