diff --git a/themes/default/product.tpl b/themes/default/product.tpl index 471ad3a06..3ac4c92d7 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -352,9 +352,9 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {/if} -
quantity > 0} style="display: none;"{/if}> +
quantity > $last_qties OR $product->quantity <= 0) OR $allow_oosp OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}