@ucsendre Please add below snippet (How to add custom code?). I’ll check and fix for other themes soon.
add_action( 'wp_footer', 'woosb_fix_stock_for_bvfheating', 99 );
function woosb_fix_stock_for_bvfheating() {
?>
<script type="text/javascript">
jQuery(document).on('found_variation', function(e, t) {
var $product = jQuery(e['target']).closest('.woosb-product');
if ($product.length) {
if (!t['is_in_stock'] && t['availability_html'] && t['availability_html'] !== '') {
$product.closest('.product-summary').find('p.stock').not('.stock-new').addClass('stock-ori').hide();
jQuery(t['availability_html'].replace('class="', 'class="stock-new ')).
insertBefore($product.closest('.product-summary').find('form.cart'));
} else {
$product.closest('.product-summary').find('p.stock-new').hide();
$product.closest('.product-summary').find('p.stock-ori').show();
}
}
});
jQuery(document).on('reset_data', function(e) {
var $product = jQuery(e['target']).closest('.woosb-product');
if ($product.length) {
$product.closest('.product-summary').find('p.stock-new').hide();
$product.closest('.product-summary').find('p.stock-ori').show();
}
});
</script>
<?php
}