add to cart button not work properly sometimes! in woocommerce - wordpress

I have a problem in my woocommerce online shop. I am using Astra theme. The problem is that when I hit the add to cart button in shows that the product is added but when I check the cart, there is nothing in it. Also, for variable products it says that you should select an option and it does not add to cart (I mean after it says successful and when I go into my cart). I am using Ajax add to cart button. and the last point is that it does not happen always. sometimes it works fine and sometimes the problem come. I have checked woocommerce status and also I disabled cache plugin and cache on server, and I see this problem in single product page.
Thank you

Related

Wordpress Woocommerce add to cart behaviour

Hi so i'm building something like a online shop website using woocommerce and every time i clicked on the add to cart button it keeps redirecting me to the cart page which i know there is an option on it. but i make sure every time that it was not checked.
So, why am i keep getting redirected to cart page every time i click add to cart even though i already disable the option to redirect?
this is what i've tried so far : restarting, checking the ajax option, disable and enable woocommerce

Woocommerce Product Unable to delet from Cart

After updating woocommerce to 3.6.2, once added i can not remove a product from cart.Intially it's showing rtemoved but again it's coming back when refresh the page.I am not using any caching plugin aslo i tried deactivate all plugins as well changing the theme, but no result.
When i am trying remove cart the following ajax is called:
http://www.domainname.com/cart/?removed_item=1
Immediately there is another ajax call which again bring the image back and not removing from the cart
http://www.domainname.com/cart/?wc-ajax=get_refreshed_fragments
Thanks in advance.
The issue was with the cloud-flair caching.Once removed the IP from Cloudflare, the cart stated working as normal.

Woocommerce single product add to cart button not working

I have developed a custom theme. Everything working fine but woocommerce single product page add to cart button not updating products.
In the cart page update cart works sometimes and again suddenly stop working. here is the link http://webdesign-projects.xyz/mer/shop
Can anyone figure out the issue?

Woocommerce Add to cart product is empty

I am developing an eCommerce solution using Gravity Forms and Woocommerce. Now the problem is that on my local host everything is working fine.
As soon as I transfer the website to live server the cart page does not show on product add.
You can recreate the problem by visiting this url cosmosample.com/phoking4/
And click on menu tab.
As you can see the cart page should appear after clicking on add to cart but that does not happen. What could be the possible cause of this kind of behavior.
I would also like to add that add_to_cart is working as when I see the cart directly, it sometimes shows me all the times, I have added the product, so there is some problem with the way the cart is being displayed.

Woocommerce cart update failure

When I add a product to my cart, I see the product added via Ajax. Nothing wrong.
When I go to the previous page, my shopping cart is back empty until I refresh the page. I'm using FF or Safari. I don't have this problem in google Chrome (Cart shows the items I added, also when I go to the previous page.
I have a basic up-to-date wordpress installation without any plugings activated. Have this problem in several themes. This sounds like a caching problem. Anyone with a solution? I do not have any custom code, this are all options from the standard woocommerce installation.

Resources