I have created tabs on the home page with the swiftpage builder and added mini products to each that pull in latest products by category slugs.
As I have hide out of stock selected in woocommerce settings (and this is needed) when an item is purchased and it then goes out of stock the entire tab breaks and nothing shows.
If I untick the out of stock item form the category it is assigned to for example (home-tabs-offers) the tab works again and show the products.
If I then add an out of stock item to the category it still displays correctly, so it looks as though it only breaks when an Item is purchased and becomes out of stock.
How do I fix this please.
Thank you