MarketPress: When last item sold product disappears / gets deleted

MarketPress 3.1.2 , Wordpress 4.7.1
We have about 100 products, most of them are one-of-a-kind products with an inventory of 1.
In Store-Settings - General I chose Yes for Hide Out of Stock Products, and the explanation says "the product will be set to draft when it is sold".

But what happens is: When the last item is sold, the product gets deleted completely, there is no draft, nothing in the trash - nada. The product has disappeard from the Store - Products list in the admin area. There is no chance to edit it as soon as new stock comes in.
I made tests with two products ZZ-999 and ZZ-1000.
ZZ-999 I sold the last item with the option Yes for Hide Out of Stock Products.
ZZ-1000 I sold the last item with the option No for Hide Out of Stock Products.
That is how it looks in the database afterwards:

I assume that the list of products in the Store admin area does not take into account the value "out_of_stock" as post_status.
ZZ-1000 is displayed correctly as out of stock in the front end - so this information must have been taken from the meta data.
For me right now it is ok to use the No-option for Hide Out of Stock products - but the Yes-option would be really nice to have - setting the product automatically to "draft" when it is out of stock....

  • James Morris
    • WordPress Enthusiast

    Hello Emanaku,

    I hope you are well today.

    But what happens is: When the last item is sold, the product gets deleted completely, there is no draft, nothing in the trash - nada.

    I've just tested this issue with WP 4.7.2 and MarketPress 3.2.1. I see you are using an older version of MarketPress (3.1.2). In version 3.2, one of the issues addressed was Fixed: Out of stock product does not hide from product list.

    Please see the results of my test here -> https://goo.gl/qNdzMX

    Would you please update to the latest version of MarketPress and see if this resolves your issue?

    Best regards,

    James Morris

  • Emanaku
    • The Incredible Code Injector

    Ok, James, thank you! The update to 3.2.1 did it.
    I did not get it earlier that there was the 3.2 update, because I only saw the 3.2.1 update (was the same day) and realized I do not need that one urgently.
    Case closed.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.