diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 19444cb97..9682e8c37 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -227,7 +227,7 @@ function updateDisplay() $('#availability_value').text(doesntExist).addClass('warning_inline'); $('#oosHook').hide(); } - if(stock_management == 1) + if(stock_management == 1 && !allowBuyWhenOutOfStock) $('#availability_statut:hidden').show(); if (typeof(selectedCombination['available_date']) != 'undefined' && selectedCombination['available_date']['date'].length != 0)