A new problem appeared after the latest version of woocommerce. Products that were updated (re-edited) after installing the latest version of woocommerce, with 0 stock, no longer have a buy button and the product status can no longer be “available for pre-order” but is implicitly “out of stock”.