Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Out of stock items in WooCommerce error

$
0
0

Replies: 0

A bit of a messy issue to explain:

So I have WooCommerce installed. I have a product with a stock of 2 (on oduct page I display the exact stock quantity. 1 is bought, it displays correctly “1 in stock”. If the last one is bought, it displays “0 in stock”, and the “Add to cart” button is still visible!

I have other settings that don’t updated as they should. I have an email notification plugin for products that are out of stock, and users can give their email address if they want to know when it’s back in stock. I have a red banner automatically displayed on each product on the store catalog that become out of stock. None of them update correctly.

The only way to solve this is to update in admin the product itself. Then everything displays correctly. Or to purge all cache for the website.

Whats wrong with the WooCommerce cache, why won’t update when a product quantity and stock status is chnged? I’ve set up “Always purge both product and categories on changes to the quantity or stock status.”, I’ve set “Purge product and categories only when the stock status changes.”, it won’t work.

  • This topic was modified 51 minutes ago by Derezomov.

Viewing all articles
Browse latest Browse all 59525

Trending Articles