Woocommerce Add to cart product is empty - wordpress

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.

Related

add to cart button not work properly sometimes! in woocommerce

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

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

Stay on shop page when add to cart

I'm using elementor pro, woocommerce, ocean wp theme and the elementor custom skin add-on.
I want to build an ecommerce website without products pages but only a shop page, in order to have all my products on the shop page with add to cart button and a quantity selector.
For that, I used the loop system and it works quite well.
I only have 1 issue : when you add a product to the cart, it automaticaly redirects you to the product page.
I don't want to use the products pages. I would like to disable them.
I want customers to stay on the shop page for further shopping. Only access to cart page or checkout page when they click on the add to cart menu.
If it's possible to do that without coding it's best, otherwise, please tell me how to do if you can :)
thank you!
This issue can be fixed if you click on the tick mark named as " Redirect to the cart page after successful addition". You will find it in Woocommerce > Settings > General.
This will help customers to go to the cart page after they add something to the cart. But I don't know how to redirect customers to the shop page after they add to cart something. I am also asking for that help.
See the screenshot:

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 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