Woocommerce cart update failure - woocommerce

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.

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

Woocommerce single product page not working

I'm working on a new webshop, everything was working fine and the shop was almost done. Today I did some tweeks to the search page and some styling changes, but now I noticed that the single product page isn't working anymore. The shop, cart, category page and everything else from woocommerce is working just fine, except for the single product page.
I did do an update to v5.5.2 today, maybe that has something to do with this, but I can't figure out how to fix this.
As you can see in the screenshot below, the product image, pricing, options etc. isn't showing up, only the description.
Woocommerce single page with DOM
Does anyone here know how this could have happend and how I can fix this?
Details:
WP v5.8
Woocommerce v5.5.2
Is your theme and plugins running on the latest version?
If you temporarily switch to another theme (example twenty-twentyone) and you try to open the same product page is it working properly?

Blank/empty pages Cart and Checkout

We’re just getting started with WooCommerce and are preparing a store with just a few categories and products in it to play around with it and get to know it before we get seriously into it.
We don’t yet have an SSL certificate for our website.
Does this mean that we won’t be able to create a store and test it until we get an SSL certificate?
As is, we’re seeing blank pages when we go to cart and try to go to checkout. On those pages, our header is there, but the page below the header is empty, blank.
I posted this same question in an existing thread that mentioned this, but haven’t had a reply. Thought maybe it might be missed in that other thread.
maybe, can you see do code shablon this page?
Thank you.
I came across this issue while writing a custom WooCommerce theme from scratch. I realized that if your theme has a page.php template (or any of the fall-back templates in the WP hierarchy) - you need to make sure, that the_content(); function gets called in the template that your page post-type is going to use (either page.php, singular.php or index.php) - if you are using the standard WooCommerce setup.
If not, the WooCommerce short-codes are simply never output - which the cart, checkout, my-account and order-tracking pages depend on.
Make sure to enter the [woocommerce_cart] shortcode in the Cart page and [woocommerce_checkout] shortcode on the checkout page.
And Goto Woocommerce settings and set the Cart Page, Checkout page.
This should solve the issue.
Meanwhile, check the Woocommerce -> System Status and look for errors.
If you are using any page builder, make sure you enter the Shortcodes in the text box modules.
If you still face the issue, try reverting back to Gutenburg editor or classic editor instead of Page builder.
How to debug:
wordpress.org/support/topic/how-to-debug-issues-after-updates
Perhaps it would be easier to find what is causing the conflict. Try temporarily switching back to the WordPress Twenty Sixteen Theme, or Storefront, and disable all plugins except for WooCommerce. If that resolves the issue, then slowly re-enable features until you find the one that’s causing the conflict

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 permalink

The issue is on Woocommerce permalink. I have added 7 menus to my woocomerce website, of which 5 of them contains the products, the others are HOME and CART. The problem is, I ain't aware of the permalink concept. Though, I tried to link my products to the respective page by changing permalink as
Custom Structure : http://example.org/%product_cat%/
Category base : products
and it works fine for the 5 products in the menu, but the problem occurs with my CART menu.
When I click it shows
"Page not found! Something has gone wrong. Sorry about that!"
I tried with Woocommerce settings, where I couldn't find any option to resolve this.
Hi try to go to Woocommerce setting and then on Checkout tab set the Cart page to your designated Cart Page that you created. (Same goes as your checkout page). Or try to go to permalink and save again.
What is the link that shows in the browser when you get the "Page not found" error?
If you go to Woocommerce Settings > Checkout, you will see a section called Checkout Pages. Make sure you set your cart and checkout pages to the correct page and save it. If that does not fix your issue, go to Settings > Permalinks and click save. Test again.
You also want to make sure you update your theme and plugins. If none of these options work, please send the url that shows when you get the "page not found" error.
The best way is to use a special plugin as well as you can save time and quickly manage URL’s on your WooCommerce store.
In my opinion, the best plugin for managing links to the WooCommerce platform is the WooCommerce Permalink Manager by Premmerce that allows you to configure URL generation strategy for your store. I used almost all similar plugins, but I can confidently say that it’s the best solution in this area. This plugin is completely free and has a friendly interface. So you can use this tool without any skill.
I hope It will help to you!

Resources