Add to functions.php file:

function themeprefix_change_soldout ( $text, $product) {
if ( !$product->is_in_stock() ) {
$text = ‘<div class=””>Sold out</div>’;
}
return $text;
}

Hits: 0