This fixes a problem for those who want to display a label when an item is out of stock. You can save this in your functions.php to make it work. You will also need to add this to your style sheet.
A quick code snippet to allow you to sort your catalogue products by Instock/Out of stock.
Newman.net.nz | Powered by WordPress | Theme by TheBootstrapThemes