I know WooCommerce has an option to hide out of stock items, but I’m pretty sure this isn’t going to get triggered when items are virtually out of stock with my plugin.
I can add it to the todo list to look into it, but I’m not sure when I’ll have free time to get to it.
Thanks James, I think it would help stopping people getting frustrated looking through lots of products held in carts.
I have just installed the plugin and lots of products that should be ok have the not available message, should I just wait a few hours and see if the cache sorts itself out or is there a problem?
Website: http://www.mrsbrimbles.co.uk/
I suspect you have existing carts that already have those items in them. The plugin adds an expiration time to items when they are added, so previously added items will not expire.
If you go and clear the WooCommerce sessions it should resolve the issue
Thanks for the very fast replies and help, it is very much appreciated. I have cleared the sessions and it does look much better now and sped the website up a bit too.
I will keep an eye on it and see how it goes.
Going to leave glowing review right now 🙂
I just released version 1.75 which will take care of this. It now follows the WooCommerce setting to display or not display if unavailable.
Cheers!
Thank you for the update James, this will really help. I have updated the plugin and tested this with a product i know has 1 in stock but the product still shows on the site in another browser if i have it in my cart.
So I need to clear any cache etc in woocommerce for this to start working?
If the item was added to the cart while this plugin was not running then it doesn’t know about the item. If you clear the WooCommerce sessions and it still does not work as expected, then there must be another issue. If you can provide detailed information about the configuration of the plugin and how the item is setup I can see if I can reproduce the issue.