diff --git a/modules/mailalerts/views/templates/hook/product.tpl b/modules/mailalerts/views/templates/hook/product.tpl index 14d0a521d..05656bcfc 100644 --- a/modules/mailalerts/views/templates/hook/product.tpl +++ b/modules/mailalerts/views/templates/hook/product.tpl @@ -88,9 +88,11 @@ $(document).ready(function() { -{if isset($email) AND $email} -
+{if $product->quantity <= 0} + {if isset($email) AND $email} +
+ {/if} + {l s='Notify me when available' mod='mailalerts'} + {/if} -{l s='Notify me when available' mod='mailalerts'} -