@softound Solutions:
What if you just keep all code from the current stable release + add a check for simple products with unmanaged stock like below?
– Status ‘instock’ & product in_stock message not set -> display global in_stock message
– Status ‘instock’ & product in_stock message set -> display product in_stock message
– Status ‘outofstock’ & product out_of_stock message not set -> display global out_of_stock message
– Status ‘outofstock’ & product out_of_stock message set -> display product out_of_stock message
<?php // Stock info
//Get the product type
$type = $product->get_type();
//Get the stock status
$stock_status = $product->get_stock_status();
//Get manage stock
$stock_managed = $product->get_manage_stock();
?>
<?php if($type == ‘simple’ && $stock_managed == true): ?>
<?php echo wc_get_stock_html( $product ); //From woocommerce/single-product/add-to-cart/simple.php ?>
<?php endif; ?>
<?php if($type == ‘simple’ && $stock_managed == false): ?>
<?php if($stock_status == ‘instock’): ?>
<p class=”stock in-stock in_stock_color”><!– Get the global or product in stock message here –></p>
<?php endif; ?>
<?php if($stock_status == ‘outofstock’): ?>
<p class=”stock out-of-stock out_of_stock_color”><!– Get the global or product out of stock message here –></p>
<?php endif; ?>
<?php endif; ?>
It’s getting the global or product in/out-of-stock message where I get stuck.