Hello,
I have a problem I cannot seem to fix. I have a couple of products which are out of stock, I configured Virtuemart to not show these products in the configuration tab. But now the page is just empty. I'd like to show a message that there are currently no products in stock.
But the products array is still populated, so I cannot use the normal template style in showing a message. Does anyone know how to tackle this problem?
No, I didn't deal with it.
First you have to solve the problem with 404, which you caused yourself in the administration with your settings - products that were in stock have been indexed and now their URL does not exist - your e-shop is now considered by Google as a farm of 404 links.
Once you resolve, then you don't have to deal with the message display - all products will be visible,
those that are not in stock will not be ordered.
That will be right.