VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ClaudePereira on December 28, 2020, 13:07:24 PM

Title: Out of stock, not showing products, show message?
Post by: ClaudePereira on December 28, 2020, 13:07:24 PM
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?
Title: Re: Out of stock, not showing products, show message?
Post by: pinochico on December 28, 2020, 13:21:03 PM
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.