Sometimes remove_cart_item does not removeing item
-
Hi,
I have custom js theme and adding items etc works fine however when I want to remove item with remove_cart_item() function after some time it stops working. After reseting cookies everything works well but after some time problem reappears.
That function ($result = $woocommerce->cart->remove_cart_item($item);) is done through ajax request (js calls endpoint and endpoint response with cart json data).
I have no clue what might couse that problem. Interesting thing is that the json data with cart does not contain the removed item but after refreshing it reappear in basket.
Do you guys have any idea what might be the issue?
The topic ‘Sometimes remove_cart_item does not removeing item’ is closed to new replies.